# FastX402 Cron Next Runs

> FastX402 Cron Next Runs is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-27).

Given a cron expression, returns the next N scheduled run times starting from a given datetime

## Facts

- Endpoint: GET https://fastx402.tools/cron-next-runs?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-cron-next-runs-c8c81b02
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_htnt5eD3qIm0l-36fHz3v

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 fastx402-cron-next-runs-c8c81b02
```

Example prompt: What are the next 10 runs for the cron expression '0 9 * * 1-5' starting from 2026-01-05T00:00:00Z?

## When to prefer this

Use this endpoint when you need to quickly compute upcoming cron job fire times without setting up a cron library locally. Ideal for agents that need to preview, validate, or explain scheduled task timing to users, or to check if a schedule aligns with a desired recurrence pattern. Prefer this over running a full cron daemon or importing a cron parser library when a lightweight, pay-per-call API call suffices.

## Known failure modes

- Invalid cron expression (malformed or wrong number of fields) returns an error
- Count outside 1-20 range may return an error or be clamped
- Malformed ISO 8601 datetime in 'after' field returns a parse error
- Missing required 'expression' query parameter returns a validation error

## How this service works

200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.

## Output

Returns a JSON object containing the original cron expression, the starting datetime, and an array of ISO 8601 UTC timestamps representing the next N scheduled run times (up to 20).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "expression"
     ],
     "properties": {
      "after": {
       "type": "string",
       "description": "ISO 8601 start time (e.g. 2026-01-05T00:00:00Z); defaults to now; times without an offset are treated as UTC"
      },
      "count": {
       "type": "string",
       "description": "How many next runs to return, 1 to 20; defaults to 5"
      },
      "expression": {
       "type": "string",
       "description": "Cron expression with 5 fields: minute hour day-of-month month day-of-week, e.g. \"0 9 * * 1-5\""
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "after": {
       "type": "string"
      },
      "next_runs": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "expression": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "after": "2026-01-05T00:00:00Z",
  "next_runs": [
   "2026-01-05T09:00:00.000Z",
   "2026-01-06T09:00:00.000Z",
   "2026-01-07T09:00:00.000Z"
  ],
  "expression": "0 9 * * 1-5"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-cron-next-runs-c8c81b02/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fastx402.tools](https://www.zero.xyz/host/fastx402.tools/llms.txt)
