{"uid":"cap_dmPzmOMOHNzxQym3Z877Q","slug":"fastx402-redirect-trace-8a3a8e78","name":"FastX402 Redirect Trace","description":"200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/redirect-trace?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"},"queryParams":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"Public http(s) URL or bare domain to trace"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"hops":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"status":{"type":"integer"},"location":{"type":"string"},"shortener":{"type":"boolean"}}}},"flags":{"type":"object","properties":{"crossDomain":{"type":"boolean"},"httpsToHttp":{"type":"boolean"},"usedShortener":{"type":"boolean"}}},"input":{"type":"string"},"finalUrl":{"type":"string"},"redirects":{"type":"integer"},"durationMs":{"type":"integer"},"finalStatus":{"type":"integer"},"stoppedReason":{"type":"null"}}}}}}},"responseSchema":{"type":"json","example":{"hops":[{"url":"http://github.com/","status":301,"location":"https://github.com/","shortener":false},{"url":"https://github.com/","status":200,"location":null,"shortener":false}],"flags":{"crossDomain":false,"httpsToHttp":false,"usedShortener":false},"input":"http://github.com/","finalUrl":"https://github.com/","redirects":1,"durationMs":369,"finalStatus":200,"stoppedReason":null}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ryQnY_QLl_IMGdai8EGjK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Traces HTTP redirect chains for a given URL, returning each hop, status codes, final destination, and security flags like HTTP downgrade or shortener usage.","exampleAgentPrompt":"Can you trace where http://bit.ly/3xABCDE actually redirects to and tell me all the hops, whether it uses a shortener, and if it ever downgrades from HTTPS to HTTP?","exampleUseCases":[{"title":"Unshorten a suspicious link","prompt":"Someone sent me this link http://t.co/xyz123 — can you trace it and tell me where it ultimately leads and whether it goes through any URL shorteners?"},{"title":"Audit affiliate redirect chain","prompt":"I need to check the full redirect chain for https://go.example.com/promo — show me every hop, the final URL, and flag any domain changes or security issues along the way."},{"title":"Detect HTTPS downgrade in redirect","prompt":"Can you follow the redirects for http://oldsite.example.com and tell me if it ever downgrades from HTTPS back to HTTP at any point in the chain?"}],"resultDescription":"A JSON object containing an array of redirect hops (each with URL, HTTP status, Location header, and shortener flag), the final URL, total redirect count, duration in milliseconds, final HTTP status, and boolean security flags indicating cross-domain redirects, HTTPS-to-HTTP downgrades, and URL shortener usage.","failureModes":["Invalid or unreachable URL returns an error with no hops","Redirect loop detected may cause premature stop with stoppedReason set","Private/internal URLs (localhost, 192.168.x.x) may be rejected or return no response","Very long redirect chains may be truncated","Non-HTTP(S) schemes are unsupported"],"whenToPreferThis":"Use this endpoint when you need to programmatically follow and inspect the full HTTP redirect chain of a URL — especially to detect URL shorteners, cross-domain hops, HTTPS downgrades, or to resolve the true final destination of a link. It is ideal for security audits, affiliate link verification, and phishing detection. Prefer it over manual browser inspection or generic HTTP clients when structured, machine-readable hop data and security flags are needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-04T06:44:59.132Z","isFirstParty":false,"canonicalSlug":"fastx402-redirect-trace-8a3a8e78"}