# Delx Commerce — Forwarded Header Parse

> Delx Commerce — Forwarded Header Parse is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Parses the HTTP Forwarded header string (RFC 7239) into structured entries with client IPs, host, and protocol fields.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/forwarded-header-parse?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-forwarded-header-parse-6730956b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZWgCqcJNxJVGDV1gfgIcy

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-commerce-forwarded-header-parse-6730956b -d '<json body>'
```

Example prompt: Parse this Forwarded header string for me and tell me the client IP, host, and protocol from each entry: 'for=192.0.2.43;host=example.com;proto=https, for=10.0.0.1'

## When to prefer this

Use this endpoint when you need a cheap, verifiable, privacy-preserving parse of an HTTP Forwarded header without standing up your own parser. It is ideal for agents processing web request metadata, detecting client IPs behind reverse proxies, or validating header correctness in a pay-per-call model with no signup and cryptographic delivery proof via x402 on Base or Solana.

## Known failure modes

- Malformed or empty header string may return zero entries or a parsing error
- Header string exceeding 8192 characters will be rejected
- Missing or null header field will cause a validation error
- Invalid RFC 7239 syntax may result in partial parsing or a fail status

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object with a result containing count (number of parsed entries) and an entries array, each entry holding the raw value and a parameters object with fields like host and proto. Also includes evidence metadata: whether the input was retained (always false), a SHA-256 hash of the input, the number of external calls made (always 0), operation label, schema version, and a pass/fail status.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "count": 1,
   "entries": [
    {
     "value": "for=192.0.2.43",
     "parameters": {
      "host": "example.com",
      "proto": "https"
     }
    }
   ]
  },
  "schema": "delx/util-forwarded-header-parse/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "b67c372b032dcbad87778aa97564468e1c93a1af08bcce74c0c0f12b8747427f",
   "external_calls": 0
  },
  "operation": "web_reliability:forwarded_header_parse"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-forwarded-header-parse-6730956b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
