{"uid":"cap_ilg-7Rk1qgEDc0DYF4NOA","slug":"api-anchor-x402-com-85cc3f49","name":"Anchor X402 Datetime Parser","description":"Parse any freeform datetime string into a structured normalized form — $0.001 USDC","url":"https://api.anchor-x402.com/v1/parse/datetime","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["input"],"properties":{"input":{"type":"string","description":"Freeform datetime string."},"timezone":{"type":"string","description":"Optional IANA tz name; defaults to UTC."},"base_time":{"type":"string","description":"Optional ISO 8601 reference; defaults to now UTC."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"iso":"2026-05-13T15:00:00-04:00","unix":1778000400,"timezone":"America/New_York","components":{"day":13,"hour":15,"year":2026,"month":5,"minute":0,"second":0,"weekday":2,"day_name":"Wednesday"},"confidence":"medium","parsed_input":"next Tuesday at 3pm","relative_human":"in 5 days","relative_seconds":432000}},"example":{"request":{"input":"2024-01-15 14:30:00"},"response":{"iso":"2024-01-15T14:30:00+00:00","unix":1705329000,"timezone":"UTC","components":{"day":15,"hour":14,"year":2024,"month":1,"minute":30,"second":0,"weekday":0,"day_name":"Monday"},"confidence":"high","parsed_input":"2024-01-15 14:30:00","relative_human":"2 years ago","relative_seconds":-76600639}},"exampleRequest":{"input":"2024-01-15 14:30:00"},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1B1JIpC_uZsdkJ_9AZCpS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses any freeform datetime string into a structured, normalized representation","exampleAgentPrompt":"Can you parse this messy date string for me — 'next Thurs at half past three in the afternoon' — and give me a clean, structured breakdown of the date and time?","exampleUseCases":null,"resultDescription":"A structured, normalized datetime object containing parsed components such as ISO 8601 timestamp, year, month, day, hour, minute, second, timezone inference, and possibly a confidence indicator for ambiguous inputs.","failureModes":["Completely unparseable input returns an error or null result","Ambiguous dates (e.g. '01/02/03') may produce low-confidence or incorrect parsing","Missing timezone context may result in UTC assumption without warning","Very short or context-free strings like 'tomorrow' without reference date may yield relative-only output","Non-date strings passed as input return a parsing failure"],"whenToPreferThis":"Use this endpoint when you need to normalize user-entered, scraped, or freeform datetime strings into a structured, machine-readable format — especially when inputs are inconsistent, informal, or ambiguous. It is well-suited for preprocessing pipelines, form validation, or agentic workflows that receive natural language dates.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:41:35.709Z","isFirstParty":false}