Web
Full HTTP redirect-chain tracer API
Follows every redirect hop manually (no auto-follow), recording each URL, status code, Location header, and Set-Cookie along the way until the final response, and flags loops + https-to-http downgrades. The value-add: unlike a plain unshortener it returns the FULL per-hop chain with status codes and cookies. Answers 'trace every redirect for this URL', 'what status codes does this link return', 'does this redirect downgrade to http', 'what cookies are set during redirects'.
Price$0.01per request
MethodPOST
Route/v1/web/redirect-chain
StatusLive
MIME typeapplication/json
Rate limit60/minute
Cache3600s public
webredirectredirect-chainhttphopslocationunshorten302
API URL
Integration docshttps://x402.hexl.dev/v1/web/redirect-chainExample request
{
"url": "http://github.com"
}Example response
{
"requestedUrl": "http://github.com",
"finalUrl": "https://github.com/",
"finalStatus": 200,
"hopCount": 2,
"redirectCount": 1,
"hops": [
{
"url": "http://github.com/",
"status": 301,
"location": "https://github.com/",
"setCookies": []
},
{
"url": "https://github.com/",
"status": 200,
"location": null,
"setCookies": [
"_gh_sess=..."
]
}
],
"cookiesSet": [
"_gh_sess=..."
],
"loop": false,
"flags": []
}Input schema
{
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"examples": [
"http://github.com"
]
},
"maxHops": {
"type": "number",
"examples": [
10
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}