Yelp: Search
Search from Yelp as JSON. 1 credit per successful call.
GET /v1/yelp/search
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
query | string | Required | Up to 100 characters |
location | string | Required | Up to 100 characters |
limit | integer | Optional | Any |
page | integer | Optional | Any |
Example request
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.
Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
Each item in data.results has these 11 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
position | integer |
encid | string |
alias | string |
name | string |
url | url |
rating | number |
review_count | integer |
price | string |
categories | object[] |
address | object |
photo | url |