Trace a URL's full redirect chain hop by hop (up to 10)

$0.002 per call20 free calls/day via MCP

Trace a URL's full redirect chain hop by hop (up to 10): status code, Location and server for each hop, final URL, and loop detection. Useful for link unshortening and SEO migrations. Fast (1-3 s).

redirectsredirect-chainunshortenseo301urltracking

Call it from an AI agent (MCP)

Add the remote MCP server https://www.aypiai.online/mcp (Streamable HTTP, no auth) to Claude, Cursor, ChatGPT or any MCP client, then call the tool redirects:

{
  "name": "redirects",
  "arguments": {
    "url": "https://stripe.com"
  }
}

Call it over HTTP

curl -X POST https://www.aypiai.online/api/redirects \
  -H "Content-Type: application/json" \
  -H "X-Access-Key: YOUR_CREDIT_KEY" \
  -d '{"url":"https://stripe.com"}'

No key? Without one the endpoint answers 402 Payment Required with an x402 PAYMENT-REQUIRED header: any x402 client (USDC on Base, gasless) pays $0.002 and retries automatically. Or buy card credits at /credits (from $5, valid on all tools). Failed calls are never charged.

Input

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "Public http(s) URL"
    }
  },
  "required": [
    "url"
  ]
}

Example output

{
  "url": "http://stripe.com",
  "hops": [
    {
      "url": "http://stripe.com/",
      "status": 301,
      "location": "https://stripe.com/"
    },
    {
      "url": "https://stripe.com/",
      "status": 200
    }
  ],
  "finalUrl": "https://stripe.com/",
  "count": 1
}

Related tools

Get a page's metadata ($0.002) · List every link on a web page with its anchor text, split into internal and external, with nofollow flags and the external domains linked to ($0.002) · Check the links on a web page for broken ones ($0.005) · Get every URL a website lists in its XML sitemaps ($0.003) · Read and parse a website's robots.txt ($0.002) · Detect a web page's language ($0.001) · Text statistics for a web page's visible content ($0.002) · Extract all structured data from a web page ($0.003)

Rever: website intelligence for AI agents. MCP server: https://www.aypiai.online/mcp · x402 catalog: /.well-known/x402