# AgentKit Cron Expression Expander

> AgentKit Cron Expression Expander is a paid API for AI agents from api.firstmention.uk, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-18).

Expands a cron expression into a list of upcoming scheduled run times, with UTC and local timestamps, for a given timezone and count.

## Facts

- Endpoint: POST https://api.firstmention.uk/s/agentkit/cron?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentkit-cron-expression-expander-009769d9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fBaoi4j1fmPgwlJHoiNE0

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 agentkit-cron-expression-expander-009769d9 -d '<json body>'
```

Example prompt: What are the next 5 times the cron expression '*/15 9-17 * * 1-5' will fire, starting from now, in the America/New_York timezone?

## When to prefer this

Use this endpoint when you need to programmatically enumerate future cron execution times with both UTC and local timezone representations — especially when building scheduling UIs, validating cron configs before deployment, or informing users of when automated tasks will run. It is particularly useful for agentic workflows that need to reason about time-based scheduling without running a cron daemon.

## Known failure modes

- Invalid cron expression returns an error
- Unrecognized timezone string causes a failure
- Missing required cron field results in a 400-level error
- Count of zero or negative returns empty runs array
- Malformed 'from' datetime string may cause a parse error

## How this service works

Pay-per-call HTTP APIs, paid with x402 in USDC on Base (eip155:8453): agentkit, api-change-check, basedue, bizcal-api, chainread, check-sanctions, chgwatch, company-facts, domain-intel, domainkit, domfacts, due, edgar, funding-rates, fundinglens, pageaudit, solcheck, token-dd, txpreflight, walletprofile, web-extract, webmd, webread, websearch, x402-preflight, x402check, x402index. Each operation describes its service.

## Output

Returns the original timezone and cron expression alongside an array of upcoming run objects, each containing a UTC ISO timestamp, a local ISO timestamp, an epoch millisecond value, and seconds until that run.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "tz": {
   "type": "string"
  },
  "cron": {
   "type": "string"
  },
  "from": {
   "type": "string"
  },
  "count": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tz": "America/New_York",
  "cron": "*/15 9-17 * * 1-5",
  "runs": [
   {
    "utc": "2026-11-06T14:15:00.000Z",
    "local": "2026-11-06T09:15:00",
    "epoch_ms": 1793974500000,
    "in_seconds": 900
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentkit-cron-expression-expander-009769d9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.firstmention.uk](https://www.zero.xyz/host/api.firstmention.uk/llms.txt)
