# ISO Duration to Seconds Converter

> ISO Duration to Seconds Converter is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-29).

Converts an ISO 8601 duration string (e.g. PT1H30M) into its equivalent number of seconds, computed locally with no network calls.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/duration-iso?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/iso-duration-to-seconds-converter-df098146
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HXRme-bvSU9Oq8l2P8-Ta

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 iso-duration-to-seconds-converter-df098146 -d '<json body>'
```

Example prompt: How many seconds is the ISO duration PT1H30M45S? Convert it to a plain number of seconds for me.

## When to prefer this

Choose this endpoint when you need a reliable, exact, low-latency conversion of an ISO 8601 duration string to seconds and do not want to implement the parsing logic yourself. It is particularly useful in agentic pipelines that receive ISO duration values from APIs or config files and need numeric second counts for scheduling, comparison, or computation. Prefer the free sandbox POST /v1/sandbox/duration-iso endpoint first; use this paid endpoint when the sandbox is unavailable or rate-limited.

## Known failure modes

- Invalid or malformed ISO 8601 duration string returns an error response
- Empty or missing 'text' field returns a validation error
- Durations involving calendar-ambiguous units (e.g. months, years) may return an approximation or error depending on implementation
- Text exceeding 100,000 characters will be rejected

## How this service works

Call when an agent needs a iso duration converted to seconds. No network. Exact $0.002 USDC. Prefer unpaid POST /v1/sandbox/duration-iso first.

## Output

Returns the numeric count of seconds equivalent to the provided ISO 8601 duration string. The computation is performed locally (no external network calls), delivering an exact integer or decimal second value.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "PT1H2M3S"
   ],
   "maxLength": 100000,
   "minLength": 1,
   "description": "Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/iso-duration-to-seconds-converter-df098146/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)
