# Delx Commerce ISO Duration Parser

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

Parses an ISO 8601 duration string (e.g. PT1H30M) into its component parts: days, hours, minutes, seconds, and total seconds.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/iso-duration-parse?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-iso-duration-parser-13699c98
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_W0sP4s914wBtZVK8RboJb

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-iso-duration-parser-13699c98 -d '<json body>'
```

Example prompt: Can you parse the ISO 8601 duration 'PT1H30M' and tell me how many hours, minutes, and total seconds that is?

## When to prefer this

Choose this endpoint when you need a lightweight, no-signup, pay-per-use utility to decompose ISO 8601 duration strings into structured numeric components. Ideal for agents handling calendar events, scheduling, billing cycles, or any API that returns durations in ISO 8601 format. At $0.001 USDC per call it is cost-effective for low-volume or one-off parsing needs without requiring API key registration.

## Known failure modes

- Invalid or malformed ISO 8601 string returns an error response
- Empty or missing duration field causes a validation error
- Durations with unsupported designators (e.g. weeks-only) may parse incorrectly
- Payment failure via x402 protocol results in 402 response before processing

## How this service works

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

## Output

A JSON object containing: ok (boolean success flag), the original duration string, days, hours, minutes, seconds as integers, and total_seconds as the full duration in seconds.

## 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-commerce-iso-duration-parser-13699c98/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)
