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.
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.
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.
| Parameter | Type | Description |
|---|---|---|
expressionRequired | string | The 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.
{
"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.
| Field | Type | Example | Description |
|---|---|---|---|
expression | string | "0 9 * * 1-5" | The original cron expression submitted for parsing |
isValid | boolean | true | Whether the cron expression is valid and syntactically correct |
format | string | "5-field" | Cron format type (5-field or 6-field with optional seconds) |
fieldsPremium | object | {...} | Detailed breakdown of each cron field with expression and values |
secondPremium | object | {...} | The seconds field, its description and the seconds it fires on |
expressionPremium | string | "0" | The second field cron expression (0-59 or special) |
descriptionPremium | string | "At 0" | Human-readable description of second field timing |
valuesPremium | array | [0] | Array of valid second values matching the expression |
minutePremium | object | {...} | The minutes field, its description and the minutes it fires on |
expressionPremium | string | "0" | The minute field cron expression (0-59 or special) |
descriptionPremium | string | "At 0" | Human-readable description of minute field timing |
valuesPremium | array | [0] | Array of valid minute values matching the expression |
hourPremium | object | {...} | The hours field, its description and the hours it fires on |
expressionPremium | string | "9" | The hour field cron expression (0-23 or special) |
descriptionPremium | string | "At 9" | Human-readable description of hour field timing |
valuesPremium | array | [9] | Array of valid hour values matching the expression |
dayOfMonthPremium | object | {...} | The day-of-month field, its description and the days it fires on |
expressionPremium | string | "*" | The day of month field cron expression (1-31 or special) |
descriptionPremium | string | "Every" | Human-readable description of day of month timing |
valuesPremium | array | [1, ...] | Array of valid day values matching the expression |
monthPremium | object | {...} | The month field, its description and the months it fires on |
expressionPremium | string | "*" | The month field cron expression (1-12 or special) |
descriptionPremium | string | "Every" | Human-readable description of month field timing |
valuesPremium | array | [1, ...] | Array of valid month values matching the expression |
dayOfWeekPremium | object | {...} | The day-of-week field, its description and the days it fires on |
expressionPremium | string | "1-5" | The day of week field cron expression (0-6 or special) |
descriptionPremium | string | "From 1 to 5" | Human-readable description of day of week timing |
valuesPremium | array | [1, ...] | Array of valid day values matching the expression |
description | string | "At 9:00 AM on Monday, Tuesday, Wednesday, Thursday, Friday" | Human-readable description of when cron will execute |
frequency | object | {...} | How often the schedule fires, as a type and interval |
typePremium | string | "Daily" | Frequency type (e.g., Daily, Weekly, Monthly, Hourly) |
intervalPremium | string | "day" | Frequency interval unit (day, week, month, hour, minute) |
nextRuns | array | [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.
| Status | Meaning | What to do |
|---|---|---|
400 | Input was rejected | Read error; it names the parameter. |
401 | Key missing or invalid | Check the header name and the key value. |
403 | Key valid, but not permitted | A key restriction or IP allow-list; see key scoping. |
429 | Rate limited, or out of credits | Read 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.
Related
More in Text Processing: