{"uid":"cap_pyJP92yZ_nDCGbkU2dPzW","slug":"cron-next-occurrence-calculator-a938e761","name":"Cron Next Occurrence Calculator","description":"Pay-per-call utility APIs for agents: EVM helpers (checksum, unit conversion, keccak), data transforms (CSV to JSON, JSON diff, URL canonicalisation), text tools (hashing, JWT decode), and Bazaar market intelligence. x402 on Base mainnet.","url":"https://pastable-x402.pages.dev/time/cron-next","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["expr","count"],"properties":{"expr":{"type":"string","description":"string"},"count":{"type":"string","description":"number, default 5"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object"}}},"responseSchema":{"type":"json","example":{"expr":"0 9 * * 1-5","next":["2026-08-03T09:00:00.000Z","2026-08-04T09:00:00.000Z","2026-08-05T09:00:00.000Z"],"exhausted_search":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qAcQ0IwJVm0iTgfFdg9ou","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Given a cron expression, returns the next N scheduled execution times as ISO 8601 timestamps","exampleAgentPrompt":"What are the next 5 times my cron expression '0 9 * * 1-5' will fire? I want to see the actual UTC timestamps.","exampleUseCases":[{"title":"Preview weekday morning job schedule","prompt":"My cron job runs on '0 9 * * 1-5' — show me the next 3 times it will execute so I can confirm it only fires on weekdays at 9am UTC."},{"title":"Validate end-of-month billing cron","prompt":"I have a billing task set to '0 0 28-31 * *' — give me the next 10 occurrences so I can see if it correctly hits end-of-month dates."},{"title":"Check frequency of high-frequency poller","prompt":"My polling cron is '*/5 * * * *', tell me the next 8 execution times so I can estimate how many calls it'll make in the next 40 minutes."}],"resultDescription":"A JSON object containing the original cron expression, an array of ISO 8601 UTC timestamp strings for the next N scheduled occurrences, and a boolean 'exhausted_search' flag indicating whether the cron expression has no further future occurrences within the search window.","failureModes":["Invalid cron expression string returns an error or empty results","Non-numeric or missing 'count' parameter may default to 5 or return a validation error","Cron expressions with no future occurrences return exhausted_search: true with an empty array","Missing required 'expr' query parameter results in a 400-level error","Payment failure via x402 returns HTTP 402 before processing"],"whenToPreferThis":"Use this endpoint when an AI agent needs to preview, validate, or reason about upcoming execution times for a cron-scheduled task — especially useful for confirming scheduling logic before deploying a job, estimating workload frequency, or surfacing human-readable fire times from a raw cron string. It accepts standard 5-field cron expressions and returns concrete UTC timestamps.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:30:18.836Z","isFirstParty":false}