Get Geolocation
Google Maps Leads Scraper
Get Geolocation
Fetch valid regions, districts, and cities for parameter-based tasks
GET
Get Geolocation
Use this endpoint to fetch valid regions, districts, and cities used in parameter-based tasks for the Google Maps Search Export crawler. This is essential when constructing structured tasks where accurate location inputs are required.
Headers
Your API authentication token. Value:
Token YOUR_API_KEYQuery Parameters
ISO 2-letter country code. Example:
USState or province name. Example:
CaliforniaCounty or local district. Example:
San DiegoCity name filter
How It Works
The value you leave empty determines what the API returns:- Leave
regionempty to get regions for a country - Provide
region, leavecityempty to get cities in that region - Provide
districtto narrow down the city list further
Query Parameters
| Parameter | Required | Description |
|---|---|---|
| country_code | Yes | ISO 2-letter country code (e.g., US, FR, PK) |
| region | Conditional | Required when querying districts or cities. Leave empty to get regions. |
| district | No | Narrows the city list within a region |
| city | No | Used when retrieving a refined list of locations |
Code Examples
Response
200