{"uid":"cap_WylBdHh_N58MJwXEHT_mc","slug":"delx-commerce-duration-parse-api-f888af68","name":"Delx Commerce Duration Parse API","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/duration-parse?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","bodyType","body"],"properties":{"body":{"type":"object","additionalProperties":true},"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","example"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","additionalProperties":true}}}}},"responseSchema":{"type":"json","example":{}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.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_V3a2CRVR51_sEm-1RVpPc","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 natural language or structured duration strings into standardized duration values","exampleAgentPrompt":"Parse the duration string '2h 45m 30s' and give me its total value in seconds.","exampleUseCases":[{"title":"Normalize duration inputs for scheduling","prompt":"I have a user input of 'one hour and fifteen minutes' — can you parse that into a structured duration value so I can use it in my scheduling system?"},{"title":"Convert ISO 8601 duration to seconds","prompt":"Turn the ISO duration 'P1DT4H30M' into a plain number of seconds so I can calculate a deadline timestamp."},{"title":"Validate and parse free-text time intervals","prompt":"A user typed '3 days and 6 hours' as their subscription length — parse that into a standardized duration format I can store in my database."}],"resultDescription":"Returns a JSON object containing the parsed duration, likely including the total duration in a numeric unit (such as seconds or milliseconds) and possibly structured fields for hours, minutes, seconds, and the canonical representation of the input duration string.","failureModes":["Unparseable or ambiguous duration string returns an error response","Empty or missing input body fields cause validation errors","Malformed JSON body returns 400-level error","Ambiguous expressions like 'a while' or 'soon' may fail or return unexpected results","Non-English duration expressions may not be supported"],"whenToPreferThis":"Choose this endpoint when you need to normalize varied human-readable or shorthand duration strings (e.g. '2h30m', 'one hour', 'P1DT2H') into a machine-usable format without setting up your own parsing logic. It's especially useful in agent workflows where user-supplied time expressions need to be converted to numeric values for scheduling, deadlines, or interval calculations. At $0.001 USDC per call with no signup required, it's practical for lightweight, pay-per-use agent pipelines using x402 on Base or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:57:40.550Z","isFirstParty":false,"canonicalSlug":"delx-commerce-duration-parse-api-f888af68"}