Skip to content

Instantly share code, notes, and snippets.

@JoergWMittag
Created June 10, 2010 16:43
Show Gist options
  • Save JoergWMittag/433273 to your computer and use it in GitHub Desktop.
Save JoergWMittag/433273 to your computer and use it in GitHub Desktop.
Sample response for the Yelp search API
{"businesses":[
{"address1":"466 Haight St",
"city":"San Francisco",
"mobile_url":"http://mobile.yelp.com/biz/yyqwqfgn1ZmbQYNbl7s5sQ",
"name":"Nickies",
"address2":"",
"avg_rating":4,
"latitude":37.772201,
"zip":"94117",
"address3":"",
"country":"USA",
"country_code":"US",
"photo_url_small":"http://static.px.yelp.com/bpthumb/mPNTiQm5HVqLLcUi8XrDiA/ss",
"photo_url":"http://static.px.yelp.com/bpthumb/mPNTiQm5HVqLLcUi8XrDiA/ms",
"url":"http://yelp.com/biz/nickies-san-francisco",
"id":"yyqwqfgn1ZmbQYNbl7s5sQ",
"is_closed":false,
"rating_img_url_small":"http://static.px.yelp.com/static/20070816/i/ico/stars/stars_small_4.png",
"nearby_url":"http://yelp.com/search?find_loc=466+Haight+St%2C+San+Francisco%2C+CA",
"neighborhoods":[
{"name":"Hayes Valley",
"url":"http://yelp.com/search?find_loc=Hayes+Valley%2C+San+Francisco%2C+CA"}],
"phone":"4152550300",
"reviews":[
{"rating":3,
"url":"http://yelp.com/biz/yyqwqfgn1ZmbQYNbl7s5sQ#hrid:t-sisM24K9GvvYhr-9w1EQ",
"user_photo_url_small":"http://static.px.yelp.com/upthumb/ZQDXkIwQmgfAcazw8OgK2g/ss",
"id":"t-sisM24K9GvvYhr-9w1EQ",
"rating_img_url_small":"http://static.px.yelp.com/static/20070816/i/ico/stars/stars_small_3.png",
"user_photo_url":"http://static.px.yelp.com/upthumb/ZQDXkIwQmgfAcazw8OgK2g/ms",
"user_url":"http://yelp.com/user_details?userid=XMeRHjiLhA9cv3BsSOazCA",
"text_excerpt":"So I know gentrification is supposed to be a bad word and all (especially here in SF), but the Lower Haight might benefit a bit from it. At least, I like...",
"user_name":"Trey F.",
"rating_img_url":"http://static.px.yelp.com/static/20070816/i/ico/stars/stars_3.png",
"mobile_uri":"http://mobile.yelp.com/biz/yyqwqfgn1ZmbQYNbl7s5sQ?srid=t-sisM24K9GvvYhr-9w1EQ"},
{"rating":4,
"url":"http://yelp.com/biz/yyqwqfgn1ZmbQYNbl7s5sQ#hrid:8xTNOC9L5ZXwGCMNYY-pdQ",
"user_photo_url_small":"http://static.px.yelp.com/upthumb/Ghwoq23_alkaXawgqj7dBA/ss",
"id":"8xTNOC9L5ZXwGCMNYY-pdQ",
"rating_img_url_small":"http://static.px.yelp.com/static/20070816/i/ico/stars/stars_small_4.png",
"user_photo_url":"http://static.px.yelp.com/upthumb/Ghwoq23_alkaXawgqj7dBA/ms",
"user_url":"http://yelp.com/user_details?userid=4F2QG3adYIUNXplqqp9ylA",
"text_excerpt":"This place was definitely a great place to chill. The atmosphere is very non-threatening and very neighborly. I thought it was cool that they had a girl dj...",
"user_name":"Jessy M.",
"rating_img_url":"http://static.px.yelp.com/static/20070816/i/ico/stars/stars_4.png",
"mobile_uri":"http://mobile.yelp.com/biz/yyqwqfgn1ZmbQYNbl7s5sQ?srid=8xTNOC9L5ZXwGCMNYY-pdQ"},
{"rating":5,
"url":"http://yelp.com/biz/yyqwqfgn1ZmbQYNbl7s5sQ#hrid:pp33WfN_FoKlQKJ-38j_Ag",
"user_photo_url_small":"http://static.px.yelp.com/upthumb/q0POOE3vv2LzNg1qN8MMyw/ss",
"id":"pp33WfN_FoKlQKJ-38j_Ag",
"rating_img_url_small":"http://static.px.yelp.com/static/20070816/i/ico/stars/stars_small_5.png",
"user_photo_url":"http://static.px.yelp.com/upthumb/q0POOE3vv2LzNg1qN8MMyw/ms",
"user_url":"http://yelp.com/user_details?userid=FmcKafW272uSWXbUF2rslA",
"text_excerpt":"Love this place! I've been here twice now and each time has been a great experience. The bartender is so nice. When we had questions about the drinks he...",
"user_name":"Scott M.",
"rating_img_url":"http://static.px.yelp.com/static/20070816/i/ico/stars/stars_5.png",
"mobile_uri":"http://mobile.yelp.com/biz/yyqwqfgn1ZmbQYNbl7s5sQ?srid=pp33WfN_FoKlQKJ-38j_Ag"}],
"state_code":"CA",
"categories":[
{"name":"Dance Clubs",
"category_filter":"danceclubs",
"search_url":"http://yelp.com/search?find_loc=466+Haight+St%2C+San+Francisco%2C+CA&cflt=danceclubs"},
{"name":"Lounges",
"category_filter":"lounges",
"search_url":"http://yelp.com/search?find_loc=466+Haight+St%2C+San+Francisco%2C+CA&cflt=lounges"},
{"name":"American (Traditional)",
"category_filter":"tradamerican",
"search_url":"http://yelp.com/search?find_loc=466+Haight+St%2C+San+Francisco%2C+CA&cflt=tradamerican"}],
"longitude":-122.429926,
"rating_img_url":"http://static.px.yelp.com/static/20070816/i/ico/stars/stars_4.png",
"distance":1.87804019451141,
"review_count":32,
"state":"CA"}],
"message":
{"code":0,
"text":"OK",
"version":"1.1.0"}}
---
businesses:
- name: Nickies
mobile_url: http://mobile.yelp.com/biz/yyqwqfgn1ZmbQYNbl7s5sQ
city: San Francisco
address1: 466 Haight St
zip: "94117"
latitude: 37.772201
avg_rating: 4.0
address2: ""
country_code: US
country: USA
address3: ""
photo_url_small: http://static.px.yelp.com/bpthumb/mPNTiQm5HVqLLcUi8XrDiA/ss
url: http://yelp.com/biz/nickies-san-francisco
photo_url: http://static.px.yelp.com/bpthumb/mPNTiQm5HVqLLcUi8XrDiA/ms
rating_img_url_small: http://static.px.yelp.com/static/20070816/i/ico/stars/stars_small_4.png
is_closed: false
id: yyqwqfgn1ZmbQYNbl7s5sQ
nearby_url: http://yelp.com/search?find_loc=466+Haight+St%2C+San+Francisco%2C+CA
state_code: CA
reviews:
- rating: 3
user_photo_url_small: http://static.px.yelp.com/upthumb/ZQDXkIwQmgfAcazw8OgK2g/ss
url: http://yelp.com/biz/yyqwqfgn1ZmbQYNbl7s5sQ#hrid:t-sisM24K9GvvYhr-9w1EQ
user_url: http://yelp.com/user_details?userid=XMeRHjiLhA9cv3BsSOazCA
user_photo_url: http://static.px.yelp.com/upthumb/ZQDXkIwQmgfAcazw8OgK2g/ms
rating_img_url_small: http://static.px.yelp.com/static/20070816/i/ico/stars/stars_small_3.png
id: t-sisM24K9GvvYhr-9w1EQ
text_excerpt: So I know gentrification is supposed to be a bad word and all (especially here in SF), but the Lower Haight might benefit a bit from it. At least, I like...
user_name: Trey F.
mobile_uri: http://mobile.yelp.com/biz/yyqwqfgn1ZmbQYNbl7s5sQ?srid=t-sisM24K9GvvYhr-9w1EQ
rating_img_url: http://static.px.yelp.com/static/20070816/i/ico/stars/stars_3.png
- rating: 4
user_photo_url_small: http://static.px.yelp.com/upthumb/Ghwoq23_alkaXawgqj7dBA/ss
url: http://yelp.com/biz/yyqwqfgn1ZmbQYNbl7s5sQ#hrid:8xTNOC9L5ZXwGCMNYY-pdQ
user_url: http://yelp.com/user_details?userid=4F2QG3adYIUNXplqqp9ylA
user_photo_url: http://static.px.yelp.com/upthumb/Ghwoq23_alkaXawgqj7dBA/ms
rating_img_url_small: http://static.px.yelp.com/static/20070816/i/ico/stars/stars_small_4.png
id: 8xTNOC9L5ZXwGCMNYY-pdQ
text_excerpt: This place was definitely a great place to chill. The atmosphere is very non-threatening and very neighborly. I thought it was cool that they had a girl dj...
user_name: Jessy M.
mobile_uri: http://mobile.yelp.com/biz/yyqwqfgn1ZmbQYNbl7s5sQ?srid=8xTNOC9L5ZXwGCMNYY-pdQ
rating_img_url: http://static.px.yelp.com/static/20070816/i/ico/stars/stars_4.png
- rating: 5
user_photo_url_small: http://static.px.yelp.com/upthumb/q0POOE3vv2LzNg1qN8MMyw/ss
url: http://yelp.com/biz/yyqwqfgn1ZmbQYNbl7s5sQ#hrid:pp33WfN_FoKlQKJ-38j_Ag
user_url: http://yelp.com/user_details?userid=FmcKafW272uSWXbUF2rslA
user_photo_url: http://static.px.yelp.com/upthumb/q0POOE3vv2LzNg1qN8MMyw/ms
rating_img_url_small: http://static.px.yelp.com/static/20070816/i/ico/stars/stars_small_5.png
id: pp33WfN_FoKlQKJ-38j_Ag
text_excerpt: Love this place! I've been here twice now and each time has been a great experience. The bartender is so nice. When we had questions about the drinks he...
user_name: Scott M.
mobile_uri: http://mobile.yelp.com/biz/yyqwqfgn1ZmbQYNbl7s5sQ?srid=pp33WfN_FoKlQKJ-38j_Ag
rating_img_url: http://static.px.yelp.com/static/20070816/i/ico/stars/stars_5.png
phone: "4152550300"
neighborhoods:
- name: Hayes Valley
url: http://yelp.com/search?find_loc=Hayes+Valley%2C+San+Francisco%2C+CA
rating_img_url: http://static.px.yelp.com/static/20070816/i/ico/stars/stars_4.png
longitude: -122.429926
categories:
- name: Dance Clubs
category_filter: danceclubs
search_url: http://yelp.com/search?find_loc=466+Haight+St%2C+San+Francisco%2C+CA&cflt=danceclubs
- name: Lounges
category_filter: lounges
search_url: http://yelp.com/search?find_loc=466+Haight+St%2C+San+Francisco%2C+CA&cflt=lounges
- name: American (Traditional)
category_filter: tradamerican
search_url: http://yelp.com/search?find_loc=466+Haight+St%2C+San+Francisco%2C+CA&cflt=tradamerican
state: CA
review_count: 32
distance: 1.87804019451141
message:
code: 0
text: OK
version: 1.1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment