Skip to content

Instantly share code, notes, and snippets.

@masonforest
Created March 18, 2012 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masonforest/2081177 to your computer and use it in GitHub Desktop.
Save masonforest/2081177 to your computer and use it in GitHub Desktop.
Yelp API Pizza in Cambridge v1 vs v2
{
"message": {
"text": "OK",
"code": 0,
"version": "1.1.1"
},
"items": [{
"nm": "Angelo's Pizza",
"img": "",
"rating": 4.5,
"url": "http://www.yelp.com/biz/angelos-pizza-cambridge",
"phone": "6176618049",
"review_count": 22,
"location": {
"distance": 0.08597665,
"longitude": -71.111081,
"latitude": 42.373291,
"address1": "444 Broadway",
"address3": "",
"city": "Cambridge",
"state_code": "MA",
"country": "USA",
"zip": "02138",
"country_code": "US",
"neighborhood": "Harvard Square"
}
}, {
"nm": "Basta Pasta Trattoria",
"img": "http://media3.ak.yelpcdn.com/bpthumb/NPIb5XqzU_wyNZJP3kOllw/ms",
"rating": 4.0,
"url": "http://www.yelp.com/biz/basta-pasta-trattoria-cambridge-2",
"phone": "6175766672",
"review_count": 239,
"location": {
"distance": 0.5857304,
"longitude": -71.1132965087891,
"latitude": 42.3646011352539,
"address1": "319 Western Ave",
"address3": "",
"city": "Cambridge",
"state_code": "MA",
"country": "USA",
"zip": "02139",
"country_code": "US",
"neighborhood": null
}
}, {
"nm": "Armando's Pizza & Subs",
"img": "http://media3.ak.yelpcdn.com/bpthumb/GuCeQ6Ff_UHT6j5smwSMsQ/ms",
"rating": 4.5,
"url": "http://www.yelp.com/biz/armandos-pizza-and-subs-cambridge",
"phone": "6173548275",
"review_count": 139,
"location": {
"distance": 1.2941235,
"longitude": -71.1313502,
"latitude": 42.382334,
"address1": "163 Huron Ave",
"address3": "",
"city": "Cambridge",
"state_code": "MA",
"country": "USA",
"zip": "02138",
"country_code": "US",
"neighborhood": "Huron Village"
}
}, {
"nm": "The Village Kitchen",
"img": "http://media2.ak.yelpcdn.com/bpthumb/IspwxhTQAAG3T5tK5Wb4sQ/ms",
"rating": 4.5,
"url": "http://www.yelp.com/biz/the-village-kitchen-cambridge",
"phone": "6174913133",
"review_count": 57,
"location": {
"distance": 1.5917903,
"longitude": -71.1385321,
"latitude": 42.3813253,
"address1": "359 Huron Ave",
"address3": "",
"city": "Cambridge",
"state_code": "MA",
"country": "USA",
"zip": "02138",
"country_code": "US",
"neighborhood": "Huron Village"
}
}, {
"nm": "Pinocchio's Pizza & Subs",
"img": "http://media4.ak.yelpcdn.com/bpthumb/LxidvcLarsMQqaP6Peaj_g/ms",
"rating": 4.0,
"url": "http://www.yelp.com/biz/pinocchios-pizza-and-subs-cambridge",
"phone": "6178764897",
"review_count": 375,
"location": {
"distance": 0.54005307,
"longitude": -71.120201,
"latitude": 42.372014,
"address1": "74 Winthrop St",
"address3": "",
"city": "Cambridge",
"state_code": "MA",
"country": "USA",
"zip": "02138",
"country_code": "US",
"neighborhood": "Harvard Square"
}
}]
}
{
"message": {
"text": "OK",
"code": 0,
"version": "1.1.1"
},
"items": [{
"rating": 4.5,
"mobile_url": "http://m.yelp.com/biz/angelos-pizza-cambridge",
"rating_img_url": "http://media4.ak.yelpcdn.com/static/201012163106483837/img/ico/stars/stars_4_half.png",
"review_count": 22,
"name": "Angelo's Pizza",
"rating_img_url_small": "http://media4.ak.yelpcdn.com/static/201012161127761206/img/ico/stars/stars_small_4_half.png",
"url": "http://www.yelp.com/biz/angelos-pizza-cambridge",
"phone": "6176618049",
"snippet_text": "This is a whole in the wall that hasn't been renovated since 1963. Why do I love it??\n\nAs a former graduate from CRLS, I'm always pleasantly surprised that...",
"snippet_image_url": "http://s3-media3.ak.yelpcdn.com/photo/aINNWneZPSt7d5g9aTLdEw/ms.jpg",
"display_phone": "+1-617-661-8049",
"rating_img_url_large": "http://media2.ak.yelpcdn.com/static/201012162752244354/img/ico/stars/stars_large_4_half.png",
"id": "angelos-pizza-cambridge",
"categories": [
["Pizza", "pizza"]
],
"location": {
"city": "Cambridge",
"display_address": ["444 Broadway", "Harvard Square", "Cambridge, MA 02138"],
"geo_accuracy": 8,
"neighborhoods": ["Harvard Square"],
"postal_code": "02138",
"country_code": "US",
"address": ["444 Broadway"],
"coordinate": {
"latitude": 42.373291,
"longitude": -71.111081
},
"state_code": "MA"
},
"nm": "Angelo's Pizza",
"img": null
}, {
"rating": 4.0,
"mobile_url": "http://m.yelp.com/biz/basta-pasta-trattoria-cambridge-2",
"rating_img_url": "http://media2.ak.yelpcdn.com/static/201012164084228337/img/ico/stars/stars_4.png",
"review_count": 239,
"name": "Basta Pasta Trattoria",
"rating_img_url_small": "http://media2.ak.yelpcdn.com/static/20101216418129184/img/ico/stars/stars_small_4.png",
"url": "http://www.yelp.com/biz/basta-pasta-trattoria-cambridge-2",
"phone": "6175766672",
"snippet_text": "I live right around the corner and this is my favorite place to get pizza. The sauce is sooo basil-y, which I LOVE. \n\nIt's funny that they're practically...",
"image_url": "http://s3-media1.ak.yelpcdn.com/bphoto/a1O5eC8FKRtfyAlKXpoDVg/ms.jpg",
"snippet_image_url": "http://s3-media2.ak.yelpcdn.com/photo/NG0j5wDzrcLPgjAOq5bX1A/ms.jpg",
"display_phone": "+1-617-576-6672",
"rating_img_url_large": "http://media4.ak.yelpcdn.com/static/20101216169592178/img/ico/stars/stars_large_4.png",
"id": "basta-pasta-trattoria-cambridge-2",
"categories": [
["Italian", "italian"],
["Pizza", "pizza"]
],
"location": {
"city": "Cambridge",
"display_address": ["319 Western Ave", "Cambridge, MA 02139"],
"geo_accuracy": 8,
"postal_code": "02139",
"country_code": "US",
"address": ["319 Western Ave"],
"coordinate": {
"latitude": 42.3646011352539,
"longitude": -71.1132965087891
},
"state_code": "MA"
},
"nm": "Basta Pasta Trattoria",
"img": "http://s3-media1.ak.yelpcdn.com/bphoto/a1O5eC8FKRtfyAlKXpoDVg/ms.jpg"
}, {
"rating": 4.5,
"mobile_url": "http://m.yelp.com/biz/armandos-pizza-and-subs-cambridge",
"rating_img_url": "http://media4.ak.yelpcdn.com/static/201012163106483837/img/ico/stars/stars_4_half.png",
"review_count": 139,
"name": "Armando's Pizza & Subs",
"rating_img_url_small": "http://media4.ak.yelpcdn.com/static/201012161127761206/img/ico/stars/stars_small_4_half.png",
"url": "http://www.yelp.com/biz/armandos-pizza-and-subs-cambridge",
"phone": "6173548275",
"snippet_text": "Best Pizza near Harvard(don't give me no Pinocchio's)- Nothing more to say.",
"image_url": "http://s3-media3.ak.yelpcdn.com/bphoto/EvSASuRrM9uN0OBqcfnNLg/ms.jpg",
"snippet_image_url": "http://s3-media2.ak.yelpcdn.com/photo/91eRCse1wE6xZ0eqKDEGTg/ms.jpg",
"display_phone": "+1-617-354-8275",
"rating_img_url_large": "http://media2.ak.yelpcdn.com/static/201012162752244354/img/ico/stars/stars_large_4_half.png",
"id": "armandos-pizza-and-subs-cambridge",
"categories": [
["Pizza", "pizza"],
["Sandwiches", "sandwiches"]
],
"location": {
"city": "Cambridge",
"display_address": ["163 Huron Ave", "Huron Village", "Cambridge, MA 02138"],
"geo_accuracy": 8,
"neighborhoods": ["Huron Village"],
"postal_code": "02138",
"country_code": "US",
"address": ["163 Huron Ave"],
"coordinate": {
"latitude": 42.382334,
"longitude": -71.1313502
},
"state_code": "MA"
},
"nm": "Armando's Pizza & Subs",
"img": "http://s3-media3.ak.yelpcdn.com/bphoto/EvSASuRrM9uN0OBqcfnNLg/ms.jpg"
}, {
"rating": 4.5,
"mobile_url": "http://m.yelp.com/biz/the-village-kitchen-cambridge",
"rating_img_url": "http://media4.ak.yelpcdn.com/static/201012163106483837/img/ico/stars/stars_4_half.png",
"review_count": 57,
"name": "The Village Kitchen",
"rating_img_url_small": "http://media4.ak.yelpcdn.com/static/201012161127761206/img/ico/stars/stars_small_4_half.png",
"url": "http://www.yelp.com/biz/the-village-kitchen-cambridge",
"phone": "6174913133",
"snippet_text": "Village Kitchen is absolute deliciousness! \n\nI strolled in on a hot summer day in search of a cool crisp salad and was blown away with their chicken caesar...",
"image_url": "http://s3-media2.ak.yelpcdn.com/bphoto/IOQCsDuWDZQxV-7xdON8uw/ms.jpg",
"snippet_image_url": "http://s3-media3.ak.yelpcdn.com/photo/vsg6kHxf9aaklcSTAjOr4w/ms.jpg",
"display_phone": "+1-617-491-3133",
"rating_img_url_large": "http://media2.ak.yelpcdn.com/static/201012162752244354/img/ico/stars/stars_large_4_half.png",
"id": "the-village-kitchen-cambridge",
"categories": [
["Italian", "italian"],
["Pizza", "pizza"],
["Halal", "halal"]
],
"location": {
"city": "Cambridge",
"display_address": ["359 Huron Ave", "Huron Village", "Cambridge, MA 02138"],
"geo_accuracy": 8,
"neighborhoods": ["Huron Village"],
"postal_code": "02138",
"country_code": "US",
"address": ["359 Huron Ave"],
"coordinate": {
"latitude": 42.3813253,
"longitude": -71.1385321
},
"state_code": "MA"
},
"nm": "The Village Kitchen",
"img": "http://s3-media2.ak.yelpcdn.com/bphoto/IOQCsDuWDZQxV-7xdON8uw/ms.jpg"
}, {
"rating": 4.0,
"mobile_url": "http://m.yelp.com/biz/pinocchios-pizza-and-subs-cambridge",
"rating_img_url": "http://media2.ak.yelpcdn.com/static/201012164084228337/img/ico/stars/stars_4.png",
"review_count": 375,
"name": "Pinocchio's Pizza & Subs",
"rating_img_url_small": "http://media2.ak.yelpcdn.com/static/20101216418129184/img/ico/stars/stars_small_4.png",
"url": "http://www.yelp.com/biz/pinocchios-pizza-and-subs-cambridge",
"phone": "6178764897",
"snippet_text": "Best sicillian slice in the greater Boston area. \n\nPlace must sprinkle crack on the slices cause I am HOOKED. The guys working clearly see alot as a late...",
"image_url": "http://s3-media2.ak.yelpcdn.com/bphoto/WMpfWPiMLd7HocNUsnBXjA/ms.jpg",
"snippet_image_url": "http://s3-media2.ak.yelpcdn.com/photo/OY_X7z4FjVkCJz-VflR_Tw/ms.jpg",
"display_phone": "+1-617-876-4897",
"rating_img_url_large": "http://media4.ak.yelpcdn.com/static/20101216169592178/img/ico/stars/stars_large_4.png",
"id": "pinocchios-pizza-and-subs-cambridge",
"categories": [
["Pizza", "pizza"]
],
"location": {
"city": "Cambridge",
"display_address": ["74 Winthrop St", "Harvard Square", "Cambridge, MA 02138"],
"geo_accuracy": 8,
"neighborhoods": ["Harvard Square"],
"postal_code": "02138",
"country_code": "US",
"address": ["74 Winthrop St"],
"coordinate": {
"latitude": 42.372014,
"longitude": -71.120201
},
"state_code": "MA"
},
"nm": "Pinocchio's Pizza & Subs",
"img": "http://s3-media2.ak.yelpcdn.com/bphoto/WMpfWPiMLd7HocNUsnBXjA/ms.jpg"
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment