Skip to content
Enricho

Search geo IDs

GET /v1/geo-id-search $0.0100 per request

Search LinkedIn Geo ID by location text.

Search LinkedIn Geo ID by location text

Try it

Runs against the sandbox, so it is free and needs no API key. The response shape is identical to the live endpoint.

GET /v1/geo-id-search
Sandbox · free

Parameters

Billed equivalent


                

With a real key this call costs at Starter, less your tier discount.

Response


        

Query parameters

At least one of search is required.

Parameter Example Description
search required Location text to search for Geo ID (required)

Code

curl 'https://api.enricho.io/v1/geo-id-search' \
  -H 'X-API-Key: YOUR_API_KEY'
import requests

response = requests.get(
    "https://api.enricho.io/v1/geo-id-search",
    headers={"X-API-Key": "YOUR_API_KEY"},
    params={},
    timeout=30,
)

response.raise_for_status()

# Every response reports what it cost and what is left.
print(response.headers["X-Request-Cost"], response.headers["X-Balance-Remaining"])
print(response.json())
const params = new URLSearchParams([]);

const response = await fetch(`https://api.enricho.io/v1/geo-id-search?${params}`, {
  headers: { 'X-API-Key': 'YOUR_API_KEY' },
});

if (!response.ok) {
  throw new Error(`${response.status}: ${(await response.json()).error.message}`);
}

console.log(response.headers.get('X-Request-Cost'));
console.log(await response.json());
$client = new GuzzleHttp\Client();

$response = $client->get('https://api.enricho.io/v1/geo-id-search', [
    'headers' => ['X-API-Key' => 'YOUR_API_KEY'],
    'query' => [],
    'timeout' => 30,
]);

echo $response->getHeaderLine('X-Request-Cost');

$data = json_decode((string) $response->getBody(), true);

Example response

{
    "error": "Search is required query parameter",
    "status": 400,
    "elements": null,
    "pagination": null,
    "query": []
}

Error response

Full list of codes on the errors page.

{
    "error": {
        "code": "invalid_params",
        "message": "geo-id-search requires at least one of: search.",
        "docs": "https://enricho.io/docs/errors#invalid_params",
        "required_one_of": [
            "search"
        ]
    }
}