# URL Redirect Chain Intelligence API

> URL Redirect Chain Intelligence API is a paid API for AI agents from url-intel-api-production.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-18).

Resolves a URL and returns the full redirect chain, including intermediate hops and the final destination URL

## Facts

- Endpoint: POST https://url-intel-api-production.up.railway.app/redirects?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/url-redirect-chain-intelligence-api-205a7f82
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JkXyhOspWt7zv1tnFDbYI

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-intelligence-api-205a7f82 -d '<json body>'
```

Example prompt: Can you trace the full redirect chain for this URL and tell me where it ultimately ends up: https://bit.ly/3xampleLink?

## When to prefer this

Choose this endpoint when you need to resolve the complete redirect chain of a URL rather than just the final destination — particularly useful for security analysis, phishing detection, link auditing, or SEO diagnostics. It is a paid API ($0.01 USDC per call via x402) suited for agent workflows that need programmatic redirect tracing without relying on browser-based tools.

## Known failure modes

- Invalid or malformed URL returns an error response
- Network timeout if target URL is unreachable
- Infinite redirect loops may be detected and aborted
- Non-HTTP URLs or private/internal addresses may be blocked
- Payment failure via x402 protocol prevents access

## How this service works

URL intelligence for AI agents

## Output

Returns a JSON object containing the full redirect chain as an ordered array of intermediate URLs, the final resolved URL, and the total number of redirects followed. Each entry in the chain represents one hop in the redirect sequence.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": [],
  "final_url": "https://example.com",
  "total_redirects": 0
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/url-redirect-chain-intelligence-api-205a7f82/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from url-intel-api-production.up.railway.app](https://www.zero.xyz/host/url-intel-api-production.up.railway.app/llms.txt)
