# Agentshelf Cron Next-5 (5-Field)

> Agentshelf Cron Next-5 (5-Field) is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-02).

Given a 5-field cron expression and an optional starting datetime, returns the next 5 UTC scheduled execution times.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/cron-next-5-5?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-cron-next-5-5-field-a21c7f63
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_R6T2ZFtZt41m9l51yRp4u

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 agentshelf-cron-next-5-5-field-a21c7f63 -d '<json body>'
```

Example prompt: What are the next 5 times this cron expression will fire: '0 9 * * 1-5', starting from 2025-06-01T00:00:00Z?

## When to prefer this

Use this endpoint when an agent needs deterministic, pure-computation cron schedule previewing without any LLM involvement or external network calls — ideal for scheduling automation pipelines, validating cron configurations, or showing users when their next job runs. Prefer the free sandbox endpoint (/v1/sandbox/cron-next-5-5) first if available; use this paid endpoint when sandbox is unavailable or rate-limited.

## Known failure modes

- Invalid cron expression format returns an error
- Expression with fewer or more than 5 fields is rejected
- Malformed or out-of-range 'from' datetime causes a parse error
- Payment of exactly $0.004 USDC required; insufficient payment returns 402
- Expressions with no future occurrences (e.g. impossible schedules) may return an error or empty list

## How this service works

Call when an agent needs the next 5 UTC times for a 5-field cron expression. Exact $0.004 USDC. Prefer unpaid POST /v1/sandbox/cron-next-5-5 first.

## Output

Returns an ordered list of the next 5 UTC datetimes at which the given 5-field cron expression would trigger, computed from the specified 'from' datetime (or now if omitted).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "from": {
   "type": "string",
   "format": "date-time",
   "examples": [
    "2026-01-01T00:00:00.000Z"
   ],
   "description": "ISO datetime to count forward from. Omit it to start at the current time."
  },
  "expression": {
   "type": "string",
   "examples": [
    "0 * * * *"
   ],
   "maxLength": 200,
   "minLength": 1,
   "description": "Cron expression. The route says whether it is 5 fields or 6 fields. Example: 0 9 * * 1-5."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshelf-cron-next-5-5-field-a21c7f63/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
