# fetchx402 HTTPS Redirect Tracer

> fetchx402 HTTPS Redirect Tracer is a paid API for AI agents from api.fetchx402.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Traces HTTPS redirect chains for a public domain, following Location headers up to 5 hops and returning live hop facts without response bodies.

## Facts

- Endpoint: GET https://api.fetchx402.com/v1/tools/resolve-redirect
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fetchx402-https-redirect-tracer-ba303ee5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kZdAV47tPekbwnL0nRP0b

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 fetchx402-https-redirect-tracer-ba303ee5
```

Example prompt: Can you trace the full HTTPS redirect chain for stripe.com and tell me every hop, status code, and where it finally lands?

## When to prefer this

Choose this endpoint when you need live, ground-truth redirect hop data for a public domain rather than cached or guessed results. It is ideal for SEO audits, security vetting of unknown URLs, verifying HTTPS migration correctness, or detecting redirect loops. Prefer it over general HTTP clients when you want a safe, sandboxed trace that never returns response bodies and blocks internal network access via ConnectGuard.

## Known failure modes

- Domain is an IP address, localhost, or internal/mDNS name — rejected by ConnectGuard
- TLS handshake failure on port 443 — connection error returned
- Domain does not exist in DNS — resolution failure
- Redirect chain exceeds 5 hops — trace truncated at 5th hop
- Origin server returns 405 to HEAD and 501 to GET — no redirect data returned
- Non-public or non-routable hostname provided — rejected

## How this service works

Trace HTTPS redirects for a hostname. Use when you need live hop facts and must not guess. HEAD of https://{domain}/ on :443 (GET if 405/501); follow Location up to 5 hops. HTTPS :443 only after ConnectGuard. Bodies are omitted.

## Output

Returns an ordered list of up to 5 redirect hops for the given domain, each with the HTTP status code, Location header value, and any relevant response headers encountered along the chain. Response bodies are omitted. The trace starts with a HEAD request to https://{domain}/ on port 443 (falling back to GET if HEAD returns 405 or 501) and follows Location headers through each hop.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "domain"
     ],
     "properties": {
      "domain": {
       "type": "string",
       "description": "Public fully-qualified domain name to start from, such as example.com. We HEAD https://{domain}/ on :443 (GET if HEAD is 405/501), then follow Location up to 5 hops. IPs, localhost, and internal/mDNS names are rejected. Only HTTPS :443 after ConnectGuard. Response bodies are not returned."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hops": [
   {
    "url": "https://example.com/",
    "index": 1,
    "method": "HEAD",
    "status": 200,
    "peer_ip": "23.215.0.138",
    "location": null
   }
  ],
  "domain": "example.com",
  "final_url": "https://example.com/",
  "hop_count": 1,
  "start_url": "https://example.com/",
  "truncated": false,
  "stop_reason": null
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fetchx402-https-redirect-tracer-ba303ee5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fetchx402.com](https://www.zero.xyz/host/api.fetchx402.com/llms.txt)
