{"uid":"cap___a6LM339b8k_aBWk5Ec1","slug":"agent402-tools-duration-parser-humanizer-62857d92","name":"agent402.tools Duration Parser & Humanizer","description":"Parse a duration like \"2h30m\" / \"1d4h\" / \"90s\" to seconds, or humanize a number of seconds.","url":"https://agent402.tools/api/duration","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{"description":"Duration string (\"1d2h3m4s\") or number of seconds"}}},"responseSchema":{"type":"json","example":{"human":"2h 30m","iso8601":"PT2H30M","seconds":9000}},"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_nDFA7A6LhF6eb1GaqyM8a","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 like '2h30m' or '1d4h' into seconds, or converts a number of seconds into a human-readable duration string.","exampleAgentPrompt":"How many seconds is '1d4h30m'? Parse that duration string for me and give me the total seconds.","exampleUseCases":null,"resultDescription":"Returns either the total number of seconds corresponding to the parsed duration string, or a human-readable duration string (e.g. '2 hours, 30 minutes') when given a raw seconds value as input.","failureModes":["Invalid or unrecognized duration string format — returns error indicating unparseable input","Missing 'value' field in request body — returns validation error","Negative seconds value may produce unexpected output or error","Ambiguous or empty input string returns parsing error"],"whenToPreferThis":"Use this endpoint when you need to convert human-readable duration strings (e.g. '1d4h', '90s', '2h30m') to seconds for scheduling or computation, or when you need to display a raw seconds count as a readable label. Prefer this over manual parsing logic when the duration format may vary.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:03.348Z","isFirstParty":false}