Cron Expression

GET/v0/cron

Validates a cron expression (5 or 6 fields). When valid, returns a human-readable description, the next scheduled run time, and the next 3 upcoming executions (in UTC).

Try it

Query Parameters

ParameterTypeRequiredDescription
valuestringYesCron expression with 5 fields (minute, hour, day-of-month, month, day-of-week) or 6 fields (with seconds). Supports standard syntax including *, */n, 1-5, 1,3,5.

Example Requests

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.isvalid.dev/v0/cron?value=0 3 * * 1"

Response Fields

FieldTypeDescription
validbooleanWhether the expression is a valid cron expression
expressionstringThe normalised cron expression
fieldsnumberNumber of fields (5 or 6)
hasSecondsbooleanWhether the expression includes a seconds field
humanReadablestring | nullHuman-readable description (e.g. "Every Monday at 3:00 AM")
nextRunstringNext scheduled execution in ISO 8601 UTC
nextRunsstring[]Next 3 scheduled executions in ISO 8601 UTC

Example Response

{
  "valid": true,
  "expression": "0 3 * * 1",
  "fields": 5,
  "hasSeconds": false,
  "humanReadable": "At 03:00 AM, only on Monday",
  "nextRun": "2026-03-09T03:00:00.000Z",
  "nextRuns": [
    "2026-03-09T03:00:00.000Z",
    "2026-03-16T03:00:00.000Z",
    "2026-03-23T03:00:00.000Z"
  ]
}

Example Response — invalid

{
  "valid": false
}