{"uid":"cap_W0sP4s914wBtZVK8RboJb","slug":"delx-commerce-iso-duration-parser-13699c98","name":"Delx Commerce ISO Duration Parser","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/iso-duration-parse?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"duration":{"type":"string","description":"Input field: duration."}}},"responseSchema":{"type":"json","example":{"ok":true,"days":0,"hours":1,"schema":"delx/util-iso-duration-parse/v1","minutes":30,"seconds":0,"duration":"PT1H30M","total_seconds":5400}},"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_drwBeLKoo83OmFelM_2wY","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 an ISO 8601 duration string (e.g. PT1H30M) into its component parts: days, hours, minutes, seconds, and total seconds.","exampleAgentPrompt":"Can you parse the ISO 8601 duration 'PT1H30M' and tell me how many hours, minutes, and total seconds that is?","exampleUseCases":[{"title":"Scheduling event duration display","prompt":"I have an event duration stored as 'PT2H45M' from my calendar API — can you break that down into hours and minutes for me?"},{"title":"Converting API response durations","prompt":"My fitness tracker API returns workout durations in ISO 8601 format like 'PT45M30S' — can you convert that to total seconds and readable hours/minutes?"},{"title":"Validating and reading subscription period","prompt":"Our billing system stores subscription lengths as 'P1Y2M' — can you parse that ISO duration and tell me what it means in days and hours?"}],"resultDescription":"A JSON object containing: ok (boolean success flag), the original duration string, days, hours, minutes, seconds as integers, and total_seconds as the full duration in seconds.","failureModes":["Invalid or malformed ISO 8601 string returns an error response","Empty or missing duration field causes a validation error","Durations with unsupported designators (e.g. weeks-only) may parse incorrectly","Payment failure via x402 protocol results in 402 response before processing"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, no-signup, pay-per-use utility to decompose ISO 8601 duration strings into structured numeric components. Ideal for agents handling calendar events, scheduling, billing cycles, or any API that returns durations in ISO 8601 format. At $0.001 USDC per call it is cost-effective for low-volume or one-off parsing needs without requiring API key registration.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:52.974Z","isFirstParty":false,"canonicalSlug":"delx-commerce-iso-duration-parser-13699c98"}