# Delx Duration Parse

> Delx 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-10-20).

Parses human-readable duration strings (e.g. '1h30m', '2 days 4 hours') into structured numeric components

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/duration-parse?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-duration-parse-9fd5e3c9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eg_SYd_VlBMHITqzqwCPM

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-duration-parse-9fd5e3c9 -d '<json body>'
```

Example prompt: Parse the duration string '2h45m30s' into its individual time components so I can use the total seconds in my scheduling logic.

## When to prefer this

Choose this endpoint when you need to reliably parse informal or shorthand human duration strings (like '1h30m', '2d 4h', '90s') into structured numeric components for use in scheduling, timers, or configuration. Prefer it over building your own regex parser when you want a hosted, consistent parsing service that handles varied human duration notations.

## Known failure modes

- Malformed or unrecognized duration string format returns a parse error
- Empty or null input returns a validation error
- Extremely large duration values may behave unexpectedly
- Ambiguous formats (e.g. '1.5h') may not be supported — returns error or partial parse
- Payment failure or insufficient USDC balance returns 402 Payment Required

## How this service works

Parse human durations like 1h30m for $0.001 USDC. Call when you need this bounded result without an API key or subscription. Returns machine-readable JSON via x402 on Base or Solana. Limitation: results cover only the supplied input or one bounded public endpoint at request time; callers must verify before acting.

## Output

A structured breakdown of the input duration string into numeric time components such as days, hours, minutes, seconds, and optionally total milliseconds or total seconds, enabling downstream arithmetic and scheduling operations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

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