# Cron Next Occurrence Calculator

> Cron Next Occurrence Calculator is a paid API for AI agents from pastable-x402.pages.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Given a cron expression, returns the next N scheduled execution times as ISO 8601 timestamps

## Facts

- Endpoint: GET https://pastable-x402.pages.dev/time/cron-next
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cron-next-occurrence-calculator-a938e761
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pyJP92yZ_nDCGbkU2dPzW

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-next-occurrence-calculator-a938e761
```

Example prompt: What are the next 5 times my cron expression '0 9 * * 1-5' will fire? I want to see the actual UTC timestamps.

## When to prefer this

Use this endpoint when an AI agent needs to preview, validate, or reason about upcoming execution times for a cron-scheduled task — especially useful for confirming scheduling logic before deploying a job, estimating workload frequency, or surfacing human-readable fire times from a raw cron string. It accepts standard 5-field cron expressions and returns concrete UTC timestamps.

## Known failure modes

- Invalid cron expression string returns an error or empty results
- Non-numeric or missing 'count' parameter may default to 5 or return a validation error
- Cron expressions with no future occurrences return exhausted_search: true with an empty array
- Missing required 'expr' query parameter results in a 400-level error
- Payment failure via x402 returns HTTP 402 before processing

## How this service works

Pay-per-call utility APIs for agents: EVM helpers (checksum, unit conversion, keccak), data transforms (CSV to JSON, JSON diff, URL canonicalisation), text tools (hashing, JWT decode), and Bazaar market intelligence. x402 on Base mainnet.

## Output

A JSON object containing the original cron expression, an array of ISO 8601 UTC timestamp strings for the next N scheduled occurrences, and a boolean 'exhausted_search' flag indicating whether the cron expression has no further future occurrences within the search window.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "expr",
      "count"
     ],
     "properties": {
      "expr": {
       "type": "string",
       "description": "string"
      },
      "count": {
       "type": "string",
       "description": "number, default 5"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "expr": "0 9 * * 1-5",
  "next": [
   "2026-08-03T09:00:00.000Z",
   "2026-08-04T09:00:00.000Z",
   "2026-08-05T09:00:00.000Z"
  ],
  "exhausted_search": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cron-next-occurrence-calculator-a938e761/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pastable-x402.pages.dev](https://www.zero.xyz/host/pastable-x402.pages.dev/llms.txt)
