{"uid":"cap_eg_SYd_VlBMHITqzqwCPM","slug":"delx-duration-parse-9fd5e3c9","name":"Delx Duration Parse","description":"Parse human durations like 1h30m for $0.001 USDC. Call when you need this bounded result without an API key or subscription. Returns machine-readable JSON via x402 on Base or Solana. Limitation: results cover only the supplied input or one bounded public endpoint at request time; callers must verify before acting.","url":"https://api.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_5McEyuVaiKJ1ufUqtTtSY","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 human-readable duration strings (e.g. '1h30m', '2 days 4 hours') into structured numeric components","exampleAgentPrompt":"Parse the duration string '2h45m30s' into its individual time components so I can use the total seconds in my scheduling logic.","exampleUseCases":[{"title":"Scheduling task deadline calculations","prompt":"I have a task that says it takes '1h30m' to complete — can you parse that into hours and minutes so I can add it to the current time and compute the deadline?"},{"title":"Normalizing user input in a timer app","prompt":"A user typed '2 days 4 hours 15 minutes' as their reminder interval — parse that into structured time components so I can convert it to milliseconds for my timer."},{"title":"Interpreting config file duration values","prompt":"My config file has a timeout value of '45m30s' — can you parse that duration string and give me the total number of seconds so I can set the timeout correctly?"}],"resultDescription":"A structured breakdown of the input duration string into numeric time components such as days, hours, minutes, seconds, and optionally total milliseconds or total seconds, enabling downstream arithmetic and scheduling operations.","failureModes":["Malformed or unrecognized duration string format returns a parse error","Empty or null input returns a validation error","Extremely large duration values may behave unexpectedly","Ambiguous formats (e.g. '1.5h') may not be supported — returns error or partial parse","Payment failure or insufficient USDC balance returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need to reliably parse informal or shorthand human duration strings (like '1h30m', '2d 4h', '90s') into structured numeric components for use in scheduling, timers, or configuration. Prefer it over building your own regex parser when you want a hosted, consistent parsing service that handles varied human duration notations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:49:55.168Z","isFirstParty":false,"canonicalSlug":"delx-duration-parse-9fd5e3c9"}