Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Yelp Reviews

API 文档
https://api.sandbase.ai/v1/api/yelp/reviews

Public reviews of a Yelp business by place ID: rating, text, date and reviewer, with paging and sorting.

价格
$0.00015美元 / 次调用
方法
POST
响应
JSON
参数
1 个必填 · 10 个可选

Playground

输入
Encoded Yelp business ID: letters, numbers, underscores, and hyphens.
Supported first-party localized Yelp hostname, such as www.yelp.co.uk. Links in the response use this hostname.
Review language: a two-letter code with an optional two-letter region, such as en or fr-FR.
Not supported: Yelp does not offer review text filtering. Any value returns 422 unsupported_parameter.
Review order.
Comma-separated star ratings to include, each from 1 through 5.
Review offset from 0 through 10,000.
Number of reviews, 1 through 49.
Optional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true an
输出就绪

您的输出将显示在这里

完成输入,然后点击运行。

API README

Yelp Reviews API

Returns public reviews for one Yelp business, plus the business's average rating, rating counts and total review count. It needs a place_id, the encoded Yelp business ID.

Use cases

  • Pull the newest reviews for a restaurant with sortby set to date_desc to track recent customer feedback.
  • Collect only 1 and 2 star reviews with the rating filter to find common complaints.
  • Match owner replies to reviews to check how often and how fast a business responds.
  • Compare reviewers by Elite status and review count to weigh feedback from experienced Yelp users.

Request

curl -X POST "https://api.sandbase.ai/v1/api/yelp/reviews" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"place_id": "dDz2erKJ_Z2HMur0tQ_iJA", "num": 10}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
place_idstringYesEncoded Yelp business ID: letters, numbers, underscores, and hyphens.
hlstringNoReview language: a two-letter code with an optional two-letter region, such as en or fr-FR.
not_recommendedbooleanNoNot supported: Yelp does not expose its not-recommended reviews. true returns 422 unsupported_parameter.
not_recommended_startintegerNoNot supported, because not_recommended is not supported. Any value returns 400.
numintegerNoNumber of reviews, 1 through 49.
qstringNoNot supported: Yelp does not offer review text filtering. Any value returns 422 unsupported_parameter.
ratingstringNoComma-separated star ratings to include, each from 1 through 5.
sortbystringNoReview order.
startintegerNoReview offset from 0 through 10,000.
timeoutnumberNoOptional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the cal
yelp_domainstringNoSupported first-party localized Yelp hostname, such as www.yelp.co.uk. Links in the response use this hostname.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "pagination": {},
  "review_languages": [
    {
      "count": 744,
      "hl": "en"
    }
  ],
  "reviews": [
    {
      "comment": {
        "language": "en",
        "text": "Came to Cosmic with a friend. He suggested a Mexican food truck that is here. An…"
      },
      "date": "2026-10-19T19:24:08Z",
      "feedback": {
        "cool": 29,
        "funny": 7,
        "useful": 33
      },
      "id": "bsc5JqLCP_A_MDzzPvWFKw",
      "link": "https://www.yelp.com/biz/cosmic-austin?hrid=bsc5JqLCP_A_MDzzPvWFKw",
      "local_date": "2026-10-19T14:24:08-05:00",
      "owner_replies": [
        {
          "comment": "Hi Shannon! We’re so happy to hear you had such a wonderful time at Cosmic Pickl…",
          "date": "2026-10-30T15:28:27Z",
          "id": "gl4nV95_RbQ3lDY5CkWgUA",
          "owner": {
            "id": "u8musB2-qjtyiQVRiLxZ_w",
            "name": "Kayla F.",
            "role": "OWNER",
            "thumbnail": "https://s3-media0.fl.yelpcdn.com/buphoto/podUt4nzIePyrReXIS-CpQ/90s.jpg"
          }
        }
      ],
      "photos": [
        {
          "caption": "Here for Sunday funday drinks.",
          "helpful": 0,
          "id": "2EsUyPlJKgfDYKSYVyBGIw",
          "link": "https://s3-media0.fl.yelpcdn.com/bphoto/2EsUyPlJKgfDYKSYVyBGIw/o.jpg",
          "thumbnail": "https://s3-media0.fl.yelpcdn.com/bphoto/2EsUyPlJKgfDYKSYVyBGIw/348s.jpg"
        }
      ],
      "position": 1,
      "rating": 5,
      "reactions": [
        {
          "count": 38,
          "label": "Helpful",
          "type": "HELPFUL"
        }
      ],
      "user": {
        "address": "Austin, TX",
        "elite_year": "26",
        "friends": 5000,
        "link": "https://www.yelp.com/user_details?userid=jT-pOXB4mpUA5N9Lu0ZN-g",
        "name": "Shannon G.",
        "photos": 14036,
        "reviews": 1073,
        "thumbnail": "https://s3-media0.fl.yelpcdn.com/photo/CkN3QEuWbjsATCyDPCDaXg/180s.jpg"
      }
    }
  ],
  "search_information": {
    "business": "Cosmic",
    "rating": 4.6,
    "rating_distribution": [
      {
        "count": 22,
        "rating": 1
      }
    ],
    "total_results": 744
  }
}

Response fields

FieldMeaning
search_information.business / rating / total_resultsBusiness name, its average star rating and the total number of reviews.
search_information.rating_distribution[]Number of reviews (count) for each star rating.
review_languages[].hl / countLanguage code and the number of reviews written in that language.
reviews[].id / linkReview ID and a link to the review on Yelp.
reviews[].ratingStar rating given in the review.
reviews[].comment.text / languageReview text and its language code. Long text may be cut.
reviews[].date / local_dateTime the review was posted, in UTC (date) and with a local offset (local_date).
reviews[].feedback.useful / funny / coolNumber of votes the review received in each category.
reviews[].owner_replies[]Replies from the business owner, each with comment, date and the owner name and role.
reviews[].user.name / reviews / friends / elite_yearReviewer name, how many reviews and friends they have, and their Elite year.

Notes

  • Find the place_id with Yelp Business Search.
  • Page through reviews with start (offset) and num (1 through 49). reviews[].position shows the order within the result.
  • pagination came back empty in this response, so track the offset yourself and compare it to search_information.total_results.
  • q and not_recommended are not supported and return an error.

Pricing

$0.00015 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相关 APIs

全部 APIs
API价格响应
Yelp$0.00015 每次调用JSON
Yelp$0.01 每次调用JSON
Yelp$0.00015 每次调用JSON

问题

常见问题

如何使用 Yelp Reviews API?

向 https://api.sandbase.ai/v1/api/yelp/reviews 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

Yelp Reviews API 的价格是多少?

每次调用 $0.00015,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

Yelp Reviews API 接受哪些参数?

必填:place_id (string)。 可选:yelp_domain (string), hl (string), q (string), sortby(relevance_desc, date_desc, date_asc, rating_desc, rating_asc, elites_desc 之一), rating (string) 和 not_recommended (boolean) 以及另外 4 项。 Parameters 表和本页的 Playground 列出了每个字段。

Yelp Reviews API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 Yelp 开发者账户或 API key 吗?

不需要。Yelp Reviews 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Yelp API 访问权限。