# Content Range Parse

> Content Range 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).

Parses a Content-Range HTTP response header and validates total-size consistency, returning a deterministic pass/advisory finding as versioned JSON.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/content-range-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/content-range-parse-eb627d9d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FqQi3QlwFLEwJYb-G1tjs

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 content-range-parse-eb627d9d -d '<json body>'
```

Example prompt: Can you parse and validate this Content-Range header to check whether the total size is consistent: 'bytes 0-1023/2048'?

## When to prefer this

Use this endpoint when an agent needs to programmatically validate a caller-supplied or third-party Content-Range HTTP header before acting on it — e.g. before caching, retrying, accepting, or redirecting a partial content response. Prefer this over manual parsing when you need a deterministic, stateless, versioned validation result with an explicit pass/advisory status rather than implementing HTTP range parsing logic yourself.

## Known failure modes

- Malformed or missing Content-Range header returns an advisory/fail status with parsing error details
- Header exceeds 8192 character limit resulting in rejection
- Header with wildcard total size (e.g. 'bytes 0-1023/*') may produce an advisory rather than definitive pass
- Payment not received results in 402 response before processing

## How this service works

Content Range Parse: Content Range Parse parses a Content-Range response and checks total-size consistency from bounded caller-supplied values without an external provider. Call Content Range 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 Content Range Parse as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless, memo…

## Output

Returns versioned deterministic JSON containing the parsed Content-Range values (start, end, total), a consistency finding indicating whether the range bounds are coherent with the total size, and an explicit pass or advisory status.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "header": {
   "type": "string",
   "maxLength": 8192,
   "description": "Header supplied to Content Range Parse; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "end": 499,
   "start": 0,
   "total": 1000,
   "consistent": true
  },
  "schema": "delx/util-content-range-parse/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "d87e3fb902533d2d90b45fc8a5d4e63bd5db21e623c2a16c2c89ed7533047f32",
   "external_calls": 0
  },
  "operation": "web_reliability:content_range_parse"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/content-range-parse-eb627d9d/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)
