# Cron Expression Next Run Calculator

> Cron Expression Next Run Calculator is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-28).

Calculates the next N scheduled run times for a given cron expression, starting from a specified time

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/cron/next?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cron-expression-next-run-calculator-ef65f573
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_W4Qkqr_3pRwCTCiuNXluC

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability cron-expression-next-run-calculator-ef65f573
```

Example prompt: What are the next 5 run times for the cron expression '*/15 9-17 * * MON-FRI', starting from now?

## When to prefer this

Use this endpoint when you need to quickly compute upcoming cron job fire times without setting up a local cron parser library. Ideal for agents helping users verify or preview cron schedules, plan around scheduled tasks, or validate expressions before deployment. Costs only $0.001 USDC per call with no API key required.

## Known failure modes

- Invalid cron expression returns an error — the expression may be malformed or use unsupported syntax
- Count out of range (must be 1–50) results in a validation error
- Invalid ISO date string in the 'from' parameter causes a parse error
- Missing required 'expr' query parameter returns a bad request error

## How this service works

Next run times (in UTC) of a standard 5-field cron expression (minute hour day month weekday; ranges, lists, steps and names like MON or JAN supported). Use to check a schedule before deploying it.

## Output

Returns a JSON object containing the original cron expression and an array of ISO 8601 timestamp strings representing the next N scheduled run times, computed from the specified (or current) start time.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "expr"
 ],
 "properties": {
  "expr": {
   "type": "string",
   "description": "The cron expression"
  },
  "from": {
   "type": "string",
   "description": "Start time, ISO (default now)"
  },
  "count": {
   "type": "integer",
   "description": "How many runs (1-50, default 5)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "expr": {
   "type": "string"
  },
  "next": {
   "type": "array",
   "items": {
    "type": "string"
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cron-expression-next-run-calculator-ef65f573/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
