x402

Cron Explain (x402)

Parse a cron expression into human-readable explanation + next N execution times. Algorithmic — instant.

get/x402/v2/cron-explain

Request

  • Base URL: https://api.strale.io
  • URL: https://api.strale.io/x402/v2/cron-explain
  • Auth: none required

Query parameters

num_nextinteger

Number of next runs (default 5)

timezonestring
cron_expressionstring required

Cron expression (5-7 fields)

Response

Success

is_validboolean
explanationstring

Example response

{
  "is_valid": true,
  "timezone": "Europe/Stockholm",
  "next_runs": [
    "2026-04-03T09:00:00.000Z",
    "2026-04-06T09:00:00.000Z",
    "2026-04-07T09:00:00.000Z",
    "2026-04-08T09:00:00.000Z",
    "2026-04-09T09:00:00.000Z"
  ],
  "explanation": "At 9:00, Monday through Friday",
  "cron_expression": "0 9 * * 1-5",
  "field_breakdown": [
    {
      "field": "minute",
      "value": "0",
      "meaning": "at 0"
    },
    {
      "field": "hour",
      "value": "9",
      "meaning": "at 9"
    },
    {
      "field": "day of month",
      "value": "*",
      "meaning": "every value"
    },
    {
      "field": "month",
      "value": "*",
      "meaning": "every value"
    },
    {
      "field": "day of week",
      "value": "1-5",
      "meaning": "range 1-5"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.