Get Geolocation
Google Search Scraper
Get Geolocation
Fetch valid location values for geographic search bias
GET
Get Geolocation
Use this endpoint to fetch valid location values for the
params.location setting in the Google Search Scraper. These values provide geographic bias for your search queries.
Headers
Your API authentication token. Value:
Token YOUR_API_KEYQuery Parameters
Search substring for location names. Example:
AlabamaFull country name. Example:
United StatesQuery Parameters
| Parameter | Required | Description |
|---|---|---|
| q | Yes | Substring to search for in region, district, or city names |
| country_name | Yes | Full country name to scope the search (e.g., United States) |
Response Fields
| Field | Type | Description |
|---|---|---|
| name | string | Display name of the location (region, district, or city) |
| canonical_name | string | Full hierarchical name (e.g., Alabama,United States) |
| country_name | string | Country associated with this location |
| country_code | string | ISO 2-letter country code (e.g., US) |
Location values provide geographic bias - search results will be relevant to that area.
Code Examples
Response
200