# FastX402 ISO Duration Converter

> FastX402 ISO Duration Converter is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-27).

Converts an ISO 8601 duration string or raw seconds into a structured object with ISO, human-readable, and seconds representations

## Facts

- Endpoint: GET https://fastx402.tools/iso-duration?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-iso-duration-converter-66c664d7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GDV8A-uXWn5qm8X5jXSpk

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 fastx402-iso-duration-converter-66c664d7
```

Example prompt: Can you convert the ISO 8601 duration P1DT2H30M into a human-readable description and also tell me how many seconds that is?

## When to prefer this

Choose this endpoint when you need to convert between ISO 8601 duration strings and human-readable or seconds formats without any heavy date-math library dependency. It is ideal for display formatting, API response normalization, and duration serialization. At $0.001 per call with no API key required, it is well-suited for lightweight, pay-as-you-go agent workflows that occasionally need duration parsing.

## Known failure modes

- Invalid or unparseable duration string returns an error response
- Missing required 'value' query parameter results in a 400-level error
- Extremely large durations with year/month components may have ambiguous seconds conversion due to variable month/year lengths
- Malformed ISO strings like 'P1D2H' (missing T separator) will likely fail to parse

## How this service works

200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.

## Output

Returns a JSON object with three fields: 'iso' (the canonical ISO 8601 duration string), 'human' (a plain-English description like '1 day, 2 hours, 30 minutes'), and 'seconds' (the total integer count of seconds). All three representations are always returned regardless of which format was provided as input.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "value"
     ],
     "properties": {
      "value": {
       "type": "string",
       "description": "ISO 8601 duration like P1DT2H30M, or a number of seconds like 5400"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "iso": {
       "type": "string"
      },
      "human": {
       "type": "string"
      },
      "seconds": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "iso": "P1DT2H30M",
  "human": "1 day, 2 hours, 30 minutes",
  "seconds": 95400
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-iso-duration-converter-66c664d7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fastx402.tools](https://www.zero.xyz/host/fastx402.tools/llms.txt)
