# Delx Days Between

> Delx Days Between is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Computes the whole number of days between two ISO 8601 date strings

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/days-between
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-days-between-61f8447d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5hkxECGd9QTCitV4ahr0D

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-days-between-61f8447d -d '<json body>'
```

Example prompt: How many whole days are there between 2024-01-15 and 2024-06-30? I need to compute the SLA window for a contract.

## When to prefer this

Choose this endpoint when you need a simple, deterministic, fee-based local computation of whole days between two ISO dates — especially for agent SLA windows, subscription age, or deadline countdowns — with no external API keys, no data retention, and a predictable $0.001 USDC per-call cost.

## Known failure modes

- Invalid or non-ISO date strings in start or end fields return an error
- Missing start or end parameter causes a bad request
- Reversed date order (end before start) may return a negative value or error
- Payment failure via x402 protocol blocks the request

## How this service works

Whole days between two ISO dates. Call when you compute agent SLA windows or age. Returns days and ok for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.

## Output

Returns a JSON object with a numeric 'days' field representing the whole number of days between the two ISO dates, and an 'ok' boolean indicating success. No external data sources are used; computation is local and deterministic.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "end": {
   "type": "string",
   "description": "Input field: end."
  },
  "start": {
   "type": "string",
   "description": "Input field: start."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "days": 5,
  "schema": "delx/util-days-between/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-days-between-61f8447d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
