Batch Redirect Checks1 Credit / item
Check the redirects of up to 500 domains or URLs in one call, and read their results as a run.
Up to 500 items in one call, each answered as its single call would answer it. Send the shared parameters beside the list. Every call creates a run and answers 202 with it at once: items already in the result cache are answered in it, and the rest show as pending. Read it at /v1/runs/{id} while its status is queued or running; each read shows the items finished so far. It ends completed, or failed when the run could not finish, which bills nothing. GET /v1/runs lists your runs. Each answered item (HTTP 200) costs 1 credit; failed items are not billed. The call reserves the cost of every item and is charged for the items answered when the run completes. See Batch Runs for the whole flow.
See Authentication for details.
X-API-Key<token>Provide your API key in an HTTP request header.
application/json- body
urls*array<>The domains or URLs to check, 500 at most. Each is answered as /v1/redirect?url= would answer it, and billed only when answered
1 <= items <= 500verbose?booleanReturn extra detail: totalElapsed, retries and params, plus each errors entry's detail when the lookup fails. For redirect, each hop also has its response headers (lowercased) and phase timings.
falsevariants?stringWhich URLs to trace. matrix (the default for a bare host) traces the apex and www over http and https: four traces in one call. single (the default for a URL with a scheme or a path) traces the URL alone. matrix takes a host or a root URL; a URL with a path, query or port is refused
"matrix""single"maxRedirects?integerThe most redirects a trace follows before it stops with too-many-redirects, at most 20
1 <= value <= 2010userAgent?stringThe user agent to send, by preset name: a browser-like agent that names DNS.Tools by default, or a browser, phone, search or AI crawler (httpstatus.io's preset names, plus claudebot and perplexitybot)
"dnstools""dnstools""browser""chrome""firefox""safari""edge""iphone""ipad""android""googlebot-desktop""googlebot-smartphone""bingbot-desktop""bingbot-mobile""yandexbot""applebot-desktop""duckduckbot""twitterbot""linkedinbot""facebook-crawler""slackbot""gptbot""chatgpt-user""claudebot""perplexitybot""ccbot"followMetaRefresh?booleanFollow a Refresh header and an HTML meta refresh on a 2xx page
truefollowJs?booleanFollow a simple script assignment to location (location.href = …, location.replace(…)) in the first HTML bytes. The script is read, never run
truevalidateTlsCertificate?booleanStop a trace at an https hop whose certificate is not trusted. With false the trace keeps following, and the certificate problem is still reported in that hop's tls
trueThe run: queued, or completed already when every item was in the result cache. Read it by id
application/json- response
id*stringThe run ID, which names its tool: read it back at /v1/runs/{id}
tool*"redirect"The tool the run belongs to
"redirect"endpoint*stringThe endpoint that created it
status*stringqueued or running until every item has an outcome, then completed. failed means the run itself could not finish and nothing was billed
"queued""running""completed""failed"createdAt*stringcompletedAt*|When every item had an outcome; null until then
items*integerHow many items were sent
answered*|How many items were answered (HTTP 200), the ones billed; null until completed
credits*|What the run cost: answered items times the per-item price; null until completed
results*array<>|One entry per item, in the order sent: the outcome of each finished item, the rest pending. Null for a failed run
errors*array<>Why the run itself failed; empty otherwise. Each failed item has its own errors
See Errors for the response format.
invalid_requestinvalid_queryblocked_addressauthentication_failedinvalid_api_keyapi_key_expiredout_of_creditsforbiddenrate_limitedinternal_errorcurl -X POST 'https://api.dns.tools/v1/redirect/batch' \ -H 'Content-Type: application/json' \ -d '{ "urls": [ "github.com", "http://wikipedia.com/wiki", "example.com" ]}'{ "id": "run_redirect_01m8shrys5er5fmpkzk8ctgsp0", "tool": "redirect", "endpoint": "batch", "status": "completed", "createdAt": "2026-12-01T19:37:14.702Z", "completedAt": "2026-12-01T19:37:17.216Z", "items": 3, "answered": 3, "credits": 3, "results": [ { "query": "github.com", "pending": false, "cached": false, "errors": [], "result": { "traces": [ { "seo": { "permanent": true, "hostChange": "none", "chainTooLong": false, "httpsUpgrade": true }, "loop": null, "chain": [ { "ip": "172.182.252.133", "dns": { "a": [ "20.172.24.160", "172.182.252.133", "172.182.252.137", "185.199.108.105", "185.199.109.105", "185.199.110.105", "185.199.111.105", "140.82.112.31", "140.82.112.32", "140.82.113.31", "140.82.113.32", "140.82.114.31", "140.82.114.32" ], "ns": [ "dns1.p08.nsone.net", "dns2.p08.nsone.net", "dns3.p08.nsone.net", "dns4.p08.nsone.net", "ns-421.awsdns-52.com", "ns-520.awsdns-01.net", "ns-1283.awsdns-32.org", "ns-1707.awsdns-21.co.uk" ], "aaaa": [], "cname": [] }, "tls": null, "url": "http://github.com/", "latency": 39, "service": null, "mechanism": "http", "redirectTo": "https://github.com/", "statusCode": 301, "redirectType": "same-origin", "statusMessage": "Moved Permanently" }, { "ip": "172.182.252.133", "dns": { "a": [ "20.172.24.160", "172.182.252.133", "172.182.252.137", "185.199.108.105", "185.199.109.105", "185.199.110.105", "185.199.111.105", "140.82.112.31", "140.82.112.32", "140.82.113.31", "140.82.113.32", "140.82.114.31", "140.82.114.32" ], "ns": [ "dns1.p08.nsone.net", "dns2.p08.nsone.net", "dns3.p08.nsone.net", "dns4.p08.nsone.net", "ns-421.awsdns-52.com", "ns-520.awsdns-01.net", "ns-1283.awsdns-32.org", "ns-1707.awsdns-21.co.uk" ], "aaaa": [], "cname": [] }, "tls": { "error": null, "issuer": "Sectigo Limited", "expires": "2027-01-27T23:59:59.000Z", "trusted": true, "protocol": "TLSv1.3" }, "url": "https://github.com/", "latency": 291, "service": null, "mechanism": null, "redirectTo": null, "statusCode": 200, "redirectType": null, "statusMessage": "OK" } ], "error": null, "finalUrl": "https://github.com/", "startUrl": "http://github.com/", "canonical": "https://github.com/", "xRobotsTag": null, "finalStatusCode": 200, "numberOfRedirects": 1 }, { "seo": { "permanent": null, "hostChange": "none", "chainTooLong": false, "httpsUpgrade": false }, "loop": null, "chain": [ { "ip": "172.182.252.133", "dns": { "a": [ "20.172.24.160", "172.182.252.133", "172.182.252.137", "185.199.108.105", "185.199.109.105", "185.199.110.105", "185.199.111.105", "140.82.112.31", "140.82.112.32", "140.82.113.31", "140.82.113.32", "140.82.114.31", "140.82.114.32" ], "ns": [ "dns1.p08.nsone.net", "dns2.p08.nsone.net", "dns3.p08.nsone.net", "dns4.p08.nsone.net", "ns-421.awsdns-52.com", "ns-520.awsdns-01.net", "ns-1283.awsdns-32.org", "ns-1707.awsdns-21.co.uk" ], "aaaa": [], "cname": [] }, "tls": { "error": null, "issuer": "Sectigo Limited", "expires": "2027-01-27T23:59:59.000Z", "trusted": true, "protocol": "TLSv1.3" }, "url": "https://github.com/", "latency": 336, "service": null, "mechanism": null, "redirectTo": null, "statusCode": 200, "redirectType": null, "statusMessage": "OK" } ], "error": null, "finalUrl": "https://github.com/", "startUrl": "https://github.com/", "canonical": "https://github.com/", "xRobotsTag": null, "finalStatusCode": 200, "numberOfRedirects": 0 }, { "seo": { "permanent": true, "hostChange": "www-to-apex", "chainTooLong": false, "httpsUpgrade": true }, "loop": null, "chain": [ { "ip": "172.182.252.133", "dns": { "a": [ "172.182.252.133" ], "ns": [ "dns1.p08.nsone.net", "dns2.p08.nsone.net", "dns3.p08.nsone.net", "dns4.p08.nsone.net", "ns-421.awsdns-52.com", "ns-520.awsdns-01.net", "ns-1283.awsdns-32.org", "ns-1707.awsdns-21.co.uk" ], "aaaa": [], "cname": [ "github.com" ] }, "tls": null, "url": "http://www.github.com/", "latency": 43, "service": null, "mechanism": "http", "redirectTo": "https://www.github.com/", "statusCode": 301, "redirectType": "same-origin", "statusMessage": "Moved Permanently" }, { "ip": "172.182.252.133", "dns": { "a": [ "172.182.252.133" ], "ns": [ "dns1.p08.nsone.net", "dns2.p08.nsone.net", "dns3.p08.nsone.net", "dns4.p08.nsone.net", "ns-421.awsdns-52.com", "ns-520.awsdns-01.net", "ns-1283.awsdns-32.org", "ns-1707.awsdns-21.co.uk" ], "aaaa": [], "cname": [ "github.com" ] }, "tls": { "error": null, "issuer": "Sectigo Limited", "expires": "2027-01-27T23:59:59.000Z", "trusted": true, "protocol": "TLSv1.3" }, "url": "https://www.github.com/", "latency": 59, "service": null, "mechanism": "http", "redirectTo": "https://github.com/", "statusCode": 301, "redirectType": "cross-origin", "statusMessage": "Moved Permanently" }, { "ip": "172.182.252.133", "dns": { "a": [ "20.172.24.160", "172.182.252.133", "172.182.252.137", "185.199.108.105", "185.199.109.105", "185.199.110.105", "185.199.111.105", "140.82.112.31", "140.82.112.32", "140.82.113.31", "140.82.113.32", "140.82.114.31", "140.82.114.32" ], "ns": [ "dns1.p08.nsone.net", "dns2.p08.nsone.net", "dns3.p08.nsone.net", "dns4.p08.nsone.net", "ns-421.awsdns-52.com", "ns-520.awsdns-01.net", "ns-1283.awsdns-32.org", "ns-1707.awsdns-21.co.uk" ], "aaaa": [], "cname": [] }, "tls": { "error": null, "issuer": "Sectigo Limited", "expires": "2027-01-27T23:59:59.000Z", "trusted": true, "protocol": "TLSv1.3" }, "url": "https://github.com/", "latency": 225, "service": null, "mechanism": null, "redirectTo": null, "statusCode": 200, "redirectType": null, "statusMessage": "OK" } ], "error": null, "finalUrl": "https://github.com/", "startUrl": "http://www.github.com/", "canonical": "https://github.com/", "xRobotsTag": null, "finalStatusCode": 200, "numberOfRedirects": 2 }, { "seo": { "permanent": true, "hostChange": "www-to-apex", "chainTooLong": false, "httpsUpgrade": false }, "loop": null, "chain": [ { "ip": "172.182.252.133", "dns": { "a": [ "172.182.252.133" ], "ns": [ "dns1.p08.nsone.net", "dns2.p08.nsone.net", "dns3.p08.nsone.net", "dns4.p08.nsone.net", "ns-421.awsdns-52.com", "ns-520.awsdns-01.net", "ns-1283.awsdns-32.org", "ns-1707.awsdns-21.co.uk" ], "aaaa": [], "cname": [ "github.com" ] }, "tls": { "error": null, "issuer": "Sectigo Limited", "expires": "2027-01-27T23:59:59.000Z", "trusted": true, "protocol": "TLSv1.3" }, "url": "https://www.github.com/", "latency": 67, "service": null, "mechanism": "http", "redirectTo": "https://github.com/", "statusCode": 301, "redirectType": "cross-origin", "statusMessage": "Moved Permanently" }, { "ip": "172.182.252.133", "dns": { "a": [ "20.172.24.160", "172.182.252.133", "172.182.252.137", "185.199.108.105", "185.199.109.105", "185.199.110.105", "185.199.111.105", "140.82.112.31", "140.82.112.32", "140.82.113.31", "140.82.113.32", "140.82.114.31", "140.82.114.32" ], "ns": [ "dns1.p08.nsone.net", "dns2.p08.nsone.net", "dns3.p08.nsone.net", "dns4.p08.nsone.net", "ns-421.awsdns-52.com", "ns-520.awsdns-01.net", "ns-1283.awsdns-32.org", "ns-1707.awsdns-21.co.uk" ], "aaaa": [], "cname": [] }, "tls": { "error": null, "issuer": "Sectigo Limited", "expires": "2027-01-27T23:59:59.000Z", "trusted": true, "protocol": "TLSv1.3" }, "url": "https://github.com/", "latency": 268, "service": null, "mechanism": null, "redirectTo": null, "statusCode": 200, "redirectType": null, "statusMessage": "OK" } ], "error": null, "finalUrl": "https://github.com/", "startUrl": "https://www.github.com/", "canonical": "https://github.com/", "xRobotsTag": null, "finalStatusCode": 200, "numberOfRedirects": 1 } ], "verdict": "All 4 variants land on https://github.com/ · 301 → 1 hop → https://github.com/", "finalUrl": "https://github.com/", "problems": [], "variants": "matrix", "consistent": true }, "status": 200 }, { "query": "http://wikipedia.com/wiki", "pending": false, "cached": false, "errors": [], "result": { "traces": [ { "seo": { "permanent": true, "hostChange": "cross-host", "chainTooLong": false, "httpsUpgrade": true }, "loop": null, "chain": [ { "ip": "198.35.26.226", "dns": { "a": [ "198.35.26.226" ], "ns": [ "ns0.wikimedia.org", "ns1.wikimedia.org", "ns2.wikimedia.org" ], "aaaa": [ "2620:0:863:ed1a::3" ], "cname": [] }, "tls": null, "url": "http://wikipedia.com/wiki", "latency": 9, "service": null, "mechanism": "http", "redirectTo": "https://wikipedia.com/wiki", "statusCode": 301, "redirectType": "same-origin", "statusMessage": "Moved Permanently" }, { "ip": "198.35.26.226", "dns": { "a": [ "198.35.26.226" ], "ns": [ "ns0.wikimedia.org", "ns1.wikimedia.org", "ns2.wikimedia.org" ], "aaaa": [ "2620:0:863:ed1a::3" ], "cname": [] }, "tls": { "error": null, "issuer": "Let's Encrypt", "expires": "2027-01-19T18:26:13.000Z", "trusted": true, "protocol": "TLSv1.3" }, "url": "https://wikipedia.com/wiki", "latency": 19, "service": null, "mechanism": "http", "redirectTo": "https://www.wikipedia.org/wiki", "statusCode": 301, "redirectType": "cross-origin", "statusMessage": "Moved Permanently" }, { "ip": "198.35.26.224", "dns": { "a": [], "ns": [ "ns0.wikimedia.org", "ns1.wikimedia.org", "ns2.wikimedia.org" ], "aaaa": [], "cname": [ "dyna.wikimedia.org" ] }, "tls": { "error": null, "issuer": "Let's Encrypt", "expires": "2027-01-02T18:34:50.000Z", "trusted": true, "protocol": "TLSv1.3" }, "url": "https://www.wikipedia.org/wiki", "latency": 15, "service": null, "mechanism": null, "redirectTo": null, "statusCode": 403, "redirectType": null, "statusMessage": "Forbidden" } ], "error": null, "finalUrl": "https://www.wikipedia.org/wiki", "startUrl": "http://wikipedia.com/wiki", "canonical": null, "xRobotsTag": null, "finalStatusCode": 403, "numberOfRedirects": 2 } ], "verdict": "301 → 2 hops → https://www.wikipedia.org/wiki", "finalUrl": "https://www.wikipedia.org/wiki", "problems": [ { "id": "final-not-2xx", "message": "https://www.wikipedia.org/wiki answers 403", "severity": "fail", "startUrl": "http://wikipedia.com/wiki" } ], "variants": "single", "consistent": null }, "status": 200 }, { "query": "example.com", "pending": false, "cached": false, "errors": [], "result": { "traces": [ { "seo": { "permanent": null, "hostChange": "none", "chainTooLong": false, "httpsUpgrade": false }, "loop": null, "chain": [ { "ip": "104.20.23.154", "dns": { "a": [ "104.20.23.154", "172.66.147.243" ], "ns": [ "elliott.ns.cloudflare.com", "hera.ns.cloudflare.com" ], "aaaa": [ "2606:4700:10::6814:179a", "2606:4700:10::ac42:93f3" ], "cname": [] }, "tls": null, "url": "http://example.com/", "latency": 12, "service": { "id": "cloudflare-proxy", "via": null, "kind": "proxy", "name": "Cloudflare (proxied origin)", "evidence": [ "cf-ray header", "server: cloudflare", "address 104.20.23.154", "address 172.66.147.243", "address 2606:4700:10::6814:179a", "address 2606:4700:10::ac42:93f3", "nameserver elliott.ns.cloudflare.com", "nameserver hera.ns.cloudflare.com" ] }, "mechanism": null, "redirectTo": null, "statusCode": 200, "redirectType": null, "statusMessage": "OK" } ], "error": null, "finalUrl": "http://example.com/", "startUrl": "http://example.com/", "canonical": null, "xRobotsTag": null, "finalStatusCode": 200, "numberOfRedirects": 0 }, { "seo": { "permanent": null, "hostChange": "none", "chainTooLong": false, "httpsUpgrade": false }, "loop": null, "chain": [ { "ip": "104.20.23.154", "dns": { "a": [ "104.20.23.154", "172.66.147.243" ], "ns": [ "elliott.ns.cloudflare.com", "hera.ns.cloudflare.com" ], "aaaa": [ "2606:4700:10::6814:179a", "2606:4700:10::ac42:93f3" ], "cname": [] }, "tls": { "error": null, "issuer": "SSL Corporation", "expires": "2027-02-22T23:53:08.000Z", "trusted": true, "protocol": "TLSv1.3" }, "url": "https://example.com/", "latency": 21, "service": { "id": "cloudflare-proxy", "via": null, "kind": "proxy", "name": "Cloudflare (proxied origin)", "evidence": [ "cf-ray header", "server: cloudflare", "address 104.20.23.154", "address 172.66.147.243", "address 2606:4700:10::6814:179a", "address 2606:4700:10::ac42:93f3", "nameserver elliott.ns.cloudflare.com", "nameserver hera.ns.cloudflare.com" ] }, "mechanism": null, "redirectTo": null, "statusCode": 200, "redirectType": null, "statusMessage": "OK" } ], "error": null, "finalUrl": "https://example.com/", "startUrl": "https://example.com/", "canonical": null, "xRobotsTag": null, "finalStatusCode": 200, "numberOfRedirects": 0 }, { "seo": { "permanent": null, "hostChange": "none", "chainTooLong": false, "httpsUpgrade": false }, "loop": null, "chain": [ { "ip": "172.66.147.243", "dns": { "a": [ "104.20.23.154", "172.66.147.243" ], "ns": [ "elliott.ns.cloudflare.com", "hera.ns.cloudflare.com" ], "aaaa": [ "2606:4700:10::6814:179a", "2606:4700:10::ac42:93f3" ], "cname": [] }, "tls": null, "url": "http://www.example.com/", "latency": 19, "service": { "id": "cloudflare-proxy", "via": null, "kind": "proxy", "name": "Cloudflare (proxied origin)", "evidence": [ "cf-ray header", "server: cloudflare", "address 172.66.147.243", "address 104.20.23.154", "address 2606:4700:10::6814:179a", "address 2606:4700:10::ac42:93f3", "nameserver elliott.ns.cloudflare.com", "nameserver hera.ns.cloudflare.com" ] }, "mechanism": null, "redirectTo": null, "statusCode": 200, "redirectType": null, "statusMessage": "OK" } ], "error": null, "finalUrl": "http://www.example.com/", "startUrl": "http://www.example.com/", "canonical": null, "xRobotsTag": null, "finalStatusCode": 200, "numberOfRedirects": 0 }, { "seo": { "permanent": null, "hostChange": "none", "chainTooLong": false, "httpsUpgrade": false }, "loop": null, "chain": [ { "ip": "172.66.147.243", "dns": { "a": [ "104.20.23.154", "172.66.147.243" ], "ns": [ "elliott.ns.cloudflare.com", "hera.ns.cloudflare.com" ], "aaaa": [ "2606:4700:10::6814:179a", "2606:4700:10::ac42:93f3" ], "cname": [] }, "tls": { "error": null, "issuer": "SSL Corporation", "expires": "2027-02-22T23:53:08.000Z", "trusted": true, "protocol": "TLSv1.3" }, "url": "https://www.example.com/", "latency": 23, "service": { "id": "cloudflare-proxy", "via": null, "kind": "proxy", "name": "Cloudflare (proxied origin)", "evidence": [ "cf-ray header", "server: cloudflare", "address 172.66.147.243", "address 104.20.23.154", "address 2606:4700:10::6814:179a", "address 2606:4700:10::ac42:93f3", "nameserver elliott.ns.cloudflare.com", "nameserver hera.ns.cloudflare.com" ] }, "mechanism": null, "redirectTo": null, "statusCode": 200, "redirectType": null, "statusMessage": "OK" } ], "error": null, "finalUrl": "https://www.example.com/", "startUrl": "https://www.example.com/", "canonical": null, "xRobotsTag": null, "finalStatusCode": 200, "numberOfRedirects": 0 } ], "verdict": "The variants land in different places · No redirect: http://example.com/ answers 200", "finalUrl": "http://example.com/", "problems": [ { "id": "apex-www-differ", "message": "The variants land in different places: http://example.com/, https://example.com/, http://www.example.com/, https://www.example.com/", "severity": "warn", "startUrl": null } ], "variants": "matrix", "consistent": false }, "status": 200 } ], "errors": []}