Yelp Search Ads
BetaisAd), plus name, rating, reviews, price range, categories and position, as Apify-style dataset items./v1/ads/yelpBeta. The parser for this endpoint was written from the upstream format and has not yet been checked against a live response. Field shapes may change; tell us if you see a mismatch.
On this page
Price
- Live
- $0.00045
Per result returned.
Description
POST the input as one JSON object. Every term in searchTerms runs in every place in locations, plus one search per directUrls entry, up to 50 searches per request. Results are read page by page until searchLimit is reached.
The response body is a JSON array of items, with no wrapper. Every item carries receipt_id, and the same id is in the X-Receipt-Id response header.
Billing. Per result returned, sponsored rows included, whatever fetch level was needed. An input that finds nothing costs $0. Results are cached for 6 h.
Beta. The parser behind this route was written from public documentation and hasn't been checked against live pages yet. Item field names are fixed; some values may be null more often than they should be until that check is done.
Request
- Endpoint
- POST https://api.dataforgaio.com/v1/ads/yelp
- Authentication
- HTTP Basic auth: any login, with your
dg_API key as the password. ABearerheader with the key also works. Create a key. - Body
- JSON objectMode: Live
Fields
- What to search for. Each term runs in each of
locations.search_termsandsearchTermare accepted too. Send this withlocations, ordirectUrls, or both.Example["running store"] - Same as
searchTerms. - Same as
searchTerms, for a single term. - Where to search, for example
Boulder, CO. Required withsearchTerms.locationis accepted too.Example["Boulder, CO"] - Same as
locations, for a single place. - Yelp search URLs (
yelp.com/search?find_desc=…&find_loc=…). Business page URLs aren't supported.startUrlsis accepted too.Example["https://www.yelp.com/search?find_desc=running+store&find_loc=Boulder%2C+CO"] - Same as
directUrls. - Results per search, sponsored rows included.Default
10Min1Max240Example10 - Lets the request move to a higher fetch level when the included level can't get the data, billed at the level that delivered it.
falsestops at the Standard level and returns the failure at $0. Also accepts"true","false",1and0.DefaulttrueExampletrue - The highest fetch level Auto-upgrade may use.
renderednever uses the Protected level.DefaultprotectedOne ofstandardrenderedprotectedExamplerendered - The most this task may cost, in USD. The wallet check reserves this amount instead of the worst-case price, the request never upgrades past it, and the charge never exceeds it. Results stop at the number this amount pays for.Min
0Example0.002 - Accept a cached result up to this many seconds old, 0 to 86,400.
0always fetches fresh. Default window: 6 h.Min0Max86400Example3600
Response
Shape: Apify actor shape. Expand a field to see its children; every field has a link anchor.
- namestringBusiness name.Example
Summit Running Co. - bizIdstring|nullYelp business id.Example
sRc0001 - directUrlstringThe business's Yelp page, without tracking parameters.Example
https://www.yelp.com/biz/summit-running-co - alternateNamesarray<string>Other names. Always empty for now.Example
[] - addressobjectAddress. Only
addressLine1is filled from search results.Show 7 child fieldsHide child fields
- addressLine1string|nullAddress as shown in the result.Example
120 Main St - addressLine2nullAlways null.
- addressLine3nullAlways null.
- citynullAlways null.
- regionCodenullAlways null.
- postalCodenullAlways null.
- countrynullAlways null.
- neighborhoodsarray<string>Neighborhoods shown in the result.Example
["Downtown"] - phonestring|nullPhone number.Example
(303) 555-0142 - websitenullNot in search results. Always null.
- aggregatedRatingnumber|nullStar rating, 1 to 5.Example
4.5 - reviewCountinteger|nullNumber of reviews.Example
211 - priceRangestring|nullPrice range, for example
$$.Example$$ - typenullAlways null.
- cuisinenullAlways null.
- categoriesarray<string>Yelp categories.Example
["Shoe Stores","Sporting Goods"] - primaryPhotostring|nullMain photo URL.
- imagesarray<string>Always empty for now.Example
[] - claimednullNot in search results. Always null.
- verifiednullNot in search results. Always null.
- advertiserbooleanTrue for a sponsored row.Example
true - isAdbooleanTrue for a sponsored row.Example
true - sponsoredbooleanTrue for a sponsored row.Example
true - positionintegerPosition in this search, sponsored rows included, starting at 1.Example
1 - searchTermstringThe term this row came from.Example
running store - locationstringThe location this row came from.Example
Boulder, CO - scrapeStartedAtstringWhen this search started, ISO 8601.Example
2026-12-03T10:42:18.000000+00:00 - scrapeFinishedAtstringWhen this search finished, ISO 8601.Example
2026-12-03T10:42:18.000000+00:00 - receipt_idstring|nullId of the ledger receipt for this request. Same on every item.Example
8cbb5b5c-8e15-5c82-9959-45f93cdad009
Item types
Each entry in items has a type. These are the fields of each type.
result27 fields
- namestringBusiness name.
- bizIdstring|nullYelp business id.
- directUrlstringThe business's Yelp page, without tracking parameters.
- alternateNamesarray<string>Other names. Always empty for now.
- addressobjectAddress. Only
addressLine1is filled from search results.Show 7 child fieldsHide child fields
- addressLine1string|nullAddress as shown in the result.
- addressLine2nullAlways null.
- addressLine3nullAlways null.
- citynullAlways null.
- regionCodenullAlways null.
- postalCodenullAlways null.
- countrynullAlways null.
- neighborhoodsarray<string>Neighborhoods shown in the result.
- phonestring|nullPhone number.
- websitenullNot in search results. Always null.
- aggregatedRatingnumber|nullStar rating, 1 to 5.
- reviewCountinteger|nullNumber of reviews.
- priceRangestring|nullPrice range, for example
$$. - typenullAlways null.
- cuisinenullAlways null.
- categoriesarray<string>Yelp categories.
- primaryPhotostring|nullMain photo URL.
- imagesarray<string>Always empty for now.
- claimednullNot in search results. Always null.
- verifiednullNot in search results. Always null.
- advertiserbooleanTrue for a sponsored row.
- isAdbooleanTrue for a sponsored row.
- sponsoredbooleanTrue for a sponsored row.
- positionintegerPosition in this search, sponsored rows included, starting at 1.
- searchTermstringThe term this row came from.
- locationstringThe location this row came from.
- scrapeStartedAtstringWhen this search started, ISO 8601.
- scrapeFinishedAtstringWhen this search finished, ISO 8601.
- receipt_idstring|nullId of the ledger receipt for this request. Same on every item.
Errors
| Code | When |
|---|---|
| 400 | Invalid input (no terms or URLs, searchTerms without locations, a non-search URL, or more than 50 searches), or max_cost below the price of one item. Body: {"error": {"type": "invalid-input", "message": ..., "receipt_id": null}}. |
| 400 | Nothing found for the input (type: invalid-input). $0. |
| 401 | No valid API key (type: user-or-token-not-found). |
| 402 | Wallet balance below the worst case for this request (type: not-enough-usage-to-run-paid-actor). |
| 429 | Too many requests (type: rate-limit-exceeded). |
| 500 | No allowed fetch level got the page (type: internal-error). $0. |
Migrating
Replaces Apify Yelp scraper actor input and dataset items. The request body and response envelope match: change the base URL to https://api.dataforgaio.com/v1 and use your dg_ key as the password.