Docs/Web Intel/GET /v1/redirect-chain

GET /v1/redirect-chainRedirect chain tracer

Web Intel lf-web-intel

Follows every hop a link takes before it lands on the final page. Traces the full HTTP redirect chain for a URL, following up to a configurable number of hops.

Query Parameters

ParameterTypeRequiredDescription
urlstringYesURL to trace
maxintegerNoMax redirect hops

Response Schema

success (boolean): Operation success
url (string): Original URL
hops (array): Each redirect step
final_url (string): Final destination
chain_length (integer): Number of hops

cURL Example

curl 'https://lf-web-intel.laminarforge.dev/v1/redirect-chain?url=https://bit.ly/3abc123' -H 'Authorization: Bearer lf_YourApiKey'

Python Example

import requests
url = 'https://lf-web-intel.laminarforge.dev/v1/redirect-chain'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'url': 'https://bit.ly/3abc123'}
response = requests.get(url, headers=headers, params=params)
print(response.json())