# Content Type Parse

> Content Type 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-Type header value into its media type and parameters, returning a normalized, deterministic result with a pass/advisory status.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/content-type-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-type-parse-43c4259a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B3IJ5Bf7fquRQcK0hLUJM

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-type-parse-43c4259a -d '<json body>'
```

Example prompt: Parse this Content-Type header for me and tell me the media type and any parameters: 'application/json; charset=utf-8; boundary=something' — I need to know if it's valid before I accept the response.

## When to prefer this

Choose this endpoint when you need deterministic, stateless parsing of a Content-Type header value into its component parts without relying on an external AI model or regex. Ideal for agents that must validate, cache, redirect, or retry based on a caller-supplied HTTP response and need a structured, versioned JSON result with explicit pass/advisory signal rather than a heuristic judgment.

## Known failure modes

- Header string exceeds 8192 character limit — request rejected
- Malformed or unparseable Content-Type value — advisory status returned with finding details
- Missing or empty header field — returns advisory with explanation
- Payment not received or x402 flow incomplete — endpoint not executed

## How this service works

Content Type Parse: Content Type Parse splits a Content-Type value into media type and parameters from bounded caller-supplied values without an external provider. Call Content Type 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 Type Parse as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless, memory-only exe…

## Output

Returns a versioned deterministic JSON object containing the normalized Content-Type value, the parsed media type, the extracted parameters map, a computed finding summary, and an explicit pass or advisory status indicating whether the header is well-formed and safe to use.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "value": "application/json",
   "parameters": {
    "charset": "utf-8"
   }
  },
  "schema": "delx/util-content-type-parse/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "5c24e73c9e741320e06a1ff85b66a54a947393edcd7062ac04e5723f7e04fe2d",
   "external_calls": 0
  },
  "operation": "web_reliability:content_type_parse"
 }
}
```

## More

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