{"uid":"cap_kZdAV47tPekbwnL0nRP0b","slug":"fetchx402-https-redirect-tracer-ba303ee5","name":"fetchx402 HTTPS Redirect Tracer","description":"Trace HTTPS redirects for a hostname. Use when you need live hop facts and must not guess. HEAD of https://{domain}/ on :443 (GET if 405/501); follow Location up to 5 hops. HTTPS :443 only after ConnectGuard. Bodies are omitted.","url":"https://api.fetchx402.com/v1/tools/resolve-redirect","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","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","description":"Public fully-qualified domain name to start from, such as example.com. We HEAD https://{domain}/ on :443 (GET if HEAD is 405/501), then follow Location up to 5 hops. IPs, localhost, and internal/mDNS names are rejected. Only HTTPS :443 after ConnectGuard. Response bodies are not returned."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"hops":[{"url":"https://example.com/","index":1,"method":"HEAD","status":200,"peer_ip":"23.215.0.138","location":null}],"domain":"example.com","final_url":"https://example.com/","hop_count":1,"start_url":"https://example.com/","truncated":false,"stop_reason":null}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Wu4F1Ngo07WUHNBLZ-4kM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Traces HTTPS redirect chains for a public domain, following Location headers up to 5 hops and returning live hop facts without response bodies.","exampleAgentPrompt":"Can you trace the full HTTPS redirect chain for stripe.com and tell me every hop, status code, and where it finally lands?","exampleUseCases":[{"title":"SEO redirect audit for a domain","prompt":"Can you follow the redirect chain for shopify.com and show me every hop with status codes so I can check there are no unnecessary redirect loops hurting SEO?"},{"title":"Security check on shortened URL destination","prompt":"I need to know exactly where t.co/abc123 redirects to — can you trace all the HTTPS hops so I can see the final destination before I click it?"},{"title":"Verifying HTTPS migration redirect","prompt":"We just migrated old-site.com to HTTPS — can you trace the redirect chain to confirm it goes straight from HTTP to the new domain without any extra hops?"}],"resultDescription":"Returns an ordered list of up to 5 redirect hops for the given domain, each with the HTTP status code, Location header value, and any relevant response headers encountered along the chain. Response bodies are omitted. The trace starts with a HEAD request to https://{domain}/ on port 443 (falling back to GET if HEAD returns 405 or 501) and follows Location headers through each hop.","failureModes":["Domain is an IP address, localhost, or internal/mDNS name — rejected by ConnectGuard","TLS handshake failure on port 443 — connection error returned","Domain does not exist in DNS — resolution failure","Redirect chain exceeds 5 hops — trace truncated at 5th hop","Origin server returns 405 to HEAD and 501 to GET — no redirect data returned","Non-public or non-routable hostname provided — rejected"],"whenToPreferThis":"Choose this endpoint when you need live, ground-truth redirect hop data for a public domain rather than cached or guessed results. It is ideal for SEO audits, security vetting of unknown URLs, verifying HTTPS migration correctness, or detecting redirect loops. Prefer it over general HTTP clients when you want a safe, sandboxed trace that never returns response bodies and blocks internal network access via ConnectGuard.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:33:13.687Z","isFirstParty":false}