# SiteCheck Redirect Chain Tracer

> SiteCheck Redirect Chain Tracer is a paid API for AI agents from api.sitecheck-api.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-18).

Traces the full HTTP redirect chain for a given URL, showing each hop, status code, and whether the final destination differs from the original

## Facts

- Endpoint: GET https://api.sitecheck-api.workers.dev/api/redirects?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sitecheck-redirect-chain-tracer-7ebef221
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_deKctcvak7WzfanI4hsf1

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 sitecheck-redirect-chain-tracer-7ebef221
```

Example prompt: Can you trace all the redirect hops for http://example.com and tell me the final URL it lands on, how many redirects it goes through, and whether it upgrades to HTTPS?

## When to prefer this

Use this endpoint when you need to inspect the full HTTP redirect chain for a single URL — especially useful for SEO auditing, HTTPS enforcement verification, debugging redirect misconfiguration, or detecting redirect loops. It is purpose-built for redirect tracing and returns structured hop-by-hop data including status codes and host changes, making it superior to a generic HTTP HEAD request when you need visibility into intermediate steps.

## Known failure modes

- Invalid or malformed URL returns an error
- Unreachable host results in a connection timeout
- Redirect loops are capped at 10 hops and flagged with truncated=true and loop=true
- Non-HTTP URLs (e.g. ftp://) may not be supported
- Very slow target servers may cause timeout before chain is complete

## How this service works

The redirect chain of a URL, hop by hop (at most 10 hops): each URL, its status, the Location it points to, and whether the hop goes from http to https or changes host. Returns the final URL and status, total hops, loop true when a URL repeats, and the Strict-Transport-Security header of the final response.

## Output

Returns a structured JSON object with the original URL, an ordered array of hops (each with URL, HTTP status code, Location header, host-change flag, and HTTP-to-HTTPS flag), final URL, total hop count, loop detection flag, HSTS status, truncation flag (if more than 10 hops), and a timestamp of when the check was performed.

## 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",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Page URL or domain, e.g. example.com"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "http://example.com",
  "hops": [
   {
    "url": "http://example.com/",
    "status": 308,
    "location": "https://example.com/",
    "hostChange": false,
    "httpToHttps": true
   }
  ],
  "hsts": null,
  "loop": false,
  "maxHops": 10,
  "finalUrl": "https://example.com/",
  "checkedAt": "2026-10-13T09:00:00.000Z",
  "totalHops": 1,
  "truncated": false,
  "finalStatus": 200
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sitecheck-redirect-chain-tracer-7ebef221/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.sitecheck-api.workers.dev](https://www.zero.xyz/host/api.sitecheck-api.workers.dev/llms.txt)
