{"uid":"cap_yjruaDelxTDsIudU5j_3d","slug":"freeform-datetime-string-parser-121f19c8","name":"Freeform Datetime String Parser","description":"Parse any freeform datetime string into a structured normalized form — $0.001 USDC","url":"https://1c09pdnrx1.execute-api.us-east-1.amazonaws.com/v1/parse/datetime","method":"POST","headers":{},"bodySchema":{"type":"object","title":"DatetimeParseRequest","required":["input"],"properties":{"input":{"type":"string","title":"Input","maxLength":500,"minLength":1,"description":"Freeform datetime string in any format."},"timezone":{"type":"string","title":"Timezone","default":"UTC","description":"IANA tz name (e.g. 'America/New_York')."},"base_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Time","description":"ISO 8601 reference; defaults to now UTC."}}},"responseSchema":{"type":"object","required":["iso","unix","timezone","components","confidence","parsed_input","relative_human","relative_seconds"],"properties":{"iso":{"type":"string"},"unix":{"type":"number"},"timezone":{"type":"string"},"components":{"type":"object","required":["day","hour","year","month","minute","second","weekday","day_name"],"properties":{"day":{"type":"number"},"hour":{"type":"number"},"year":{"type":"number"},"month":{"type":"number"},"minute":{"type":"number"},"second":{"type":"number"},"weekday":{"type":"number"},"day_name":{"type":"string"}}},"confidence":{"type":"string"},"parsed_input":{"type":"string"},"relative_human":{"type":"string"},"relative_seconds":{"type":"number"}}},"example":{"request":{"input":"2024-03-15T15:30:00Z"},"response":{"iso":"2024-03-15T15:30:00+00:00","unix":1710516600,"timezone":"UTC","components":{"day":15,"hour":15,"year":2024,"month":3,"minute":30,"second":0,"weekday":4,"day_name":"Friday"},"confidence":"high","parsed_input":"2024-03-15T15:30:00Z","relative_human":"2 years ago","relative_seconds":-69584170}},"exampleRequest":{"input":"2024-03-15T15:30:00Z"},"tags":["x402"],"displayCostAmount":"0.001000","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.001000/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__Jpz__EQ9UUGcDmDN5m80","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses any freeform or ambiguous datetime string into a structured, normalized datetime representation","exampleAgentPrompt":"Can you parse this datetime string for me — 'next Friday at half past 3 in the afternoon EST' — and give me a structured, normalized form with the date, time, and timezone broken out?","exampleUseCases":null,"resultDescription":"A structured object containing the normalized datetime, including ISO 8601 timestamp, individual date components (year, month, day), time components (hour, minute, second), timezone, and confidence or ambiguity flags if the input was unclear.","failureModes":["Completely unparseable input string returns error or null result","Ambiguous strings with no context (e.g. '3/4') may yield uncertain or locale-dependent results","Relative expressions (e.g. 'yesterday') may require a reference date that wasn't provided","Strings mixing multiple incompatible formats may fail to parse","Payment failure (402) if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need to reliably normalize arbitrary or user-supplied datetime strings into a structured form — especially when input format is inconsistent, informal, or natural language. Ideal for preprocessing user inputs, log timestamps, or form fields before downstream date arithmetic or storage. Prefer this over regex-based parsing when the input is unpredictable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:35:27.669Z","isFirstParty":false}