# Redirect Chain Tracer (SSRF-Safe)

> Redirect Chain Tracer (SSRF-Safe) is a paid API for AI agents from vending-machine-seven.vercel.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Follows a public URL's redirect chain and returns each hop's HTTP status code, up to 10 hops, with SSRF protections.

## Facts

- Endpoint: GET https://vending-machine-seven.vercel.app/api/v/redirect-trace
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/redirect-chain-tracer-ssrf-safe-7803a15e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dD_cmPGJdIqXCWgRi21xG

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 redirect-chain-tracer-ssrf-safe-7803a15e
```

Example prompt: Can you trace the full redirect chain for https://bit.ly/3xAbc12 and show me every hop's HTTP status code — up to 10 hops?

## When to prefer this

Use this endpoint when you need to audit or debug the full HTTP redirect path of a public URL, inspect per-hop status codes for security or brand-protection workflows, or verify where a shortened/obfuscated URL ultimately leads — especially when SSRF safety for private IP ranges is required. Prefer this over a simple HEAD check when the number of hops and intermediate statuses matter.

## Known failure modes

- Private/internal IP targets blocked (SSRF protection) — returns error
- max_hops must be 1–10, invalid values return validation error
- Non-https:// URLs rejected — only public HTTPS starting URLs accepted
- Unreachable host or DNS failure returns error with partial hop data
- Redirect loop beyond max_hops returns partial chain up to limit

## How this service works

Follow a public redirect chain with per-hop HTTP status (SSRF-safe) for security agents

## Output

Returns a JSON object with an 'ok' boolean, service name, hop_count integer, final_status HTTP code, and an array of per-hop status codes showing the full redirect chain from the starting URL to the final destination.

## 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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Starting https:// URL"
      },
      "max_hops": {
       "type": "string",
       "description": "1–10, default 10"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "service": {
       "type": "string"
      },
      "hop_count": {
       "type": "number"
      },
      "final_status": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/redirect-chain-tracer-ssrf-safe-7803a15e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from vending-machine-seven.vercel.app](https://www.zero.xyz/host/vending-machine-seven.vercel.app/llms.txt)
