Skip to content
New: Agenty MCP server.

Scrape websites, take screenshots and get datasets right from Claude, ChatGPT, Gemini or Cursor.

Connect your AI

URL Redirect Checker API

Trace the full redirect chain for any URL — every hop, status code, response time, and final destination.

Bulk redirect checker
Paste one URL per line. Requests run one by one in your browser. 5 of 5 free requests left. Sign in for more.
API reference

The Agenty Redirects API traces the complete redirect chain for any URL. It records every hop, HTTP status code, response time, and the final destination, and flags redirect loops or long chains that hurt SEO and user experience.

Features

  • Full chain trace
    Up to 20 hops, configurable per request.
  • Status per hop
    HTTP status code returned at each step.
  • Latency per hop
    Response time for performance analysis.
  • Loop detection
    Flag circular redirects automatically.
  • Custom User-Agent
    Simulate Googlebot, mobile, or your own client.
  • Final destination
    Final URL and status code for every link.
  • CSV export
    Every hop of every URL in one CSV file.
  • Bulk checking
    Paste a list of URLs and check them in one run.

Use cases

  • SEO audits to find chains that dilute link equity
  • Verify post-migration 301 redirects after a site move
  • Validate affiliate and partner short-links at scale
  • Detect cloaking and unexpected redirect targets
  • Measure redirect latency for performance budgets

Use it from Claude or ChatGPT

Connect the Agenty MCP server to Claude, ChatGPT, Gemini, Cursor or VS Code and ask for it in plain language. The assistant picks the Agenty tool it needs, usually trace_redirects, and runs it in the same browser as this page. Paste a few URLs and it works through them in one go. Claude gets every hop with its status code and the final URL.

Prompts to try:

  • Trace the redirects for these 4 URLs and show every hop with its status code: https://www.scrapingsandbox.com, https://scrapingsandbox.com/product/1/, https://scrapingsandbox.com/data-table/, https://scrapingsandbox.com/infinite-scroll/
  • Does https://www.scrapingsandbox.com redirect with a 301 or a 302, and where does it end up?
Claude tracing redirects for four scrapingsandbox.com URLs with the Agenty MCP server, showing a 301 and a 308 hop with their status codes
Trace a URL redirect chain with cURLbash
curl -X POST https://api.agenty.ai/v1/redirects \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "http://github.com"}'
Trace redirects as Googlebotbash
curl -X POST https://api.agenty.ai/v1/redirects \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://bit.ly/abc123",
    "userAgent": "Mozilla/5.0 (compatible; Googlebot/2.1)"
  }'
Trace a redirect chain in Node.jsjavascript
const res = await fetch('https://api.agenty.ai/v1/redirects', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ url: 'http://github.com' }),
});
const chain = await res.json(); // { finalUrl, status, hops, loop, redirects }
chain.redirects.forEach((hop) => console.log(hop.status, hop.url, hop.time));
Trace a redirect chain in Pythonpython
import requests

res = requests.post(
    "https://api.agenty.ai/v1/redirects",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={"url": "http://github.com"},
)
for hop in res.json()["redirects"]:
    print(hop["status"], hop["url"])

How Agenty compares

FeatureAgentyRedirect-CheckerWhereGoesHTTPStatus
Full chain tracingYes (up to 20 hops)YesYesLimited
Response time per hopYesNoNoNo
Custom User-AgentYesNoNoNo
Loop detectionYesNoNoNo
Free tierYesYesYesYes

Frequently asked questions

What is the URL Redirect Checker API?

The Agenty Redirects API traces the complete redirect path for any URL. It records every hop, HTTP status code, response time, and final destination, helping you detect loops and long chains. See the API reference for the full response.

How many hops can it trace?

Up to 20 hops. Each hop includes its status code, response time, and the location it redirects to. To check many URLs, paste them into the tool above and download every hop as CSV. To find the URLs to check, use the link extractor.

Can I check redirects as a specific user agent?

Yes. Pass a userAgent string to simulate mobile browsers, crawlers like Googlebot, or custom clients — some sites serve different redirects based on the user agent.

Does it detect redirect loops?

Yes. We detect circular redirects and flag them in the response. A loop is reported when a URL redirects back to one already seen in the chain.

Is there a free tier?

Yes. All accounts include free credits. See our pricing page for details.

Can I use this tool from Claude or ChatGPT?

Yes. Add https://api.agenty.ai/mcp as a connector in your AI app, sign in to Agenty, and ask in plain language. The assistant usually runs trace_redirects for you. See the MCP setup guide for each app.

API pricing

Pay only for successful requests

API calls use the same monthly credits as your agents. JavaScript pages cost 5 credits.

Compare all plans

Included in every plan

$29 /month

  • 200,000 credits monthly
  • Only successful requests billed
  • Credits shared with your agents

Credits per request

/v1/scrape
5
/v1/content
5
/v1/markdown
5
/v1/links
5
/v1/screenshot
5
/v1/pdf
5
/v1/extract
10
/v1/redirects
1
/v1/sitemap
1
/v1/emails
1
Web scraping agent

Web scraping with AI

Start scraping data from any website using the Agenty's web scraping agents with AI.

  • Custom web scraping at scale
  • Real-time price monitoring
  • LLM training data curation
  • Structured JSON & CSV exports
  • Anti-bot bypass built-in
  • 99.9% uptime SLA

Get a free sample dataset from any website before you commit.