scraper
Back to API docs

Overview

  • Overview

APIs

  • POSTReviews
  • POSTBusiness Profile
  • POSTSearch

Yelp Reviews

1 credit

Get reviews for a local business from Yelp.

POST/api/v1/tools/yelp/reviews

Parameters

businessstring

One business: alias, encrypted business ID, or Yelp URL. Accepts a plain alias like "gary-danko-san-francisco" or a link like "https://www.yelp.com/biz/gary-danko-san-francisco". Regional Yelp sites, links without https://, and links with a sub-path such as /photos also work. Send business or businesses, not both.

businessesstring[]

Several businesses, from 1 to 20 entries counting valid and invalid ones, instead of business. Each entry is an alias, an encrypted business ID, or a Yelp URL. A business that is given twice is read once. An entry that is not a business, and a business that cannot be read, get an entry in errors. The request fails with HTTP 400 when no entry is a business, and the call fails only when no business can be read. The call uses 1 credit for each different business.

sortBystring

Sort order for reviews. One of "DATE_DESC" (newest first), "DATE_ASC" (oldest first), "RATING_DESC" (highest first), "RATING_ASC" (lowest first), "ELITES_DESC" (elite reviewers first). Defaults to "DATE_DESC".

ratingsnumber[]

Filter by star rating. Array of integers from 1 to 5. Defaults to [1, 2, 3, 4, 5] (all ratings).

maxReviewsnumber

Maximum number of reviews to return for each business. Must be from 0 through 10000 and must not exceed your plan limit. 0 returns as many as one call and your plan allow (1000 at most). Defaults to 20. The businesses of one call together stay within your plan limit, and a list whose maxReviews times its number of different businesses is above it fails before it is charged.

numberOfPagesnumber

Maximum number of review pages to fetch. Must be from 1 through 205. Omit to stop only at maxReviews or the last page.

languageCodestring

Language code for reviews. Defaults to "en".

querystring

Keyword search within review text. Matching terms are wrapped in [[HIGHLIGHT]]...[[ENDHIGHLIGHT]] markers. Omit or leave empty to skip keyword filtering.

fieldsstring[]

Fields to include per review. Omit for defaults: id, rating, text, language, createdAt, author, feedback, ownerReply. Use ["*"] for all fields. Available fields: id, rating, text, language, createdAt, author, feedback, ownerReply, businessAlias, businessName, businessEncId, translatedText, localDateTime, reactions, photos, videos, previousReviewIds, tags, expertRecognition, userSpecifiedTimeOfExperience, scrapedAt.

Response Schema

dataobject

Yelp reviews result

reviewsobject[]

Array of review objects. Fields depend on the fields parameter. Default fields: id, rating, text, language, createdAt, author, feedback, ownerReply.

countnumber

Number of reviews returned

totalReviewsnumber

Total number of reviews matching the filters

businessesobject[]

Only with businesses, instead of reviews, count, and totalReviews. One entry for each different business that was read, in input order. Each entry has id, alias, name, reviews, count, totalReviews, and truncated. truncated is true when your plan limit for the call cut the reviews of that business.

errorsobject[]

Only with businesses. One entry for each entry that is not a business, first, and then one for each business that could not be read, each with business (your entry) and error. The other businesses are still returned.

metaobject

Request metadata

toolstring

Tool name (yelp-reviews)

creditsUsednumber

Credits consumed (1 for each different business)

requestIdstring

Unique request ID

Request

curl -X POST https://scraper.run/api/v1/tools/yelp/reviews \
-H "Authorization: Bearer sc_live_..." \
-H "Content-Type: application/json" \
-d '{
"business": "https://www.yelp.com/biz/gary-danko-san-francisco",
"maxReviews": 10,
"ratings": [4, 5],
"sortBy": "DATE_DESC"
}'

Response Example

{
"data": {
"reviews": [
{
"id": "xAG4O7l-t1ubbwVAlPnDKg",
"rating": 5,
"text": "Outstanding dining experience from start to finish. The tasting menu was creative and every course was perfectly executed.",
"language": "en",
"createdAt": "2026-04-08T21:15:00.000Z",
"author": {
"id": "hizGc5W1tBHPghM5YKCAtg",
"displayName": "Anna S.",
"displayLocation": "San Francisco, CA",
"reviewCount": 87,
"friendCount": 42,
"photoCount": 15,
"eliteYear": "2026",
"profilePhotoUrl": null,
"isEliteAllStar": false
},
"feedback": {
"usefulCount": 3,
"funnyCount": 0,
"coolCount": 1
},
"ownerReply": "Thank you for the wonderful review, Anna! We look forward to welcoming you back."
},
{
"id": "SIoiwGkYB7aOm30yBqFsaw",
"rating": 4,
"text": "Great food and ambiance. Service was attentive but the wait for a table was longer than expected.",
"language": "en",
"createdAt": "2026-04-05T18:30:00.000Z",
"author": {
"id": "n6-Gk65cPZL6Uz8qRm3NYw",
"displayName": "Mike R.",
"displayLocation": "Oakland, CA",
"reviewCount": 34,
"friendCount": 12,
"photoCount": 5,
"eliteYear": null,
"profilePhotoUrl": null,
"isEliteAllStar": false
},
"feedback": {
"usefulCount": 1,
"funnyCount": 0,
"coolCount": 0
},
"ownerReply": null
}
],
"count": 2,
"totalReviews": 5842
},
"meta": {
"tool": "yelp-reviews",
"creditsUsed": 1,
"requestId": "req_abc123"
}
}