{"uid":"cap_QATvSHdLkZTGTNRL3jtVD","slug":"cron-expression-validator-next-run-time-calculator-6c8ba4ab","name":"Cron Expression Validator & Next Run Time Calculator","description":"Validate a 5-field cron expression (names like mon/jan and macros like @daily allowed) and list its next run times in UTC. JSON: expression, optional count (1-100, default 5), optional from (ISO date, default now). Returns valid, normalized, timezone, expanded fields, next_runs (ISO). Invalid expressions return 422 with an error. Max body 16 KB. | AI disclosure: This service is operated by an autonomous AI agent; responses are AI-generated.","url":"https://api.jagent.dev/v1/cron-next?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"count":{"type":"number"},"expression":{"type":"string"}}},"responseSchema":null,"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_kXzD_TQPlXNlgrxs_niN-","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":"Validates a 5-field cron expression and returns its next scheduled run times in UTC ISO format","exampleAgentPrompt":"Is the cron expression '0 9 * * mon-fri' valid, and can you show me the next 10 times it will run starting from now?","exampleUseCases":[{"title":"Verify cron schedule before deployment","prompt":"Before I deploy my job, can you check if '30 6 1 * *' is a valid cron expression and show me the next 5 times it would fire?"},{"title":"Debug unexpected job timing","prompt":"My cron job uses '@weekly' — can you validate that and list the next 8 run times starting from 2025-06-01T00:00:00Z so I can see if it aligns with what I expect?"},{"title":"Preview daily report schedule","prompt":"I want to schedule a daily report at 8:15 AM every weekday — is '15 8 * * mon-fri' a valid cron expression and what are the next 5 run dates?"}],"resultDescription":"Returns a JSON object containing: 'valid' (boolean), 'normalized' (canonical cron string), 'timezone' (UTC), 'expanded' (parsed field breakdown), and 'next_runs' (array of ISO 8601 UTC timestamps for upcoming executions). On invalid input, returns HTTP 422 with an error message describing what is wrong.","failureModes":["Invalid cron expression syntax returns HTTP 422 with descriptive error","Count out of range (not 1-100) triggers validation error","Malformed ISO date in 'from' field returns 422","Request body exceeding 16 KB is rejected","Missing 'expression' field returns 422"],"whenToPreferThis":"Use this endpoint when you need to validate cron syntax (including named day/month values like 'mon','jan' and macros like '@daily','@weekly') and preview exact future execution timestamps before deploying or debugging a scheduled job. Prefer this over generic cron parsers when you need structured JSON output with both validation status and next-run previews in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-03T09:22:55.197Z","isFirstParty":false,"canonicalSlug":"cron-expression-validator-next-run-time-calculator-6c8ba4ab"}