{"uid":"cap_GDV8A-uXWn5qm8X5jXSpk","slug":"fastx402-iso-duration-converter-66c664d7","name":"FastX402 ISO Duration Converter","description":"200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/iso-duration?utm_source=zero.xyz","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"],"type":"string"},"queryParams":{"type":"object","required":["value"],"properties":{"value":{"type":"string","description":"ISO 8601 duration like P1DT2H30M, or a number of seconds like 5400"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"iso":{"type":"string"},"human":{"type":"string"},"seconds":{"type":"integer"}}}}}}},"responseSchema":{"type":"json","example":{"iso":"P1DT2H30M","human":"1 day, 2 hours, 30 minutes","seconds":95400}},"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_NsyGw57shIgvMMJa0F35r","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":"Converts an ISO 8601 duration string or raw seconds into a structured object with ISO, human-readable, and seconds representations","exampleAgentPrompt":"Can you convert the ISO 8601 duration P1DT2H30M into a human-readable description and also tell me how many seconds that is?","exampleUseCases":[{"title":"Parsing API response durations","prompt":"I'm getting durations back from an API in ISO 8601 format like P2DT4H15M — can you convert that to plain English and give me the total seconds so I can display it to users?"},{"title":"Normalizing seconds to ISO format","prompt":"I have a duration of 5400 seconds — can you convert that to the ISO 8601 format and also show me the human-readable version like '1 hour, 30 minutes'?"},{"title":"Displaying event length in a calendar app","prompt":"The event duration is PT45M — what does that look like as a human-readable string, and what's the equivalent in seconds?"}],"resultDescription":"Returns a JSON object with three fields: 'iso' (the canonical ISO 8601 duration string), 'human' (a plain-English description like '1 day, 2 hours, 30 minutes'), and 'seconds' (the total integer count of seconds). All three representations are always returned regardless of which format was provided as input.","failureModes":["Invalid or unparseable duration string returns an error response","Missing required 'value' query parameter results in a 400-level error","Extremely large durations with year/month components may have ambiguous seconds conversion due to variable month/year lengths","Malformed ISO strings like 'P1D2H' (missing T separator) will likely fail to parse"],"whenToPreferThis":"Choose this endpoint when you need to convert between ISO 8601 duration strings and human-readable or seconds formats without any heavy date-math library dependency. It is ideal for display formatting, API response normalization, and duration serialization. At $0.001 per call with no API key required, it is well-suited for lightweight, pay-as-you-go agent workflows that occasionally need duration parsing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T19:23:16.261Z","isFirstParty":false,"canonicalSlug":"fastx402-iso-duration-converter-66c664d7"}