Redirect Trace API - Follow HTTP Redirect Chains with Timing
Sends a HEAD request to a URL and follows every redirect hop until the final destination or the maximum hop limit is reached. Returns the original URL, final URL, total redirect count, total time, and an array of hops with URL, status code, latency, server header, location header, and content type.
Code examples
curl -X POST https://api.botoi.com/v1/redirect/trace \
-H "Content-Type: application/json" \
-d '{"url":"https://bit.ly/example"}'When to use this API
SEO redirect auditing
Crawl your site URLs through this endpoint to find redirect chains with more than one hop. Google recommends direct redirects; chains of 301s dilute link equity and slow page indexing.
URL shortener debugging
Paste a shortened URL and see every hop in the chain. Identify which redirect service is involved, whether it uses 301 (permanent) or 302 (temporary) redirects, and where the final destination lands.
Marketing link chain analysis
Trace campaign URLs through UTM wrappers, affiliate trackers, and CDN redirects. Measure the latency each hop adds and identify opportunities to shorten the chain.
Frequently asked questions
How many redirects does it follow?
Does it follow JavaScript redirects?
What is the difference between this and /v1/link/expand?
Does it send GET or HEAD requests?
Can I trace redirects for POST endpoints?
Get your API key
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.