Redirect checker, URL unshortener: the full redirect chain
Follow a URL's redirects hop by hop (up to 10) and return every hop's status code and Location, the final URL, total hops, timing and whether it loops. Expands short links (bit.ly, t.co…) to their destination without loading the page. Every hop is checked before it is requested; redirects to private addresses are reported, not followed. Use to unshorten a link, check an HTTPS or www redirect, or debug SEO redirect chains.
Inputs
| Name | Type | Description |
|---|---|---|
url (required) | string | Absolute http(s) URL |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/url/redirects?url=http%3A%2F%2Fgithub.com"
Or one of your 25 free calls, no key:
curl "https://agent-data-tools.revmesh2074.workers.dev/url/redirects?url=http%3A%2F%2Fgithub.com&trial=1"
Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.
Example result
{
"url": "http://github.com",
"finalUrl": "https://github.com/",
"finalStatus": 200,
"redirects": 1,
"loop": false,
"hops": [
{
"url": "http://github.com/",
"status": 301,
"location": "https://github.com/",
"ms": 40
},
{
"url": "https://github.com/",
"status": 200,
"ms": 120
}
],
"error": null
}
From an AI agent (MCP)
Add the MCP server to Claude, Cursor or any MCP client. This tool is url_redirects, and the first 25 successful calls are free:
https://agent-data-tools.revmesh2074.workers.dev/mcp