{"uid":"cap_fsqM4mzxIUqXuSS-zJK_e","slug":"netintel-production-440c-up-railway-app-c8f075f5","name":"URL Redirect Chain Tracer with Health Grading","description":"Follows a URL through its full redirect chain (up to 20 hops), recording status codes, timing, headers, TLS status, and protocol downgrades per hop, then returns an overall redirect health grade (A–F).","url":"https://netintel-production-440c.up.railway.app/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":"URL to trace redirects for (e.g. http://google.com)"},"max_hops":{"type":"number","description":"Maximum redirect hops to follow (default: 10, max: 20)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"chain":{"type":"array"},"flags":{"type":"array"},"grade":{"type":"string"},"score":{"type":"number"},"final_url":{"type":"string"},"deductions":{"type":"array"},"total_hops":{"type":"number"},"loop_detected":{"type":"boolean"},"total_timing_ms":{"type":"number"},"final_status_code":{"type":"number"},"protocol_downgrade":{"type":"boolean"}}}}}}},"responseSchema":{"type":"json","example":{"chain":[{"hop":0,"tls":false,"url":"http://example.com/","headers":{"server":"nginx","location":"https://example.com/"},"location":"https://example.com/","timing_ms":85,"status_code":301},{"hop":1,"tls":true,"url":"https://example.com/","headers":{"server":"nginx","content-type":"text/html"},"location":null,"timing_ms":42,"status_code":200}],"flags":["http_entry_point"],"grade":"A","score":95,"final_url":"https://example.com/","deductions":[{"points":-5,"reason":"http_entry_point"}],"total_hops":1,"loop_detected":false,"total_timing_ms":127,"final_status_code":200,"protocol_downgrade":false}},"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"url":"http://example.com","max_hops":10}}},"response":{"chain":[{"hop":0,"tls":false,"url":"http://example.com/","headers":{"age":"2","date":"Fri, 12 Jun 2026 02:00:14 GMT","allow":"GET, HEAD","cf-ray":"a0a542bfcc06159a-SJC","server":"cloudflare","connection":"keep-alive","content-type":"text/html","last-modified":"Thu, 11 Jun 2026 20:55:20 GMT","cf-cache-status":"HIT","content-encoding":"gzip","transfer-encoding":"chunked"},"location":null,"timing_ms":14,"status_code":200}],"flags":["http_entry_point"],"grade":"A","score":95,"final_url":"http://example.com/","deductions":[{"points":-5,"reason":"http_entry_point"}],"total_hops":0,"loop_detected":false,"total_timing_ms":14,"final_status_code":200,"protocol_downgrade":false}},"exampleRequest":{"url":"http://example.com","max_hops":10},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2eD-8JrCqPlRcDZYKFtdS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Follows a URL through its full redirect chain (up to 20 hops), recording status codes, timing, headers, TLS status, and protocol downgrades per hop, then returns an overall redirect health grade (A–F).","exampleAgentPrompt":"Can you trace all the redirects for http://bit.ly/3xampleLink and tell me the full redirect chain, whether it ever downgrades from HTTPS to HTTP, and what overall health grade it gets?","exampleUseCases":null,"resultDescription":"Returns the full redirect chain as an array of hops (each with URL, status code, timing, TLS status, headers), plus: final URL, final status code, total hop count, total timing in ms, loop detection boolean, protocol downgrade boolean, a list of flags and deductions, a numeric health score, and an overall letter grade (A–F) summarizing redirect health.","failureModes":["Invalid or malformed URL input — returns an error indicating bad input","Loop detected after exhausting max hops — loop_detected flag set to true, chain truncated","Target URL is unreachable or times out — connection error returned","max_hops exceeds 20 — capped or rejected with validation error","Non-HTTP/HTTPS scheme provided — unsupported protocol error"],"whenToPreferThis":"Use this endpoint when you need to audit or debug the full redirect path of a URL, detect redirect loops, check for HTTP-to-HTTPS protocol downgrades, measure per-hop latency, or get an at-a-glance health grade for a URL's redirect chain. Prefer it over a simple HEAD request when chain depth, TLS integrity, or redirect health scoring matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:37:07.761Z","isFirstParty":false,"canonicalSlug":"netintel-production-440c-up-railway-app-c8f075f5"}