---
title: "Yelp API: business search, business details, menus as JSON"
description: "Yelp API for business search, business details, menus and reviews as JSON: rating, review count, price level and review text."
url: https://perceptlayer.com/apis/yelp
---

[APIs](https://perceptlayer.com/apis) / [Reviews](https://perceptlayer.com/verticals/reviews) / Yelp

1 credit per call 4 endpoints 11 datapoints 

# Yelp API

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

[Get a free API key](https://perceptlayer.com/signup) Run it below

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 OK JSON X-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.

| # | position integer | encid string | alias string | name string | url url | rating number | review\_count integer | price string | categories object\[\] | address object | photo url |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | 1 | WavvLdfdP6g8aZTtbBQHTw | gary-danko-san-francisco | Gary Danko | https://www.yelp.com/biz/gary-danko-san-francisco | 4.5 | 6149 | $$$$ | \[3 items\] | {2 fields} | https://s3-media0.fl.yelpcdn.com/bphoto/NjJm1P5NuiltDjbWYB4WFw/1000s.jpg |
| 2 | 2 | q2EbLD93gEO5uXXx7Pk3bw | benu-san-francisco-4 | Benu | https://www.yelp.com/biz/benu-san-francisco-4 | 4.3 | 1282 | $$$$ | \[3 items\] | {2 fields} | https://s3-media0.fl.yelpcdn.com/bphoto/-7TMz5LW8NSeLeq895nNgA/1000s.jpg |
| 3 | 3 | L5vSeC\_sa3TUQW\_lticqyA | chapeau-san-francisco | Chapeau | https://www.yelp.com/biz/chapeau-san-francisco | 4.3 | 3005 | $$$ | \[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 item GET /v1/yelp/search?query=gary+danko&location=San+Francisco%2C+CA

11 datapoints

### Identity

-   encid string
-   name string

### Contact

-   url url

### Location

-   address object

### Reputation

-   rating number
-   review\_count integer
-   photo url

### Price

-   price string

### Other

-   position integer
-   alias string
-   categories object\[\]

Playground

## Run this API

cURL shell 

```
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.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/yelp/business`](https://perceptlayer.com/apis/yelp/business) | `business` | `business` | 1 credit |
| [GET `/v1/yelp/menu`](https://perceptlayer.com/apis/yelp/menu) | `business` | `business` `menu` `popular_items` `owner_menu_url` | 1 credit |
| [GET `/v1/yelp/reviews`](https://perceptlayer.com/apis/yelp/reviews) | `business` +3 optional | `business` `review_count` `reviews` | 1 credit |
| [GET `/v1/yelp/search`](https://perceptlayer.com/apis/yelp/search) | `query` `location` +2 optional | `position` `encid` `alias` `name` `url` `rating` +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.

Reviews JSON REST MCP

### More reviews APIs

[11880.com](https://perceptlayer.com/apis/11880) [Bazaarvoice](https://perceptlayer.com/apis/bazaarvoice) [Capterra](https://perceptlayer.com/apis/capterra) [Clutch](https://perceptlayer.com/apis/clutch) [ConsumerAffairs](https://perceptlayer.com/apis/consumeraffairs) [Das Örtliche](https://perceptlayer.com/apis/dasoertliche) [Doctolib](https://perceptlayer.com/apis/doctolib) [Feefo](https://perceptlayer.com/apis/feefo) [Fresha](https://perceptlayer.com/apis/fresha) [G2](https://perceptlayer.com/apis/g2) [Gelbe Seiten](https://perceptlayer.com/apis/gelbeseiten) [GoodFirms](https://perceptlayer.com/apis/goodfirms)

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.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
