Skip to main content

Geolocation Interface

Headers

Response

{
    "country": "IN",
    "state": "KA",
    "stateName": "Karnataka",
    "continent": "AS"
}

Response Details

Status: 200 OK Time: 234ms
Response Body
{
    "country": "IN",
    "state": "KA",
    "stateName": "Karnataka",
    "continent": "AS"
}

Country

India (IN)

State

Karnataka (KA)

Continent

Asia (AS)

Response Time

234ms

Response Headers

Content-Type application/json
Server nginx
Access-Control-Allow-Origin https://www.intercom.com
Cache-Control no-cache

Location Visualization

Continent: AS (Asia) Country: IN (India)
Location Map

Interactive map visualization

Location Details

India (IN)
Karnataka (KA)
Asia (AS)

Actions

API Settings

Authentication Settings

Request Headers

Response Settings

Advanced Settings

Enable SSL Verification
Auto-retry on failure
Debug mode

Geolocation API Documentation

The Geolocation API provides accurate location information based on the request origin.

Base URL

https://geolocation.onetrust.com/cookieconsentpub/v1/geo/location

Authentication

No authentication required for basic usage. Rate limiting applies.

Required Headers

Header Value Description
accept application/json Response format
origin https://www.intercom.com Request origin

Response Format

Success Response

{
    "country": "IN",
    "state": "KA",
    "stateName": "Karnataka",
    "continent": "AS"
}

Error Response

{
    "error": "Invalid origin",
    "code": "403",
    "message": "Unauthorized origin"
}

Example Usage

cURL

curl --location 'https://geolocation.onetrust.com/cookieconsentpub/v1/geo/location' \
--header 'accept: application/json' \
--header 'origin: https://www.intercom.com'