# Delx Commerce — Cron Next Fires Calculator

> Delx Commerce — Cron Next Fires Calculator is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Given a cron expression and a start timestamp, returns the next N scheduled fire times as Unix timestamps

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/cron-next-fires?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-cron-next-fires-calculator-68dc1b39
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YhY761QhWzJkFeNWNWnT5

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 delx-commerce-cron-next-fires-calculator-68dc1b39 -d '<json body>'
```

Example prompt: When will the cron expression '0 * * * *' fire next 5 times starting from Unix timestamp 1700000000?

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call computation of upcoming cron fire times without setting up a scheduling library or service. Ideal for agents that need to programmatically determine when a recurring job will next execute, validate a cron schedule, or plan workflows around future trigger times — especially within the x402 micropayment ecosystem on Base or Solana.

## Known failure modes

- Invalid or unsupported cron expression (outside hourly subset) returns an error
- Missing required 'expr' field causes a validation error
- 'from_ts' not provided may default or fail depending on server behavior
- 'n' value of 0 or negative may return empty array or error
- Payment not included or insufficient USDC results in HTTP 402 rejection

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object containing the original cron expression, a schema identifier ('delx/util-cron-next-fires/v1'), and an array of Unix timestamps representing the next N scheduled fire times after the given start timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "n": {
   "type": "integer",
   "description": "Count of next fires to return"
  },
  "expr": {
   "type": "string",
   "description": "Cron expression (hourly subset)"
  },
  "from_ts": {
   "type": "integer",
   "description": "Start unix timestamp"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "expr": "0 * * * *",
  "schema": "delx/util-cron-next-fires/v1",
  "next_fire_unix": [
   1700002800,
   1700006400,
   1700010000
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-cron-next-fires-calculator-68dc1b39/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
