Docs/APIs/Cron Expression Parser

Cron Expression Parser

Parse and validate cron expressions

OperationalCredits 1 per callp50 195msText ProcessingStar

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 both 5-field and 6-field cron formats.

Endpoint

One host, one path per API. The block below shows this call in four languages; every one of them is the same HTTP request. Making requests covers the timeouts, retries and parameter rules that apply to all of them. The SDKs wrap the same call in a typed client.

GEThttps://api.apiverve.com/v1/cronparser
curl "https://api.apiverve.com/v1/cronparser?expression=0%209%20*%20*%201-5" \
  -H "x-api-key: your_api_key_here"
const res = await fetch('https://api.apiverve.com/v1/cronparser?expression=0%209%20*%20*%201-5', {
  headers: { 'x-api-key': 'your_api_key_here' },
});

if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);

const { data } = await res.json();
console.log(data);
import requests

res = requests.get(
    "https://api.apiverve.com/v1/cronparser?expression=0%209%20*%20*%201-5",
    headers={"x-api-key": "your_api_key_here"},
    timeout=15,
)
res.raise_for_status()

print(res.json()["data"])
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, _ := http.NewRequest("GET", "https://api.apiverve.com/v1/cronparser?expression=0%209%20*%20*%201-5", nil)
	req.Header.Set("x-api-key", "your_api_key_here")

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()

	out, _ := io.ReadAll(res.Body)
	fmt.Println(string(out))
}

Replace your_api_key_here with the key from your dashboard. When the inputs arrive as a list rather than one at a time, batch requests run up to 200 of them through this same API in a single call.

Authentication

Send your key in the x-api-key header. That is the only auth step — there is no token exchange and no per-endpoint scope to configure. Authentication covers creating, rotating and revoking keys.

401 is the only auth verdict

A 401 means the key is missing, invalid or expired. A 403 means the key is valid but not permitted here — blocked by a key restriction or an IP allow-list. Running out of credits is a 429.

Parameters

Sent in the query string. Premium parameters are accepted on every plan but only take effect on plans that include them.

ParameterTypeDescription
expressionRequiredstringThe cron expression to parse (5-field or 6-field format)

Response

Every API returns the same three top-level keys, so one response handler covers your whole integration: status, error and data. Only data changes shape. Response format covers the envelope, the other output formats and how premium fields are withheld.

Sample response
{
  "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"
    ]
  }
}

Response fields

Paths are relative to data. Premium fields are absent rather than zeroed on plans that do not include them, so check for presence instead of comparing to 0.

FieldTypeExampleDescription
expressionstring"0 9 * * 1-5"The original cron expression submitted for parsing
isValidbooleantrueWhether the cron expression is valid and syntactically correct
formatstring"5-field"Cron format type (5-field or 6-field with optional seconds)
fieldsPremiumobject{...}Detailed breakdown of each cron field with expression and values
secondPremiumobject{...}The seconds field, its description and the seconds it fires on
expressionPremiumstring"0"The second field cron expression (0-59 or special)
descriptionPremiumstring"At 0"Human-readable description of second field timing
valuesPremiumarray[0]Array of valid second values matching the expression
minutePremiumobject{...}The minutes field, its description and the minutes it fires on
expressionPremiumstring"0"The minute field cron expression (0-59 or special)
descriptionPremiumstring"At 0"Human-readable description of minute field timing
valuesPremiumarray[0]Array of valid minute values matching the expression
hourPremiumobject{...}The hours field, its description and the hours it fires on
expressionPremiumstring"9"The hour field cron expression (0-23 or special)
descriptionPremiumstring"At 9"Human-readable description of hour field timing
valuesPremiumarray[9]Array of valid hour values matching the expression
dayOfMonthPremiumobject{...}The day-of-month field, its description and the days it fires on
expressionPremiumstring"*"The day of month field cron expression (1-31 or special)
descriptionPremiumstring"Every"Human-readable description of day of month timing
valuesPremiumarray[1, ...]Array of valid day values matching the expression
monthPremiumobject{...}The month field, its description and the months it fires on
expressionPremiumstring"*"The month field cron expression (1-12 or special)
descriptionPremiumstring"Every"Human-readable description of month field timing
valuesPremiumarray[1, ...]Array of valid month values matching the expression
dayOfWeekPremiumobject{...}The day-of-week field, its description and the days it fires on
expressionPremiumstring"1-5"The day of week field cron expression (0-6 or special)
descriptionPremiumstring"From 1 to 5"Human-readable description of day of week timing
valuesPremiumarray[1, ...]Array of valid day values matching the expression
descriptionstring"At 9:00 AM on Monday, Tuesday, Wednesday, Thursday, Friday"Human-readable description of when cron will execute
frequencyobject{...}How often the schedule fires, as a type and interval
typePremiumstring"Daily"Frequency type (e.g., Daily, Weekly, Monthly, Hourly)
intervalPremiumstring"day"Frequency interval unit (day, week, month, hour, minute)
nextRunsarray[2026-02-19T09:00:00.000Z, ...]Next 5 scheduled execution times in ISO 8601 format

Errors

Read the HTTP status first, then error for the specific reason. The body names the parameter that has to change. Error handling covers the full status list and which of them are worth retrying.

StatusMeaningWhat to do
400Input was rejectedRead error; it names the parameter.
401Key missing or invalidCheck the header name and the key value.
403Key valid, but not permittedA key restriction or IP allow-list; see key scoping.
429Rate limited, or out of creditsRead error to tell them apart; see rate limits.

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

Other ways to use Cron Expression Parser

Set up Cron Expression Parser on APIVerve, or reach the same source a different way. Your APIVerve account and credits work on all of them — one key, one balance.

Give it to an AI agentConnect over MCP and your agent calls it as a native tool — Claude, Cursor, ChatGPT.VerveKitReference →

More in Text Processing:

Was this page helpful?