Add Tasks
Yelp Search Export
Add Tasks
Add Yelp search tasks to scrape business listings
POST
Add Tasks
Add Yelp search tasks to scrape business listings. You can provide either a Yelp search URL or use
keyword + location to build the search programmatically.
Headers
Your API authentication token. Value:
Token YOUR_API_KEYRequest body format. Value:
application/jsonRequest Body
| Field | Type | Required | Description |
|---|---|---|---|
| squid | string | Yes | Hash of your squid configured with the Yelp Search Export crawler |
| tasks | array | Yes | Array of task objects |
Task Object
You can either pass aurl or use keyword + location (with optional country):
| Field | Type | Required | Description |
|---|---|---|---|
| url | string | No | Full Yelp search URL (e.g., https://www.yelp.com/search?find_desc=Restaurants&find_loc=New+York) |
| keyword | string | No | What you’re looking for (business category or search term). Example: Italian restaurant |
| location | string | No | City or area to search in. Example: New York, NY |
| country | string | No | Country to scope the location list. Leave empty to use top worldwide cities |
Either
url or keyword + location is required. When using keyword and location, filters set in the squid settings (price, sort, distance, etc.) are applied automatically.Code Examples
Response
200