{"uid":"cap_nxfoNvT0D_WdeLE7OxAP-","slug":"natural-date-parse-0c224320","name":"Natural Date Parse","description":"Finds every date, time, range and period in text and resolves each to an ISO 8601 value with UTC offset plus a start/end span in an IANA timezone, relative to a reference instant. Reports matched text, index, ambiguity flags and confidence.","url":"https://natural-date-parse.x402supply.com/tools/parse_dates?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"tz":{"type":"string","default":"UTC","maxLength":64,"description":"IANA timezone for resolution, e.g. America/New_York. Default UTC"},"ref":{"type":"string","maxLength":40,"description":"Reference instant, ISO 8601 (2026-10-29 or 2026-10-29T14:00:00Z). Default: now. Dates without an offset are read in tz"},"text":{"type":"string","maxLength":2000,"minLength":1,"description":"Text containing date phrases, e.g. 'ship next Friday 3pm, review by end of Q3'"},"weekStart":{"enum":["monday","sunday"],"type":"string","default":"monday","description":"First day of the week for 'this week', 'next week' and week spans"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KZQuJmF4GpX_yGsWJfzqe","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts and resolves all date, time, range, and period expressions in free text to ISO 8601 values with UTC offsets and IANA timezone spans, relative to a reference instant.","exampleAgentPrompt":"Parse all the date and time expressions in this text and resolve them to ISO 8601 values in the America/New_York timezone, treating today October 29 2026 as the reference point: 'ship next Friday 3pm, review by end of Q3, and schedule kickoff for next Monday morning'.","exampleUseCases":[{"title":"Scheduling phrases from email thread","prompt":"I have this email snippet: 'Let's sync next Tuesday at 2pm, and get the report done by end of next month.' Can you extract all the dates and resolve them to ISO 8601 in the Europe/London timezone, with today as the reference date?"},{"title":"Parsing task deadlines from project notes","prompt":"Here are my project notes: 'MVP due in 3 weeks, beta launch by Q4, and user testing starts this Thursday.' Pull out every date or period and give me the actual ISO 8601 start and end for each, using America/Chicago timezone and today as the anchor."},{"title":"Detecting date ambiguity in user input","prompt":"A user submitted this booking request: 'I need the room from the 5th to the 7th.' Can you parse those date expressions, flag any ambiguity, and resolve them relative to 2026-11-01 in UTC?"}],"resultDescription":"Returns a list of parsed date/time mentions, each with the matched text snippet, its character index in the original input, the resolved ISO 8601 datetime with UTC offset, the start and end of the span in the specified IANA timezone, an ambiguity flag, and a confidence score.","failureModes":["Text contains no recognizable date or time expressions — returns empty results","Reference instant is malformed or out of ISO 8601 format — returns a validation error","IANA timezone string is invalid — returns a timezone resolution error","Text exceeds 2000 character limit — request rejected","Highly ambiguous phrases like 'the 5th' with no month context may resolve with low confidence or be flagged as ambiguous"],"whenToPreferThis":"Choose this endpoint when you need to extract and normalize multiple date and time expressions from unstructured or semi-structured text, especially when relative phrases like 'next Friday', 'end of Q3', or 'in two weeks' need to be anchored to a specific reference instant and timezone. It is particularly valuable for scheduling automation, calendar ingestion, deadline extraction from emails or notes, and any workflow that must convert human-written time references into machine-readable ISO 8601 values. Prefer it over regex-based approaches when ambiguity detection and confidence scoring are important.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:31:02.571Z","isFirstParty":false,"canonicalSlug":"natural-date-parse-0c224320"}