# URL Redirect Chain Unwrapper

> URL Redirect Chain Unwrapper is a paid API for AI agents from api.x-402.online, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Traces the full redirect chain of a URL hop-by-hop, returning each step's status code, timing, and Location header, the final destination URL, domain-change detection, and loop detection.

## Facts

- Endpoint: GET https://api.x-402.online/v1/url/unwrap?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/url-redirect-chain-unwrapper-44edf9b5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Z6SxpUioYx-sJ6s0XI8aO

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 url-redirect-chain-unwrapper-44edf9b5
```

Example prompt: Can you trace where this bit.ly link actually goes? Unwrap the full redirect chain for https://bit.ly/3xYz9Qk and tell me the final destination and whether the domain changes at any point.

## When to prefer this

Choose this endpoint when you need to safely inspect a URL's full redirect path without downloading page bodies — ideal for vetting short links, affiliate links, ad URLs, or any suspicious link before trusting or sharing it. Prefer it over a full page scrape when you only care about where a URL leads, not its content.

## Known failure modes

- Invalid or malformed URL returns an error
- Target server is unreachable or times out mid-chain
- Redirect loop detected and reported as an error or flag
- DNS resolution failure for any hop in the chain
- Chain exceeds maximum hop limit and is truncated

## How this service works

Trace the redirect chain of a URL to its final destination without downloading page bodies: every hop with its status code, time and Location header, the final URL, whether the domain changed, and loop detection. Useful before trusting a short link or an ad link. Query: ?url=https://bit.ly/…

## Output

Returns the ordered list of redirect hops, each with its URL, HTTP status code, Location header, and response time; the final resolved URL; a flag indicating whether the domain changed between any hops; and a loop-detection indicator if circular redirects are found.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/url-redirect-chain-unwrapper-44edf9b5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x-402.online](https://www.zero.xyz/host/api.x-402.online/llms.txt)
