# Cron Expression Generator API

> Cron Expression Generator converts natural language schedule text into standard five-field cron expressions. Submit phrases up to 200 characters to receive the matching cron syntax, with paid plans adding written explanations.

**Endpoint:** `GET https://api.apiverve.com/v1/crongenerator`  
**Category:** Data Generation  
**Cost:** 10 credits per call  
**Canonical page:** https://apiverve.com/marketplace/crongenerator

## Overview

Use it as a cron job expression generator: describe the schedule in plain English and get crontab syntax back. Cron Expression Generator works by analyzing natural language schedule descriptions and using AI to generate accurate cron expressions. Perfect for setting up automated tasks and scheduled jobs.

## 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/crongenerator?schedule=every%20weekday%20at%209am" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `schedule` | string | Yes | Natural language description of the schedule (max 200 characters). length 0-200 |

## Response fields

- `schedule` — string · Original natural language schedule description provided
- `expression` — string · Generated cron expression in standard 5-field format
- `description` — string · Human-readable explanation of the cron expression behavior · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "schedule": "every weekday at 9am",
    "expression": "0 9 * * 1-5",
    "description": "Runs every weekday at 9:00 AM."
  }
}
```

## Use cases

- **Task Automation** — Convert natural language schedules into cron expressions for automated task scheduling in Linux, Jenkins, or CI/CD pipelines
- **Backup Scheduling** — Generate cron expressions for automated backup schedules without memorizing complex cron syntax
- **Report Generation** — Create cron expressions for scheduled report generation and email delivery tasks
- **System Maintenance** — Generate cron expressions for maintenance windows, cleanup tasks, and system health checks

## SDKs

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

## More

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