Skip to main content
POST
/
redirectcheck
cURL
curl --request POST \
  --url https://api.geekflare.com/redirectcheck \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "url": "https://example.com",
  "proxyCountry": "us"
}
'
{
  "timestamp": 1763372588297,
  "apiStatus": "success",
  "apiCode": 200,
  "meta": {
    "url": "example.com",
    "proxyCountry": "United States",
    "test": {
      "id": "667zexrk0aaiabz2rx95b2cxm0khc2s0"
    }
  },
  "data": [
    {
      "url": "http://example.com/",
      "status": 301,
      "headers": [
        {
          "name": "location",
          "value": "https://example.com/"
        },
        {
          "name": "date",
          "value": "Mon, 29 Aug 2022 07:17:31 GMT"
        }
      ]
    }
  ]
}

Authorizations

x-api-key
string
header
required

API Key required for all endpoints

Body

application/json
url
string
required

Target URL

Example:

"https://example.com"

proxyCountry
string

Proxy country code to route the request

Example:

"us"

Response

Successfully retrieved redirect chain

timestamp
number
required

Timestamp of the request in milliseconds

Example:

1763372588297

apiStatus
enum<string>
required

API status message

Available options:
success,
failure
Example:

"success"

apiCode
number
required

API status code

Example:

200

meta
object
required

Metadata about the redirection check.

Example:
{
"url": "example.com",
"proxyCountry": "United States",
"test": { "id": "667zexrk0aaiabz2rx95b2cxm0khc2s0" }
}
data
object[]
required

List of redirection hops with status and headers.