{"uid":"cap_XZlG-kEXD1NFKIoKdhuRx","slug":"duration-string-parser-6bd8927a","name":"Duration String Parser","description":"Parse a duration like \"1h30m\" into seconds and components","url":"https://x402render-u5vwpxpyua-uc.a.run.app/duration-parse","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"duration":{"type":"string","description":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_AdxAmFv8dtrg7AkPZr8_i","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses a human-readable duration string like '1h30m' into total seconds and named time components","exampleAgentPrompt":"Can you parse the duration '2h45m30s' into total seconds and tell me the individual hours, minutes, and seconds components?","exampleUseCases":[{"title":"Scheduling automation time calculation","prompt":"I have a task that takes '1h30m' — can you parse that into total seconds and its hour/minute components so I can schedule it programmatically?"},{"title":"User input normalization for timers","prompt":"A user typed '45m20s' as their workout duration — parse that string into seconds and components so I can store it in a standardized format."},{"title":"Duration arithmetic preparation","prompt":"I need to convert '3h15m' into its numeric components and total seconds before I add it to another duration in my app."}],"resultDescription":"Returns the parsed duration broken down into total seconds as a number and individual named components (hours, minutes, seconds), derived from the input shorthand duration string.","failureModes":["Invalid or unrecognized duration format returns an error response","Empty or missing 'duration' field may return a validation error","Extremely large or malformed values may fail parsing","Ambiguous formats not following standard shorthand notation (e.g. '1 hour') may not be recognized"],"whenToPreferThis":"Use this endpoint when you need to programmatically parse human-readable duration shorthand strings (like '1h30m', '90s', '2h') into numeric seconds and structured components, especially in scheduling, timer, or time-tracking workflows where user input needs to be normalized.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:33:28.676Z","isFirstParty":false}