This is how to use the Yelp API to find businesses given a name and an approximate location.
Business API
REQUEST
NAME | METHOD | DESCRIPTION
/v2/business/{id} GET Lookup business information by id
Sample Request
http://api.yelp.com/v2/business/yelp-san-francisco
Response Value( Only displaying values we currently need ):
Name | Type | Definition
id string Yelp ID for this business
name string Name of this business
image_url string URL of photo for this business
url string URL for business page on Yelp
display_phone string Phone number formatted for display
location.display_address list Address for this business formatted for
display. Includes all address fields, cross
streets and city, state_code, etc.
Sample Response based on info above:
{
"id": "urban-curry-san-francisco",
"name": "Urban Curry",
"image_url": "http://s3-media4.ak.yelpcdn.com/bphoto/Hv5vsWpqeaUKepr9nffJnw/ms.jpg",
"url": "http://www.yelp.com/biz/urban-curry-san-francisco"
"display_phone": "+1-415-677-9744",
"location" : {
display_address": [
"523 Broadway",
"(b/t Kearny St & Romolo Pl)",
"North Beach/Telegraph Hill",
"San Francisco, CA 94133"
]
}
}