{"uid":"cap_mjlwUKvfqnGySlQ-ChnEK","slug":"api-strale-io-6192348f","name":"Ambiguous Date String Parser (ISO 8601)","description":"Parse ambiguous date strings into ISO 8601. Handles '3/4/25', 'March 4th', '4. mars 2025', '2025-W14'. Detects ambiguity.","url":"https://api.strale.io/x402/date-parse","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["date_string"],"properties":{"date_string":{"type":"string","description":"Date string to parse"},"preferred_format":{"type":"string","description":"DMY, MDY, or YMD (for ambiguous dates)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"date_string":"3/4/25","preferred_format":"DMY"},"response":{"day":3,"year":2025,"_meta":{"payment":{"method":"x402","price_usd":0.0324,"settlement_id":"0xb275dc10bc3de0cb2dfc3351263c0f8083cda5bf31d8b164727f418aa8798ecb"},"capability":"date-parse","latency_ms":0,"provenance":{"source":"algorithmic","fetched_at":"2026-06-16T01:20:43.705Z"}},"input":"3/4/25","month":4,"parsed":true,"iso_date":"2025-04-03","day_of_week":"Thursday","is_ambiguous":false}},"exampleRequest":{"date_string":"3/4/25","preferred_format":"DMY"},"tags":["x402"],"displayCostAmount":"0.0324","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.0324/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0324","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0324","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8weGUwZHiLDYwTxflqxBQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0324","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses ambiguous or natural-language date strings into ISO 8601 format, detecting and resolving ambiguity with format hints.","exampleAgentPrompt":"Can you parse the date string '3/4/25' into ISO 8601 for me? Treat it as DMY format since it came from a European source.","exampleUseCases":null,"resultDescription":"Returns the input date string parsed into ISO 8601 format (e.g. 2025-03-04), along with an ambiguity detection flag indicating whether the input was ambiguous and how it was resolved, plus parsed components.","failureModes":["Unparseable date string returns an error or null result","Missing required 'date_string' query parameter returns 400","Ambiguous date with no preferred_format hint may resolve incorrectly","Multilingual or highly informal date strings may fail to parse","Network timeout or service unavailability returns 5xx"],"whenToPreferThis":"Use this endpoint when you need to reliably normalize date strings of unknown or mixed format — especially user-supplied input, scraped web data, or multilingual sources where ambiguity (DMY vs MDY) is a real concern. Prefer this over simple regex parsing or LLM guessing when correctness and ambiguity detection matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:57:06.645Z","isFirstParty":false}