This API allows you to programmatically track and analyze URL redirect chains with detailed information.
The API is limited to 100 requests per hour per IP address.
Track a URL and get the full redirect chain using a POST request.
Parameter | Type | Required | Description |
---|---|---|---|
url | string | Yes | The URL to track (e.g., "example.com") |
method | string | No | HTTP method (GET, HEAD, POST). Default: "GET" |
userAgent | string | No | Custom User-Agent header |
curl -X POST http://localhost:3333/api/v1/track \ -H "Content-Type: application/json" \ -d '{ "url": "github.com", "method": "GET" }'
Track a URL and get the full redirect chain using a GET request with query parameters.
Parameter | Type | Required | Description |
---|---|---|---|
url | string | Yes | The URL to track (e.g., "example.com") |
method | string | No | HTTP method (GET, HEAD, POST). Default: "GET" |
userAgent | string | No | Custom User-Agent header |
curl "http://localhost:3333/api/v1/track?url=github.com&method=GET"
{ "success": true, "status": 200, "data": { "url": "http://github.com", "method": "GET", "redirectCount": 1, "finalUrl": "https://github.com/", "finalStatusCode": 200, "redirects": [ // Array of redirect objects with detailed information ] } }