{"uid":"cap_Z6SxpUioYx-sJ6s0XI8aO","slug":"url-redirect-chain-unwrapper-44edf9b5","name":"URL Redirect Chain Unwrapper","description":"Trace the redirect chain of a URL to its final destination without downloading page bodies: every hop with its status code, time and Location header, the final URL, whether the domain changed, and loop detection. Useful before trusting a short link or an ad link. Query: ?url=https://bit.ly/…","url":"https://api.x-402.online/v1/url/unwrap?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","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":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_PJfMcCOoWVY3fM7w3EfyJ","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 the full redirect chain of a URL hop-by-hop, returning each step's status code, timing, and Location header, the final destination URL, domain-change detection, and loop detection.","exampleAgentPrompt":"Can you trace where this bit.ly link actually goes? Unwrap the full redirect chain for https://bit.ly/3xYz9Qk and tell me the final destination and whether the domain changes at any point.","exampleUseCases":[{"title":"Vetting a suspicious short link","prompt":"Before I click this link someone sent me, can you trace where https://t.co/abc123XYZ actually redirects to? Show me every hop and tell me if it ends up on a different domain than it starts."},{"title":"Auditing ad link redirects","prompt":"I need to inspect this ad network URL — can you unwrap https://ad.doubleclick.net/ddm/trackclk/N1234 and show me the full redirect chain with all the status codes and timing so I can see where it ultimately lands?"},{"title":"Detecting redirect loops in a broken link","prompt":"This URL on our site seems to be broken and might be looping — can you trace the redirects for https://example.com/old-page and check whether there's a redirect loop?"}],"resultDescription":"Returns the ordered list of redirect hops, each with its URL, HTTP status code, Location header, and response time; the final resolved URL; a flag indicating whether the domain changed between any hops; and a loop-detection indicator if circular redirects are found.","failureModes":["Invalid or malformed URL returns an error","Target server is unreachable or times out mid-chain","Redirect loop detected and reported as an error or flag","DNS resolution failure for any hop in the chain","Chain exceeds maximum hop limit and is truncated"],"whenToPreferThis":"Choose this endpoint when you need to safely inspect a URL's full redirect path without downloading page bodies — ideal for vetting short links, affiliate links, ad URLs, or any suspicious link before trusting or sharing it. Prefer it over a full page scrape when you only care about where a URL leads, not its content.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T03:55:21.877Z","isFirstParty":false,"canonicalSlug":"url-redirect-chain-unwrapper-44edf9b5"}