Docs menu

Redirect tracer

Follow a URL or short link hop by hop and see every redirect, status code, cookie and where it ends.

GET /v1/redirects

Price
Costs 1 credit per call; cached answers cost the same. Calls that fail upstream (502) are free.
Cache
Answers are cached for up to 15 minutes, per account except for a site's home page; send fresh=true to ask the source again.
MCP tool
trace_redirects

Run it in the browser

Query parameters

Query parameters
NameTypeDescription
url (required)stringA URL or short link; we follow it without running any script.
freshbooleanSkip the cache and ask the source again; costs the same.

Response

Response fields
NameTypeDescription
tool (required)string
target (required)string
status (required)"ok" | "partial" | "error"
fetched_atstring
cachedboolean
credits_usedintegerCredits this call took from your balance. 0 for free tools, for a replay of an earlier call, and for a free check run on the website without signing in
summary (required)string
scoreinteger or null
findingsarray of object
credits_remaining (required)integerYour balance after this call. It can be below zero after a refund; free tools still work then
data (required)objectThis tool's result
data.start_url (required)string
data.final_url (required)string or null
data.final_status (required)integer or null
data.hops (required)array of object
data.hops.url (required)string
data.hops.status (required)integer
data.hops.location (required)string or null
data.hops.elapsed_ms (required)integer
data.hops.cookie_names (required)array of string
data.hops.kind"http" | "meta-refresh" | "js"
data.hops.address (required)string
data.hops.same_site_as_start (required)boolean
data.stop (required)"final" | "loop" | "too_many" | "refused" | "error" | "blocked"
data.total_ms (required)integer
data.cross_domain (required)boolean
data.shorteners (required)array of string
data.clean_final_url (required)string or null
data.removed_params (required)array of string

Errors

  • 400 Invalid domain, URL or parameter, a TLD this tool can't check, or an X-Request-Id already used for another call (`invalid_domain`, `invalid_url`, `invalid_request`, `unsupported_tld`)
  • 401 Missing, unknown or revoked API key, or one whose creator is no longer a member of the account (`unauthorized`)
  • 402 Balance below the call's price (`insufficient_credits`)
  • 403 Account suspended, the key's creator is over the plan's seats, or an anonymous check without a valid proof-of-work or for a tool that needs an account, or bulk checks before a first purchase (`account_suspended`, `plan_limit`, `challenge_required`, `sign_in_required`, `bulk_locked`)
  • 429 Too many requests, today's free checks are used up, or too many website scans at once; wait for the number of seconds in the Retry-After header (`rate_limited`, `free_limit_reached`, `too_many_jobs`). Not charged
  • 500 Unexpected error (`internal_error`)
  • 502 Every upstream source failed; not charged (`source_unavailable`). A Retry-After header says how long to wait when the source asked us to
  • 503 Too many open event streams on this server, the checked site is getting too many checks, or the browser or link checker is busy; try again after the seconds in the Retry-After header (`busy`, `site_busy`, `browser_busy`, `crawl_busy`). Not charged

Example

curl

curl
curl "https://api.dnssuper.com/v1/redirects?url=example.com" \
  -H "Authorization: Bearer $DNSSUPER_API_KEY"

Python

Python (httpx)
import os

import httpx

client = httpx.Client(
    base_url="https://api.dnssuper.com",
    headers={"Authorization": f"Bearer {os.environ['DNSSUPER_API_KEY']}"},
    timeout=60,
)
response = client.get("/v1/redirects", params={
    "url": "example.com",
})
response.raise_for_status()
result = response.json()
print(result["summary"], result["credits_used"])

TypeScript

TypeScript (fetch)
const response = await fetch(`https://api.dnssuper.com/v1/redirects?${new URLSearchParams({"url":"example.com"})}`, {
  headers: { Authorization: `Bearer ${process.env.DNSSUPER_API_KEY}` },
});
if (!response.ok) throw new Error((await response.json()).error.message);
const result = await response.json();
console.log(result.summary, result.credits_used);
Example response
Example response
{
  "tool": "redirect-checker",
  "target": "http://example.com/promo",
  "status": "ok",
  "fetched_at": "2026-11-14T10:00:00Z",
  "cached": false,
  "credits_used": 1,
  "summary": "2 redirects to www.example.com, which answers 200.",
  "findings": [
    {
      "id": "redirect.tracking_params",
      "severity": "info",
      "title": "The final address carries tracking parameters",
      "detail": "utm_source, gclid.",
      "fix": "Use the clean URL shown if you share the link."
    }
  ],
  "data": {
    "start_url": "http://example.com/promo",
    "final_url": "https://www.example.com/sale?utm_source=newsletter&gclid=abc123&id=7",
    "final_status": 200,
    "hops": [
      {
        "url": "http://example.com/promo",
        "status": 301,
        "location": "https://example.com/promo",
        "elapsed_ms": 12,
        "cookie_names": [],
        "kind": "http",
        "address": "192.0.2.10",
        "same_site_as_start": true
      },
      {
        "url": "https://example.com/promo",
        "status": 301,
        "location": "https://www.example.com/sale?utm_source=newsletter&gclid=abc123&id=7",
        "elapsed_ms": 12,
        "cookie_names": [
          "visit"
        ],
        "kind": "http",
        "address": "192.0.2.10",
        "same_site_as_start": true
      },
      {
        "url": "https://www.example.com/sale?utm_source=newsletter&gclid=abc123&id=7",
        "status": 200,
        "elapsed_ms": 12,
        "cookie_names": [],
        "kind": "http",
        "address": "192.0.2.10",
        "same_site_as_start": true
      }
    ],
    "stop": "final",
    "total_ms": 12,
    "cross_domain": false,
    "shorteners": [],
    "clean_final_url": "https://www.example.com/sale?id=7",
    "removed_params": [
      "utm_source",
      "gclid"
    ]
  },
  "credits_remaining": 498
}

MCP

MCP tool call
{
  "tool": "trace_redirects",
  "arguments": {
    "url": "example.com"
  }
}
Compact MCP output
2 redirects to www.example.com, which answers 200.
1. 301 http://example.com/promo
2. 301 https://example.com/promo (sets cookie: visit)
3. 200 https://www.example.com/sale?utm_source=newsletter&gclid=abc123&id=7
Without tracking parameters: https://www.example.com/sale?id=7
- info: The final address carries tracking parameters
Credits: 1 credit used, 498 remaining | fresh | checked 2026-11-14 10:00 UTC