APIs / Reviews / Yelp

1 credit per call4 endpoints11 datapointsChecked working 6 Dec 2026

Yelp API

Yelp API for business search, business details, menus and reviews as JSON: rating, review count, price level and review text.

Yelp
GET/v1/yelp/search?query=gary+danko&location=San+Francisco%2C+CA
{
  "success": true,
  "data": {
    "query": "gary danko",
    "location": "San Francisco, CA",
    "page": 1,
    "results": [
      {
        "position": 1,
        "encid": "WavvLdfdP6g8aZTtbBQHTw",
        "alias": "gary-danko-san-francisco",
        "name": "Gary Danko",
        "url": "https://www.yelp.com/biz/gary-danko-san-francisco",
        "rating": 4.5,
        "review_count": 6149,
        "price": "$$$$",
        "categories": [
          {
            "alias": "newamerican",
            "title": "New American"
          },
          {
            "alias": "french",
            "title": "French"
          },
          {
            "alias": "cocktailbars",
            "title": "Cocktail Bars"
          }
        ],
        "address": {
          "line1": "800 N Point St",
          "city": "San Francisco"
        },
        "photo": "https://s3-media0.fl.yelpcdn.com/bphoto/NjJm1P5NuiltDjbWYB4WFw/1000s.jpg"
      },
      {
        "position": 2,
        "encid": "q2EbLD93gEO5uXXx7Pk3bw",
        "alias": "benu-san-francisco-4",
        "name": "Benu",
        "url": "https://www.yelp.com/biz/benu-san-francisco-4",
        "rating": 4.3,
        "review_count": 1282,
        "price": "$$$$",
        "categories": [
          {
            "alias": "asianfusion",
            "title": "Asian Fusion"
          },
          {
            "alias": "wine_bars",
            "title": "Wine Bars"
          },
          {
            "alias": "seafood",
            "title": "Seafood"
          }
        ],
        "address": {
          "line1": "22 Hawthorne St",
          "city": "San Francisco"
        },
        "photo": "https://s3-media0.fl.yelpcdn.com/bphoto/-7TMz5LW8NSeLeq895nNgA/1000s.jpg"
      },
      {
        "position": 3,
        "encid": "L5vSeC_sa3TUQW_lticqyA",
        "alias": "chapeau-san-francisco",
        "name": "Chapeau",
        "url": "https://www.yelp.com/biz/chapeau-san-francisco",
        "rating": 4.3,
        "review_count": 3005,
        "price": "$$$",
        "categories": [
          {
            "alias": "french",
            "title": "French"
          }
        ],
        "address": {
          "line1": "126 Clement St",
          "city": "San Francisco"
        },
        "photo": "https://s3-media0.fl.yelpcdn.com/bphoto/Hbw_2rt0NTcHOjoLXeZGyw/1000s.jpg"
      }
    ],
    "has_more": true,
    "next_page": 2
  },
  "meta": {
    "endpoint_family": "business_search"
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Sample data

What one call returns

A recorded run of search: the fields and shapes you will get, shortened to 3 items.

#positionintegerencidstringaliasstringnamestringurlurlratingnumberreview_countintegerpricestringcategoriesobject[]addressobjectphotourl
11WavvLdfdP6g8aZTtbBQHTwgary-danko-san-franciscoGary Dankohttps://www.yelp.com/biz/gary-danko-san-francisco4.56149$$$$[3 items]{2 fields}https://s3-media0.fl.yelpcdn.com/bphoto/NjJm1P5NuiltDjbWYB4WFw/1000s.jpg
22q2EbLD93gEO5uXXx7Pk3bwbenu-san-francisco-4Benuhttps://www.yelp.com/biz/benu-san-francisco-44.31282$$$$[3 items]{2 fields}https://s3-media0.fl.yelpcdn.com/bphoto/-7TMz5LW8NSeLeq895nNgA/1000s.jpg
33L5vSeC_sa3TUQW_lticqyAchapeau-san-franciscoChapeauhttps://www.yelp.com/biz/chapeau-san-francisco4.33005$$$[1 item]{2 fields}https://s3-media0.fl.yelpcdn.com/bphoto/Hbw_2rt0NTcHOjoLXeZGyw/1000s.jpg

Recorded from our API · 3 items shown · 11 datapoints per itemGET /v1/yelp/search?query=gary+danko&location=San+Francisco%2C+CA

11 datapoints

Identity

  • encidstring
  • namestring

Contact

  • urlurl

Location

  • addressobject

Reputation

  • ratingnumber
  • review_countinteger
  • photourl

Price

  • pricestring

Other

  • positioninteger
  • aliasstring
  • categoriesobject[]

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/yelp/search?query=gary+danko&location=San+Francisco%2C+CA" \
  -H "X-API-Key: $API_KEY"

Yelp · 4 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

EndpointRequired parametersReturnsCost
GET/v1/yelp/business
business
business
1 credit
GET/v1/yelp/menu
business
businessmenupopular_itemsowner_menu_url
1 credit
GET/v1/yelp/reviews
business+3 optional
businessreview_countreviews
1 credit
GET/v1/yelp/search
querylocation+2 optional
positionencidaliasnameurlrating+5 more
1 credit

Overview

About the Yelp API

What you can get

The Yelp API returns Yelp business and review data as JSON through 4 endpoints.

  • Search: search takes a query and a location, with limit and page. The recorded search for "gary danko" in San Francisco returns results, each with name, alias, rating, review_count, price, categories, address and url, plus has_more and next_page.
  • Businesses and menus: business and menu each take a business.
  • Reviews: reviews takes a business, with sort (relevance, newest, oldest, highest, lowest or elite), rating and after. The recorded reviews have rating, text, language and created_at, with total, has_more and next_after.

How a call works

Search, then read reviews: the recorded search result has alias gary-danko-san-francisco, and the recorded reviews call passes that alias as business. So GET /v1/yelp/search?query=gary danko&location=San Francisco, CA, then GET /v1/yelp/reviews?business=gary-danko-san-francisco&sort=newest. Every successful call costs 1 credit; failed calls cost nothing.

ReviewsJSONRESTMCP

More reviews APIs

Use cases

Monitor new reviews and ratings for your locations

Use the Yelp API to monitor new reviews and ratings for your locations

Compare ratings and price levels across competitors in a city

Use the Yelp API to compare ratings and price levels across competitors in a city

Compare restaurant menus across a city or cuisine

Use the Yelp API to compare restaurant menus across a city or cuisine

Analyse review text for recurring complaints or praise

Use the Yelp API to analyse review text for recurring complaints or praise

FAQ

Questions

How much does the Yelp API cost?

Each successful call costs one credit. New accounts get free credits to start, and credit packs bring the price down as you scale.

How do I get only the newest or lowest-rated reviews?

Pass `sort=newest` or `sort=lowest` to `reviews`, or add a `rating` filter.

What format are responses in?

Every endpoint returns JSON, with no HTML parsing on your side.

Is this the official Yelp API?

No. Perceptlayer is an independent service and is not affiliated with Yelp. It returns Yelp data as JSON with a Perceptlayer key, so there is no Yelp developer account, app review or partner approval to get first. It only reads data: if Yelp has an official API and you need to act on your own Yelp account, such as posting, managing orders or reading private data, use that one.

Should I build a Yelp scraper instead?

You can, but a Yelp scraper is code you maintain: page changes break it, requests get blocked, and Yelp's terms govern how you collect data. The Yelp API gives you 4 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

Try the Yelp API with 100 free credits

No credit card. Failed calls are never billed.