Add Task Params
Google Maps Leads Scraper
Add Task Params
Add structured search tasks using city, category, and location parameters
POST
Add Task Params
Use this format to dynamically define search inputs using structured metadata like city, category, and country. Location values can be obtained from the Get Geolocation endpoint. This method is ideal for automation and scaling across regions.
Headers
Your API authentication token. Value:
Token YOUR_API_KEYRequest body format. Value:
application/jsonTask Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| city | string | Yes | City name with postal code (e.g., Alpine 91901) |
| category | string | Yes | Business category to search (e.g., restaurant) |
| country | string | No | Country name (e.g., United States) |
| region | string | No | State or province (e.g., California) |
| district | string | No | County or local district (e.g., San Diego) |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| squid | string | Yes | Hash of your squid configured with the google-maps-leads-scraper crawler |
| tasks | array | Yes | Array of task objects with location parameters |
The
city field must include the postal code (e.g., Anaheim 92801).Code Examples
Response
200