CRON Notation Helper

CRON Notation Helper API

Development

Convert CRON expressions to human-readable format or generate CRON from natural language.

Authentication

Send your API key in the Authorization header as a Bearer token (Authorization: Bearer YOUR_API_KEY) or in the X-API-Key header.

Rate Limit

10 requests per minute

Endpoints

1 endpoint available

Overview

Describe a schedule in plain words, like "every weekday at 9am", and get back a standard 5-field cron expression (minute, hour, day of month, month, day of week), an English description of that expression, and the model's explanation.

Notes

  • description is up to 1,000 characters.
  • cron is the first 5-field expression found in the model's reply. If the reply has none (for example, the schedule can't be written as cron), cron and humanReadable are null and explanation holds the model's full reply.
  • humanReadable is built from cron by a fixed set of rules, not by the model.

This endpoint calls an AI model, so it uses the AI rate limit: 10 requests per minute and 200 requests per day per API key. Output is generated by a model and can be wrong, so review it before you use it.

Endpoints

POST
https://opentools.ca/api/v1/tools/cron-notation-helper
Turn a plain-language schedule into a cron expression

Request Body

Content-Type: application/json

ParameterTypeRequiredDescription
description
string
Required
The schedule in plain language, e.g. "every Monday at 3:30pm". 1-1,000 characters.

Response Example

{
  "success": true,
  "cron": "0 9 * * 1-5",
  "humanReadable": "Run on Monday through Friday at 9 hour and 0 minute",
  "explanation": "This runs at minute 0 of hour 9, Monday (1) through Friday (5)."
}

Error Codes

400
Invalid JSON or a field failed validation (missing, empty, too long, or not an allowed value). details lists each problem.
401
Missing or invalid API key
403
API key is inactive or expired, or the request IP is not allowed for this key
429
Rate limit exceeded (10 per minute or 200 per day per key)
500
Internal server error, including a failed AI model call

Code Examples

curl -X POST https://opentools.ca/api/v1/tools/cron-notation-helper \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "description": "every weekday at 9am"
  }'

Ready to get started?

Create an API key to start using the CRON Notation Helper API.

Rather use it in your browser? Open the CRON Notation Helper