# CronNext402

> CronNext402 is a paid API for AI agents from cleanread402.netlify.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-12-02).

Computes the next N fire times of a 5-field cron expression in a given IANA timezone with full DST correctness (spring-forward skips, fall-back doubles)

## Facts

- Endpoint: GET https://cleanread402.netlify.app/cronnext?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cronnext402-6e3649be
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PYjw7XJnDWh3FK3_W-lFj

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 cronnext402-6e3649be
```

Example prompt: What are the next 10 times that the cron expression '30 9 * * 1-5' will fire in the America/New_York timezone, starting from now? Make sure to handle daylight saving correctly.

## When to prefer this

Choose this endpoint when you need DST-correct cron fire-time computation, especially around spring-forward and fall-back transitions where naive implementations produce wrong results. It correctly skips gap times and fires twice at repeated wall times during fall-back — labeled clearly — making it suitable for auditing, debugging, or bootstrapping scheduler logic. Its pay-per-call x402 model means no subscription is needed. Prefer this over manual cron libraries when timezone correctness and simplicity of integration are more important than self-hosting.

## Known failure modes

- Invalid 5-field cron expression — returns error, no charge
- Unknown or misspelled IANA timezone — returns error, no charge
- Count outside 1-50 range — returns error, no charge
- Start time not a valid ISO 8601 instant — returns error, no charge
- Network timeout from Netlify cold start

## How this service works

Compute the next fire times of a standard 5-field cron expression in a named IANA timezone, DST-correct: spring-forward gap times never fire, fall-back repeated times fire at both UTC instants (labelled repeatedWallTime), and when both day-of-month and day-of-week are restricted either matches (Vixie rule). POST a JSON body: expression, timezone, start (ISO instant), count (1-50, default 5). Returns each run as a UTC instant plus local wall time, with the DST policy stated in every response. Invalid expressions, timezones or counts are returned free (settlement is cancelled on failure).

## Output

Returns an array of scheduled run objects, each containing a UTC instant and a local wall-clock time in the requested timezone. Entries that fall during a DST fall-back repetition are labelled with a repeatedWallTime flag. The response also includes a DST policy statement explaining how spring-forward gaps and fall-back overlaps were handled. Failed inputs (bad expression, unknown timezone, out-of-range count) are returned as error messages with no payment charged.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "count": {
   "type": "integer",
   "description": "How many runs to return, 1-50 (default 5)"
  },
  "start": {
   "type": "string",
   "description": "ISO 8601 instant to search strictly after"
  },
  "timezone": {
   "type": "string",
   "description": "IANA timezone name, e.g. America/Los_Angeles"
  },
  "expression": {
   "type": "string",
   "description": "Standard 5-field cron expression, e.g. '30 9 * * *'"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cronnext402-6e3649be/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cleanread402.netlify.app](https://www.zero.xyz/host/cleanread402.netlify.app/llms.txt)
