# Delx ISO Duration Parse

> Delx ISO Duration Parse 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).

Parses an ISO-8601 duration string (PnDTnHnMnS subset) and returns the equivalent total number of seconds as deterministic JSON

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/iso-duration-parse
- 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-iso-duration-parse-b0018d0a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iAkkkYIRNDDOV8i8x1PjB

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-iso-duration-parse-b0018d0a -d '<json body>'
```

Example prompt: Can you parse the ISO 8601 duration string P1DT2H30M and tell me how many total seconds that represents?

## When to prefer this

Choose this endpoint when you need a fast, deterministic, stateless conversion of an ISO-8601 duration string to total seconds with no external dependencies, no latency from live services, and guaranteed reproducibility — ideal for agent preflight checks, budget calculations, and scheduling math.

## Known failure modes

- Invalid or malformed ISO duration string returns an error response
- Duration components outside the supported PnDTnHnMnS subset (e.g. years/months) may not be handled
- Empty or missing duration field returns a validation error
- Unsupported duration formats like PnYnM are outside the declared subset and may fail

## How this service works

Parse ISO-8601 duration subset PnDTnHnMnS into total seconds — first-party local utility for agent preflight and proven micro-utils expansion. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, no web search, no live RPC, and no mediagen. Results are advisory; the caller owns authorization, budgets, and production controls. Sibling of Delx routes that already co…

## Output

A deterministic JSON object containing the total number of seconds equivalent to the provided ISO-8601 duration string, computed locally with no external calls or state retention.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "days": 0,
  "hours": 1,
  "schema": "delx/util-iso-duration-parse/v1",
  "minutes": 30,
  "seconds": 0,
  "duration": "PT1H30M",
  "total_seconds": 5400
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-iso-duration-parse-b0018d0a/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)
