Yelp / yelp-fusion

Yelp Fusion API
https://yelp.com/developers
MIT License
403 stars 394 forks source link

Number of restaurants varying between the search in yelp website and calling the businesses search API #421

Closed IngridCooper closed 11 months ago

IngridCooper commented 6 years ago

Overview

Description

We require the list of all the restaurants in Peachtree Corners, GA, US. We noticed that when we search in the Yelp website https://www.yelp.com/search?find_loc=Peachtree+Corners,+GA,+US&start=90&cflt=restaurants we are getting around 4500+ restaurants whereas if we call the businesses search API https://api.yelp.com/v3/businesses/search?term=restaurants&location=Peachtree Corners, GA, US we are getting only 20 restaurants.

Can you please let us know how we can get the exact number of restaurants and is there any option where we can provide a Shape file to get the restaurants located only within Peachtree Corners, GA, US?

More information

Endpoint

https://api.yelp.com/v3/businesses/search

Parameters or Sample Request

https://api.yelp.com/v3/businesses/search?term=restaurants&location=Peachtree Corners, GA, US

Response

{
    "businesses": [
        {
            "id": "iBaxEk9uL2JRrr0eI25AxQ",
            "alias": "ba-bellies-peachtree-corners",
            "name": "Ba Bellies",
            "image_url": "https://s3-media2.fl.yelpcdn.com/bphoto/iIqYrse9HjXUmmNPNmsqVw/o.jpg",
            "is_closed": false,
            "url": "https://www.yelp.com/biz/ba-bellies-peachtree-corners?adjust_creative=_Z7cHy8w1HG2Rl7W5_-dhQ&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=_Z7cHy8w1HG2Rl7W5_-dhQ",
            "review_count": 278,
            "categories": [
                {
                    "alias": "asianfusion",
                    "title": "Asian Fusion"
                },
                {
                    "alias": "gastropubs",
                    "title": "Gastropubs"
                }
            ],
            "rating": 4.5,
            "coordinates": {
                "latitude": 33.956238,
                "longitude": -84.233545
            },
            "transactions": [
                "pickup",
                "delivery"
            ],
            "price": "$$",
            "location": {
                "address1": "6025 Peachtree Pkwy",
                "address2": "Ste 9",
                "address3": "",
                "city": "Peachtree Corners",
                "zip_code": "30092",
                "country": "US",
                "state": "GA",
                "display_address": [
                    "6025 Peachtree Pkwy",
                    "Ste 9",
                    "Peachtree Corners, GA 30092"
                ]
            },
            "phone": "+17707100565",
            "display_phone": "(770) 710-0565",
            "distance": 1925.3771537365003
        },
        {
            "id": "D-8OU41yZrRCzfGcEP-vow",
            "alias": "475-restaurant-peachtree-corners",
            "name": "475 Restaurant",
            "image_url": "https://s3-media3.fl.yelpcdn.com/bphoto/HOG8QNBZIHg1y2zETxhZpQ/o.jpg",
            "is_closed": false,
            "url": "https://www.yelp.com/biz/475-restaurant-peachtree-corners?adjust_creative=_Z7cHy8w1HG2Rl7W5_-dhQ&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=_Z7cHy8w1HG2Rl7W5_-dhQ",
            "review_count": 87,
            "categories": [
                {
                    "alias": "tradamerican",
                    "title": "American (Traditional)"
                },
                {
                    "alias": "desserts",
                    "title": "Desserts"
                },
                {
                    "alias": "burgers",
                    "title": "Burgers"
                }
            ],
            "rating": 5,
            "coordinates": {
                "latitude": 33.956345,
                "longitude": -84.23047
            },
            "transactions": [],
            "price": "$$",
            "location": {
                "address1": "475 Technology Pkwy",
                "address2": "",
                "address3": "",
                "city": "Peachtree Corners",
                "zip_code": "30092",
                "country": "US",
                "state": "GA",
                "display_address": [
                    "475 Technology Pkwy",
                    "Peachtree Corners, GA 30092"
                ]
            },
            "phone": "+17702638558",
            "display_phone": "(770) 263-8558",
            "distance": 1669.7069287334634
        },
        {
            "id": "M35dIVefixnwXNmaN1dNUA",
            "alias": "tortugas-cuban-grill-peachtree-corners",
            "name": "Tortugas Cuban Grill",
            "image_url": "https://s3-media1.fl.yelpcdn.com/bphoto/5S4MT2xEq5qEjEBFn4um6w/o.jpg",
            "is_closed": false,
            "url": "https://www.yelp.com/biz/tortugas-cuban-grill-peachtree-corners?adjust_creative=_Z7cHy8w1HG2Rl7W5_-dhQ&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=_Z7cHy8w1HG2Rl7W5_-dhQ",
            "review_count": 144,
            "categories": [
                {
                    "alias": "cuban",
                    "title": "Cuban"
                },
                {
                    "alias": "seafood",
                    "title": "Seafood"
                },
                {
                    "alias": "sandwiches",
                    "title": "Sandwiches"
                }
            ],
            "rating": 4.5,
            "coordinates": {
                "latitude": 33.954599,
                "longitude": -84.243606
            },
            "transactions": [
                "pickup"
            ],
            "price": "$$",
            "location": {
                "address1": "3466 Holcomb Bridge Rd",
                "address2": "Ste AA",
                "address3": "",
                "city": "Peachtree Corners",
                "zip_code": "30092",
                "country": "US",
                "state": "GA",
                "display_address": [
                    "3466 Holcomb Bridge Rd",
                    "Ste AA",
                    "Peachtree Corners, GA 30092"
                ]
            },
            "phone": "+14702755599",
            "display_phone": "(470) 275-5599",
            "distance": 2817.462060854487
        },
        {
            "id": "AcHfgUQXyo8iuE-5u6AdMg",
            "alias": "noble-fin-peachtree-corners",
            "name": "Noble Fin",
            "image_url": "https://s3-media2.fl.yelpcdn.com/bphoto/3pEGGI9K1vk7hY7CTE-HQQ/o.jpg",
            "is_closed": false,
            "url": "https://www.yelp.com/biz/noble-fin-peachtree-corners?adjust_creative=_Z7cHy8w1HG2Rl7W5_-dhQ&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=_Z7cHy8w1HG2Rl7W5_-dhQ",
            "review_count": 141,
            "categories": [
                {
                    "alias": "bars",
                    "title": "Bars"
                },
                {
                    "alias": "seafood",
                    "title": "Seafood"
                },
                {
                    "alias": "steak",
                    "title": "Steakhouses"
                }
            ],
            "rating": 4,
            "coordinates": {
                "latitude": 33.9770067711975,
                "longitude": -84.2171023786068
            },
            "transactions": [],
            "price": "$$$",
            "location": {
                "address1": "5260 Peachtree Pkwy",
                "address2": "",
                "address3": "",
                "city": "Peachtree Corners",
                "zip_code": "30092",
                "country": "US",
                "state": "GA",
                "display_address": [
                    "5260 Peachtree Pkwy",
                    "Peachtree Corners, GA 30092"
                ]
            },
            "phone": "+17705997979",
            "display_phone": "(770) 599-7979",
            "distance": 1214.6498016040225
        },
        {
            "id": "AnKTELHFUgAxKdCJsSR26w",
            "alias": "the-blaxican-food-peachtree-corners-2",
            "name": "The Blaxican Food",
            "image_url": "https://s3-media4.fl.yelpcdn.com/bphoto/cPmCokbwo-Vx1j0ljYA1wA/o.jpg",
            "is_closed": false,
            "url": "https://www.yelp.com/biz/the-blaxican-food-peachtree-corners-2?adjust_creative=_Z7cHy8w1HG2Rl7W5_-dhQ&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=_Z7cHy8w1HG2Rl7W5_-dhQ",
            "review_count": 75,
            "categories": [
                {
                    "alias": "foodtrucks",
                    "title": "Food Trucks"
                },
                {
                    "alias": "soulfood",
                    "title": "Soul Food"
                },
                {
                    "alias": "mexican",
                    "title": "Mexican"
                }
            ],
            "rating": 4,
            "coordinates": {
                "latitude": 33.961518,
                "longitude": -84.206239
            },
            "transactions": [],
            "price": "$",
            "location": {
                "address1": "5260 Peachtree Industrial Blvd",
                "address2": "Ste 700",
                "address3": "",
                "city": "Peachtree Corners",
                "zip_code": "30071",
                "country": "US",
                "state": "GA",
                "display_address": [
                    "5260 Peachtree Industrial Blvd",
                    "Ste 700",
                    "Peachtree Corners, GA 30071"
                ]
            },
            "phone": "+14046063737",
            "display_phone": "(404) 606-3737",
            "distance": 1065.0719620158861
        },
        {
            "id": "BlKbzfJ525Wae52AXYoyxw",
            "alias": "black-walnut-café-peachtree-corners",
            "name": "Black Walnut Café",
            "image_url": "https://s3-media4.fl.yelpcdn.com/bphoto/M7r6u7-88afxnBgn-iHX4Q/o.jpg",
            "is_closed": false,
            "url": "https://www.yelp.com/biz/black-walnut-caf%C3%A9-peachtree-corners?adjust_creative=_Z7cHy8w1HG2Rl7W5_-dhQ&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=_Z7cHy8w1HG2Rl7W5_-dhQ",
            "review_count": 103,
            "categories": [
                {
                    "alias": "newamerican",
                    "title": "American (New)"
                },
                {
                    "alias": "breakfast_brunch",
                    "title": "Breakfast & Brunch"
                },
                {
                    "alias": "cafes",
                    "title": "Cafes"
                }
            ],
            "rating": 3,
            "coordinates": {
                "latitude": 33.978527,
                "longitude": -84.216239
            },
            "transactions": [],
            "price": "$$",
            "location": {
                "address1": "5242 Peachtree Pkwy",
                "address2": null,
                "address3": null,
                "city": "Peachtree Corners",
                "zip_code": "30092",
                "country": "US",
                "state": "GA",
                "display_address": [
                    "5242 Peachtree Pkwy",
                    "Peachtree Corners, GA 30092"
                ]
            },
            "phone": "+17706041700",
            "display_phone": "(770) 604-1700",
            "distance": 1381.9534669421103
        },
        {
            "id": "pquzmEtxwOGSJukrOUEsAw",
            "alias": "burgerfi-peachtree-corners",
            "name": "BurgerFi",
            "image_url": "https://s3-media3.fl.yelpcdn.com/bphoto/2aZk2J4YB4YbNZgD6gL0rw/o.jpg",
            "is_closed": false,
            "url": "https://www.yelp.com/biz/burgerfi-peachtree-corners?adjust_creative=_Z7cHy8w1HG2Rl7W5_-dhQ&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=_Z7cHy8w1HG2Rl7W5_-dhQ",
            "review_count": 50,
            "categories": [
                {
                    "alias": "burgers",
                    "title": "Burgers"
                },
                {
                    "alias": "newamerican",
                    "title": "American (New)"
                },
                {
                    "alias": "hotdog",
                    "title": "Hot Dogs"
                }
            ],
            "rating": 4.5,
            "coordinates": {
                "latitude": 33.951467,
                "longitude": -84.235492
            },
            "transactions": [],
            "price": "$$",
            "location": {
                "address1": "6141 Peachtree Parkway",
                "address2": "Suite 200",
                "address3": null,
                "city": "Peachtree Corners",
                "zip_code": "30092",
                "country": "US",
                "state": "GA",
                "display_address": [
                    "6141 Peachtree Parkway",
                    "Suite 200",
                    "Peachtree Corners, GA 30092"
                ]
            },
            "phone": "+14703756993",
            "display_phone": "(470) 375-6993",
            "distance": 2395.2119777686858
        },
        {
            "id": "eYtWi9qMfJELxhXxf4V0Sg",
            "alias": "osteria-di-mare-peachtree-corners",
            "name": "Osteria di Mare",
            "image_url": "https://s3-media2.fl.yelpcdn.com/bphoto/QwRaQ8DjkM5JVc34whSnXQ/o.jpg",
            "is_closed": false,
            "url": "https://www.yelp.com/biz/osteria-di-mare-peachtree-corners?adjust_creative=_Z7cHy8w1HG2Rl7W5_-dhQ&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=_Z7cHy8w1HG2Rl7W5_-dhQ",
            "review_count": 32,
            "categories": [
                {
                    "alias": "seafood",
                    "title": "Seafood"
                },
                {
                    "alias": "italian",
                    "title": "Italian"
                },
                {
                    "alias": "steak",
                    "title": "Steakhouses"
                }
            ],
            "rating": 4,
            "coordinates": {
                "latitude": 33.9867599,
                "longitude": -84.21252
            },
            "transactions": [],
            "price": "$$$",
            "location": {
                "address1": "5005 Peachtree Pkwy",
                "address2": "Ste 810",
                "address3": null,
                "city": "Peachtree Corners",
                "zip_code": "30092",
                "country": "US",
                "state": "GA",
                "display_address": [
                    "5005 Peachtree Pkwy",
                    "Ste 810",
                    "Peachtree Corners, GA 30092"
                ]
            },
            "phone": "+16786910344",
            "display_phone": "(678) 691-0344",
            "distance": 2312.3948636986634
        },
        {
            "id": "UBZrH0ECsoEiIAnYUOSIAA",
            "alias": "grace-1720-peachtree-corners-4",
            "name": "Grace 1720",
            "image_url": "https://s3-media4.fl.yelpcdn.com/bphoto/fEDAmDEnKi8clWmedUkf1w/o.jpg",
            "is_closed": false,
            "url": "https://www.yelp.com/biz/grace-1720-peachtree-corners-4?adjust_creative=_Z7cHy8w1HG2Rl7W5_-dhQ&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=_Z7cHy8w1HG2Rl7W5_-dhQ",
            "review_count": 145,
            "categories": [
                {
                    "alias": "bars",
                    "title": "Bars"
                },
                {
                    "alias": "venues",
                    "title": "Venues & Event Spaces"
                },
                {
                    "alias": "tradamerican",
                    "title": "American (Traditional)"
                }
            ],
            "rating": 3.5,
            "coordinates": {
                "latitude": 33.9807102816153,
                "longitude": -84.2180552020851
            },
            "transactions": [],
            "price": "$$",
            "location": {
                "address1": "5155 Peachtree Pkwy",
                "address2": "Ste 320",
                "address3": null,
                "city": "Peachtree Corners",
                "zip_code": "30092",
                "country": "US",
                "state": "GA",
                "display_address": [
                    "5155 Peachtree Pkwy",
                    "Ste 320",
                    "Peachtree Corners, GA 30092"
                ]
            },
            "phone": "+16784211720",
            "display_phone": "(678) 421-1720",
            "distance": 1631.9424149120882
        },
        {
            "id": "VJuOl9Hp1CtxdPhaWbV3ow",
            "alias": "the-peachtree-cafe-peachtree-corners-peachtree-corners",
            "name": "The Peachtree Cafe- Peachtree Corners",
            "image_url": "https://s3-media2.fl.yelpcdn.com/bphoto/blqDQEW58ghbDUhgMDKYqA/o.jpg",
            "is_closed": false,
            "url": "https://www.yelp.com/biz/the-peachtree-cafe-peachtree-corners-peachtree-corners?adjust_creative=_Z7cHy8w1HG2Rl7W5_-dhQ&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=_Z7cHy8w1HG2Rl7W5_-dhQ",
            "review_count": 84,
            "categories": [
                {
                    "alias": "newamerican",
                    "title": "American (New)"
                },
                {
                    "alias": "breakfast_brunch",
                    "title": "Breakfast & Brunch"
                },
                {
                    "alias": "diners",
                    "title": "Diners"
                }
            ],
            "rating": 3.5,
            "coordinates": {
                "latitude": 33.96603,
                "longitude": -84.25542
            },
            "transactions": [],
            "price": "$$",
            "location": {
                "address1": "3975 Holcomb Bridge Rd",
                "address2": null,
                "address3": "",
                "city": "Peachtree Corners",
                "zip_code": "30092",
                "country": "US",
                "state": "GA",
                "display_address": [
                    "3975 Holcomb Bridge Rd",
                    "Peachtree Corners, GA 30092"
                ]
            },
            "phone": "+14703957936",
            "display_phone": "(470) 395-7936",
            "distance": 3601.3635109539255
        },
        {
            "id": "fZN39hsAZIGU8VNM4DsAEQ",
            "alias": "foundation-social-eatery-roswell",
            "name": "Foundation Social Eatery",
            "image_url": "https://s3-media4.fl.yelpcdn.com/bphoto/lO59hZkyhW3tOtFAk1C8oA/o.jpg",
            "is_closed": false,
            "url": "https://www.yelp.com/biz/foundation-social-eatery-roswell?adjust_creative=_Z7cHy8w1HG2Rl7W5_-dhQ&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=_Z7cHy8w1HG2Rl7W5_-dhQ",
            "review_count": 513,
            "categories": [
                {
                    "alias": "newamerican",
                    "title": "American (New)"
                },
                {
                    "alias": "bars",
                    "title": "Bars"
                },
                {
                    "alias": "desserts",
                    "title": "Desserts"
                }
            ],
            "rating": 4.5,
            "coordinates": {
                "latitude": 34.0188297326194,
                "longitude": -84.3117081666565
            },
            "transactions": [],
            "price": "$$",
            "location": {
                "address1": "1570 Holcomb Bridge Rd",
                "address2": "",
                "address3": "",
                "city": "Roswell",
                "zip_code": "30076",
                "country": "US",
                "state": "GA",
                "display_address": [
                    "1570 Holcomb Bridge Rd",
                    "Roswell, GA 30076"
                ]
            },
            "phone": "+17706418877",
            "display_phone": "(770) 641-8877",
            "distance": 10564.558538586849
        },
        {
            "id": "JecTemq2tNSDgA0SeLeQDw",
            "alias": "bleu-house-norcross",
            "name": "Bleu House",
            "image_url": "https://s3-media4.fl.yelpcdn.com/bphoto/n-zKsIM2_aNaiOY5L662aw/o.jpg",
            "is_closed": false,
            "url": "https://www.yelp.com/biz/bleu-house-norcross?adjust_creative=_Z7cHy8w1HG2Rl7W5_-dhQ&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=_Z7cHy8w1HG2Rl7W5_-dhQ",
            "review_count": 122,
            "categories": [
                {
                    "alias": "southern",
                    "title": "Southern"
                },
                {
                    "alias": "comfortfood",
                    "title": "Comfort Food"
                },
                {
                    "alias": "bbq",
                    "title": "Barbeque"
                }
            ],
            "rating": 4.5,
            "coordinates": {
                "latitude": 33.9411734961952,
                "longitude": -84.2125377030411
            },
            "transactions": [
                "pickup"
            ],
            "price": "$$",
            "location": {
                "address1": "62 College St",
                "address2": "",
                "address3": "",
                "city": "Norcross",
                "zip_code": "30071",
                "country": "US",
                "state": "GA",
                "display_address": [
                    "62 College St",
                    "Norcross, GA 30071"
                ]
            },
            "phone": "+16785276278",
            "display_phone": "(678) 527-6278",
            "distance": 2794.250173848162
        },
        {
            "id": "PgKlMmGEGAHn_NJx7DWs5g",
            "alias": "mojitos-cuban-american-bistro-norcross",
            "name": "Mojito's Cuban-American Bistro",
            "image_url": "https://s3-media2.fl.yelpcdn.com/bphoto/zslw4f6MkA6L0dIeCmqVRQ/o.jpg",
            "is_closed": false,
            "url": "https://www.yelp.com/biz/mojitos-cuban-american-bistro-norcross?adjust_creative=_Z7cHy8w1HG2Rl7W5_-dhQ&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=_Z7cHy8w1HG2Rl7W5_-dhQ",
            "review_count": 437,
            "categories": [
                {
                    "alias": "cuban",
                    "title": "Cuban"
                },
                {
                    "alias": "newamerican",
                    "title": "American (New)"
                },
                {
                    "alias": "seafood",
                    "title": "Seafood"
                }
            ],
            "rating": 4.5,
            "coordinates": {
                "latitude": 33.9417858676702,
                "longitude": -84.2132165788125
            },
            "transactions": [],
            "price": "$$",
            "location": {
                "address1": "35 S Peachtree St NW",
                "address2": "",
                "address3": "",
                "city": "Norcross",
                "zip_code": "30071",
                "country": "US",
                "state": "GA",
                "display_address": [
                    "35 S Peachtree St NW",
                    "Norcross, GA 30071"
                ]
            },
            "phone": "+17704412599",
            "display_phone": "(770) 441-2599",
            "distance": 2719.2827286304073
        },
        {
            "id": "9CDVvs2QkDE5qWPc9CCD_A",
            "alias": "j-alexanders-redlands-grill-norcross",
            "name": "J. Alexander's Redlands Grill",
            "image_url": "https://s3-media2.fl.yelpcdn.com/bphoto/tWZGA0OZB60gdzDclVB5Xw/o.jpg",
            "is_closed": false,
            "url": "https://www.yelp.com/biz/j-alexanders-redlands-grill-norcross?adjust_creative=_Z7cHy8w1HG2Rl7W5_-dhQ&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=_Z7cHy8w1HG2Rl7W5_-dhQ",
            "review_count": 234,
            "categories": [
                {
                    "alias": "newamerican",
                    "title": "American (New)"
                }
            ],
            "rating": 3.5,
            "coordinates": {
                "latitude": 33.978402,
                "longitude": -84.218176
            },
            "transactions": [],
            "price": "$$",
            "location": {
                "address1": "5245 Peachtree Pkwy",
                "address2": "",
                "address3": "",
                "city": "Norcross",
                "zip_code": "30092",
                "country": "US",
                "state": "GA",
                "display_address": [
                    "5245 Peachtree Pkwy",
                    "Norcross, GA 30092"
                ]
            },
            "phone": "+17702639755",
            "display_phone": "(770) 263-9755",
            "distance": 1377.9234542893412
        },
        {
            "id": "q0BYQL19BK8TOiaYDFD1QQ",
            "alias": "maple-street-biscuit-company-parsons-alley-duluth",
            "name": "Maple Street Biscuit Company - Parsons Alley",
            "image_url": "https://s3-media4.fl.yelpcdn.com/bphoto/G-mS56flJoC5O6Lin4lZlQ/o.jpg",
            "is_closed": false,
            "url": "https://www.yelp.com/biz/maple-street-biscuit-company-parsons-alley-duluth?adjust_creative=_Z7cHy8w1HG2Rl7W5_-dhQ&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=_Z7cHy8w1HG2Rl7W5_-dhQ",
            "review_count": 171,
            "categories": [
                {
                    "alias": "breakfast_brunch",
                    "title": "Breakfast & Brunch"
                }
            ],
            "rating": 4.5,
            "coordinates": {
                "latitude": 34.0033155,
                "longitude": -84.1446641
            },
            "transactions": [],
            "price": "$$",
            "location": {
                "address1": "3540 West Lawrenceville St",
                "address2": "Unit 210",
                "address3": "",
                "city": "Duluth",
                "zip_code": "30096",
                "country": "US",
                "state": "GA",
                "display_address": [
                    "3540 West Lawrenceville St",
                    "Unit 210",
                    "Duluth, GA 30096"
                ]
            },
            "phone": "+16784045625",
            "display_phone": "(678) 404-5625",
            "distance": 7817.514407187818
        },
        {
            "id": "Rtg0cy1v1vVJjQdpSAMy9A",
            "alias": "1910-public-house-lilburn",
            "name": "1910 Public House",
            "image_url": "https://s3-media4.fl.yelpcdn.com/bphoto/EERenSOVvyk1ed33W1ufyA/o.jpg",
            "is_closed": false,
            "url": "https://www.yelp.com/biz/1910-public-house-lilburn?adjust_creative=_Z7cHy8w1HG2Rl7W5_-dhQ&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=_Z7cHy8w1HG2Rl7W5_-dhQ",
            "review_count": 370,
            "categories": [
                {
                    "alias": "southern",
                    "title": "Southern"
                },
                {
                    "alias": "newamerican",
                    "title": "American (New)"
                },
                {
                    "alias": "gastropubs",
                    "title": "Gastropubs"
                }
            ],
            "rating": 4,
            "coordinates": {
                "latitude": 33.8864328,
                "longitude": -84.1352601
            },
            "transactions": [
                "pickup",
                "delivery"
            ],
            "price": "$$",
            "location": {
                "address1": "107 Main St NW",
                "address2": "",
                "address3": "",
                "city": "Lilburn",
                "zip_code": "30047",
                "country": "US",
                "state": "GA",
                "display_address": [
                    "107 Main St NW",
                    "Lilburn, GA 30047"
                ]
            },
            "phone": "+17705646911",
            "display_phone": "(770) 564-6911",
            "distance": 11597.309200279646
        },
        {
            "id": "RYmbNV-S7-NtqDXLdktPWg",
            "alias": "kool-runnings-restaurant-norcross-2",
            "name": "Kool Runnings Restaurant",
            "image_url": "https://s3-media2.fl.yelpcdn.com/bphoto/sJnRKfYuIbcE_QhusDw7oA/o.jpg",
            "is_closed": false,
            "url": "https://www.yelp.com/biz/kool-runnings-restaurant-norcross-2?adjust_creative=_Z7cHy8w1HG2Rl7W5_-dhQ&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=_Z7cHy8w1HG2Rl7W5_-dhQ",
            "review_count": 188,
            "categories": [
                {
                    "alias": "caribbean",
                    "title": "Caribbean"
                }
            ],
            "rating": 4,
            "coordinates": {
                "latitude": 33.9709238150279,
                "longitude": -84.219006537365
            },
            "transactions": [],
            "price": "$$",
            "location": {
                "address1": "5450 Peachtree Pkwy",
                "address2": "",
                "address3": "",
                "city": "Norcross",
                "zip_code": "30092",
                "country": "US",
                "state": "GA",
                "display_address": [
                    "5450 Peachtree Pkwy",
                    "Norcross, GA 30092"
                ]
            },
            "phone": "+17704410207",
            "display_phone": "(770) 441-0207",
            "distance": 588.4154228361501
        },
        {
            "id": "kaM6vh1hRpL_qh9zFodGTw",
            "alias": "southbound-chamblee",
            "name": "Southbound",
            "image_url": "https://s3-media2.fl.yelpcdn.com/bphoto/L91ZhJcVuSfMB4-TUznmjQ/o.jpg",
            "is_closed": false,
            "url": "https://www.yelp.com/biz/southbound-chamblee?adjust_creative=_Z7cHy8w1HG2Rl7W5_-dhQ&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=_Z7cHy8w1HG2Rl7W5_-dhQ",
            "review_count": 491,
            "categories": [
                {
                    "alias": "newamerican",
                    "title": "American (New)"
                },
                {
                    "alias": "southern",
                    "title": "Southern"
                },
                {
                    "alias": "bars",
                    "title": "Bars"
                }
            ],
            "rating": 4,
            "coordinates": {
                "latitude": 33.89234,
                "longitude": -84.30109
            },
            "transactions": [
                "restaurant_reservation"
            ],
            "price": "$$",
            "location": {
                "address1": "5394 Peachtree Rd",
                "address2": "",
                "address3": "",
                "city": "Chamblee",
                "zip_code": "30341",
                "country": "US",
                "state": "GA",
                "display_address": [
                    "5394 Peachtree Rd",
                    "Chamblee, GA 30341"
                ]
            },
            "phone": "+16785805579",
            "display_phone": "(678) 580-5579",
            "distance": 11335.960102027206
        },
        {
            "id": "fgnBCm2yN70AImdvDz6GJQ",
            "alias": "taqueria-del-mar-peachtree-corners",
            "name": "Taqueria Del Mar",
            "image_url": "https://s3-media3.fl.yelpcdn.com/bphoto/1rs40tw76tYBc50mkSF5Ng/o.jpg",
            "is_closed": false,
            "url": "https://www.yelp.com/biz/taqueria-del-mar-peachtree-corners?adjust_creative=_Z7cHy8w1HG2Rl7W5_-dhQ&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=_Z7cHy8w1HG2Rl7W5_-dhQ",
            "review_count": 177,
            "categories": [
                {
                    "alias": "mexican",
                    "title": "Mexican"
                },
                {
                    "alias": "breakfast_brunch",
                    "title": "Breakfast & Brunch"
                }
            ],
            "rating": 4,
            "coordinates": {
                "latitude": 33.9846923664684,
                "longitude": -84.2141140206667
            },
            "transactions": [],
            "price": "$$",
            "location": {
                "address1": "5075 Peachtree Pkwy",
                "address2": "Ste 105",
                "address3": "AIn Ingles Shopping Center",
                "city": "Peachtree Corners",
                "zip_code": "30092",
                "country": "US",
                "state": "GA",
                "display_address": [
                    "5075 Peachtree Pkwy",
                    "Ste 105",
                    "AIn Ingles Shopping Center",
                    "Peachtree Corners, GA 30092"
                ]
            },
            "phone": "+16788209836",
            "display_phone": "(678) 820-9836",
            "distance": 2078.022094212255
        },
        {
            "id": "jPV9lw4T5x-cwEtqUsKKpQ",
            "alias": "bull-gogi-norcross",
            "name": "Bull-Gogi",
            "image_url": "https://s3-media4.fl.yelpcdn.com/bphoto/Dihbaro8_mETopS14hVxuQ/o.jpg",
            "is_closed": false,
            "url": "https://www.yelp.com/biz/bull-gogi-norcross?adjust_creative=_Z7cHy8w1HG2Rl7W5_-dhQ&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=_Z7cHy8w1HG2Rl7W5_-dhQ",
            "review_count": 121,
            "categories": [
                {
                    "alias": "chicken_wings",
                    "title": "Chicken Wings"
                },
                {
                    "alias": "korean",
                    "title": "Korean"
                },
                {
                    "alias": "asianfusion",
                    "title": "Asian Fusion"
                }
            ],
            "rating": 4,
            "coordinates": {
                "latitude": 33.9708404541016,
                "longitude": -84.2194213867188
            },
            "transactions": [
                "pickup",
                "delivery"
            ],
            "price": "$",
            "location": {
                "address1": "5450 Peachtree Pkwy",
                "address2": "Ste 7E",
                "address3": "",
                "city": "Norcross",
                "zip_code": "30092",
                "country": "US",
                "state": "GA",
                "display_address": [
                    "5450 Peachtree Pkwy",
                    "Ste 7E",
                    "Norcross, GA 30092"
                ]
            },
            "phone": "+16786915884",
            "display_phone": "(678) 691-5884",
            "distance": 589.662103540088
        }
    ],
    "total": 3800,
    "region": {
        "center": {
            "longitude": -84.21638488769531,
            "latitude": 33.966099369001896
        }
    }
}

Extra information

If required we can provide a Shape file so that the list of restaurants will be restricted within Peachtree Corners, GA, US itself.

madelinezug commented 6 years ago

I just had trouble with this- When you make your request be sure you set the limit to 50 (that's the maximum), and then make multiple requests with incremental offsets (50, 100, 150 etc.) to retrieve the maximum of 1000 results. If you're making requests in code you can do this in a for loop, or if using endpoints then change the offset parameter.

From the documentation FAQ: How do I get more than 50 results per request and how to get more than 1000 businesses? The API can only return up to 1,000 results at this time. The API doesn't allow more than 50 per request. You need to use the offset parameter to get the next page of results. (For using offset, give it any number. If you have limit=50, that means you're getting results 1-50, so give it offset=51 and you'll get 51-100.)

IngridCooper commented 6 years ago

Thank you for your reply. I'm able to get 50 results each time by incrementing the offset. However, I am getting the restaurants which are outside Peachtree Corners as well like restaurants in Atlanta, Roswell, Alpharetta, Duluth etc. Can you please let us know how we can get the restaurants located within the Peachtree Corners boundaries only? If required we can provide a Shape file so that the list of restaurants will be restricted within Peachtree Corners, GA, US itself.

IngridCooper commented 6 years ago

Hi Yelp team, could you please check my issue and let me know how to resolve it? I require the restaurants located only within the Peachtree Corners boundaries. When I call the businesses search API I am getting hundreds of restaurants which also include restaurants that are located in Atlanta, Roswell, Alpharetta, Duluth etc but I require the one's only in Peachtree Corners. Can you please let me know how I can achieve this?

watterso commented 6 years ago

Hi @IngridCooper, think of the location parameter more as "search near here" not as a hard filter of which city in which you would like the businesses to be. You can get finer-grain control of where the search happens by combining the latitude, longitude, and radius parameters. Although in the spirit of keeping things simple you could also ignore results you get back which don't have the value of city set to 'Peachtree Corners'.

bywillyoo commented 5 years ago

Hi @watterso what explains the discrepancy between the +4500 sites found on the Yelp website versus the total: 3800 response from yelp-fusion?

watterso commented 5 years ago

@willyoo42 it seems you have separate question, please open your own issue if you want it addressed.

I've hidden your and my comments to keep this thread on topic.

IngridCooper commented 5 years ago

Hi @watterso Yes, we have tried filtering the results based on the "city" as "Peachtree Corners" but could you please let us know that if we purchase a Business account would we get any benefit of getting only the Peachtree Corners restaurants as results instead of all the near by cities as well?