# Cron Expression Parser API

> Cron Expression Parser decodes 5-field and 6-field cron expressions into human-readable schedules. Pass any cron string to verify syntax, read plain-language timing explanations, and get the next five execution timestamps.

**Endpoint:** `GET https://api.apiverve.com/v1/cronparser`  
**Category:** Text Processing  
**Cost:** 1 credit per call  
**Canonical page:** https://apiverve.com/marketplace/cronparser

## Overview

Cron Expression Parser works by parsing cron expressions and validating their syntax. It returns field-by-field analysis, human-readable descriptions, and frequency information for 5-field and 6-field cron formats, the @hourly/@daily/@weekly/@monthly/@yearly macros, L (last day) and # (nth weekday), Quartz 7-field and AWS cron(...) expressions. Works with standard crontab lines, so you can check a cron job such as */5 * * * * (every 5 minutes) and see exactly when it will run.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/cronparser?expression=0%209%20*%20*%201-5&timezone=America%2FNew_York" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `expression` | string | Yes | The cron expression to parse: 5-field, 6-field (leading seconds), a macro such as @daily, Quartz 7-field with * year, or AWS cron(...) |
| `timezone` | string | No | IANA timezone the schedule runs in (default UTC). nextRuns stay UTC; nextRunsLocal shows the same runs with this zone's offset. timezone |

## Response fields

- `expression` — string · The original cron expression submitted for parsing
- `isValid` — boolean · Whether the cron expression is valid and syntactically correct
- `format` — string · Cron format type (5-field or 6-field with optional seconds)
- `fields` — object · Detailed breakdown of each cron field with expression and values · (premium)
  - `fields.second` — object · The seconds field, its description and the seconds it fires on · (premium)
    - `fields.second.expression` — string · The second field cron expression (0-59 or special) · (premium)
    - `fields.second.description` — string · Human-readable description of second field timing · (premium)
    - `fields.second.values` — array · Array of valid second values matching the expression · (premium)
  - `fields.minute` — object · The minutes field, its description and the minutes it fires on · (premium)
    - `fields.minute.expression` — string · The minute field cron expression (0-59 or special) · (premium)
    - `fields.minute.description` — string · Human-readable description of minute field timing · (premium)
    - `fields.minute.values` — array · Array of valid minute values matching the expression · (premium)
  - `fields.hour` — object · The hours field, its description and the hours it fires on · (premium)
    - `fields.hour.expression` — string · The hour field cron expression (0-23 or special) · (premium)
    - `fields.hour.description` — string · Human-readable description of hour field timing · (premium)
    - `fields.hour.values` — array · Array of valid hour values matching the expression · (premium)
  - `fields.dayOfMonth` — object · The day-of-month field, its description and the days it fires on · (premium)
    - `fields.dayOfMonth.expression` — string · The day of month field cron expression (1-31 or special) · (premium)
    - `fields.dayOfMonth.description` — string · Human-readable description of day of month timing · (premium)
    - `fields.dayOfMonth.values` — array · Array of valid day values matching the expression · (premium)
  - `fields.month` — object · The month field, its description and the months it fires on · (premium)
    - `fields.month.expression` — string · The month field cron expression (1-12 or special) · (premium)
    - `fields.month.description` — string · Human-readable description of month field timing · (premium)
    - `fields.month.values` — array · Array of valid month values matching the expression · (premium)
  - `fields.dayOfWeek` — object · The day-of-week field, its description and the days it fires on · (premium)
    - `fields.dayOfWeek.expression` — string · The day of week field cron expression (0-6 or special) · (premium)
    - `fields.dayOfWeek.description` — string · Human-readable description of day of week timing · (premium)
    - `fields.dayOfWeek.values` — array · Array of valid day values matching the expression · (premium)
- `description` — string · Human-readable description of when cron will execute
- `frequency` — object · How often the schedule fires, as a type and interval
  - `frequency.type` — string · Frequency type (e.g., Every 15 minutes, Hourly, Daily, Weekly, Monthly, Yearly) · (premium)
  - `frequency.interval` — string · Frequency interval unit (day, week, month, hour, minute) · (premium)
- `nextRuns` — array · Next 5 scheduled execution times in ISO 8601 format, always in UTC

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "expression": "0 9 * * 1-5",
    "isValid": true,
    "format": "5-field",
    "fields": {
      "second": {
        "expression": "0",
        "description": "At 0",
        "values": [
          0
        ]
      },
      "minute": {
        "expression": "0",
        "description": "At 0",
        "values": [
          0
        ]
      },
      "hour": {
        "expression": "9",
        "description": "At 9",
        "values": [
          9
        ]
      },
      "dayOfMonth": {
        "expression": "*",
        "description": "Every",
        "values": [
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16,
          17,
          18,
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28,
          29,
          30,
          31
        ]
      },
      "month": {
        "expression": "*",
        "description": "Every",
        "values": [
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12
        ]
      },
      "dayOfWeek": {
        "expression": "1-5",
        "description": "From 1 to 5",
        "values": [
          1,
          2,
          3,
          4,
          5
        ]
      }
    },
    "description": "At 9:00 AM on Monday, Tuesday, Wednesday, Thursday, Friday",
    "frequency": {
      "type": "Daily",
      "interval": "day"
    },
    "nextRuns": [
      "2026-02-19T09:00:00.000Z",
      "2026-02-20T09:00:00.000Z",
      "2026-02-21T09:00:00.000Z",
      "2026-02-24T09:00:00.000Z",
      "2026-02-25T09:00:00.000Z"
    ]
  }
}
```

## Use cases

- **Syntax Validation** — Validate cron expressions before deploying them to production to avoid scheduling errors
- **Schedule Documentation** — Generate human-readable descriptions of cron expressions for documentation and team communication
- **Debugging** — Parse and analyze existing cron expressions to understand their timing and identify issues
- **Migration** — Verify cron expressions when migrating between systems or converting from 5-field to 6-field format

## SDKs

- **npm** — `npm install @apiverve/cronparser` (https://www.npmjs.com/package/@apiverve/cronparser)
- **NuGet** — `dotnet add package APIVerve.API.CronExpressionParser` (https://www.nuget.org/packages/APIVerve.API.CronExpressionParser)
- **Source** — https://github.com/apiverve/cronparser-api

## More

- Full reference: https://docs.apiverve.com/ref/cronparser
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
