# Delx Commerce — Redirect Chain Check

> Delx Commerce — Redirect Chain Check 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).

Traces the full redirect chain for one or more URLs, detecting hops, loops, HTTPS downgrades, and budget overruns

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/redirect-chain-check?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-redirect-chain-check-08f04744
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IXpgR4FE9A2amahFJOG27

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-redirect-chain-check-08f04744 -d '<json body>'
```

Example prompt: Can you trace the full redirect chain for https://bit.ly/example-link and let me know how many hops it takes, whether there are any redirect loops, and if it ever downgrades from HTTPS to HTTP — limit it to 10 hops max?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call, no-signup solution to verify redirect behavior of URLs before using them in automation, publishing, or ingestion pipelines. It is ideal for agents that need to audit affiliate links, short URLs, or scraped links for safety and reliability without standing up infrastructure. Prefer this over general HTTP clients when you need structured output (loop detection, HTTPS downgrade flags, hop counts) rather than raw redirect headers.

## Known failure modes

- URL is unreachable or returns a non-redirect response — chain terminates early
- Hop limit exceeded before chain resolves — within_budget returns false
- Circular redirect loop detected — loop flag set to true
- Malformed or excessively long URL in input array — validation error
- Network timeout on one of the intermediate hops — partial chain returned
- Input array exceeds 256 URLs — request rejected

## 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 containing the total hop count, the ordered list of URLs in the redirect chain, a boolean indicating whether a redirect loop was detected, a boolean for HTTPS-to-HTTP downgrade, and whether the chain stayed within the specified hop budget. Also includes an evidence block with the input SHA-256 hash, number of external calls made, and a flag confirming no data was retained.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "urls": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 8192
   },
   "maxItems": 256,
   "description": "Urls supplied to Redirect Chain Check; used only for this bounded calculation and processed in memory without retention."
  },
  "max_hops": {
   "type": "integer",
   "description": "Max Hops supplied to Redirect Chain Check; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "hops": 1,
   "loop": false,
   "urls": [
    "https://example.com/",
    "https://www.example.com/home"
   ],
   "within_budget": true,
   "https_downgrade": false
  },
  "schema": "delx/util-redirect-chain-check/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "3453eef3c3df8628e97f753e043dfdda28418550e0e206ceea93554d8b86c83f",
   "external_calls": 0
  },
  "operation": "web_reliability:redirect_chain_check"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-redirect-chain-check-08f04744/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)
