# Retry After Parse

> Retry After 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-15).

Normalizes an HTTP Retry-After header value (seconds or HTTP-date) into a delay in seconds using a caller-supplied current epoch, returning a deterministic pass/advisory finding.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/retry-after-parse
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/retry-after-parse-75bc6b51
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Kk9PVNL_Xgt7lhJ5ouf5l

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 retry-after-parse-75bc6b51 -d '<json body>'
```

Example prompt: Parse this Retry-After header value — 'Wed, 21 Oct 2025 07:28:00 GMT' — using the current epoch 1745200000 and tell me how many seconds I should wait before retrying.

## When to prefer this

Choose this endpoint when an agent or HTTP client needs to deterministically interpret an HTTP Retry-After header — whether expressed as a seconds integer or an HTTP-date string — into a concrete delay before retrying or caching. It is stateless, requires no API key, and returns structured pass/advisory findings, making it ideal for lightweight client-side rate-limit handling logic inside automated pipelines.

## Known failure modes

- Missing or empty value field returns an error or advisory status
- Invalid date string that cannot be parsed returns an advisory/fail status
- now_epoch not supplied or not an integer causes computation failure
- Retry-After value exceeds maxLength of 8192 characters is rejected
- Negative or zero computed delay may return advisory status

## How this service works

Retry After Parse: Retry After Parse normalizes Retry-After seconds or an HTTP-date epoch into a delay from bounded caller-supplied values without an external provider. Call Retry After Parse before accepting, caching, redirecting, or retrying a caller-supplied web response. Returns normalized web evidence, the computed finding, and an explicit pass or advisory status for Retry After Parse as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless, memory-only…

## Output

Returns a versioned deterministic JSON object containing the normalized delay in seconds, the raw input evidence, a computed finding, and an explicit pass or advisory status indicating whether the Retry-After value is well-formed and usable.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "value": {
   "type": "string",
   "maxLength": 8192,
   "description": "Value supplied to Retry After Parse; used only for this bounded calculation and processed in memory without retention."
  },
  "now_epoch": {
   "type": "integer",
   "description": "Now Epoch supplied to Retry After Parse; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "delay_seconds": 120,
   "retry_at_epoch": 1720000120
  },
  "schema": "delx/util-retry-after-parse/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "d9694253aa50ca3a4c76da4bbf323706780e4a4cfeb723b7ee5a097e2965b646",
   "external_calls": 0
  },
  "operation": "web_reliability:retry_after_parse"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/retry-after-parse-75bc6b51/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)
