Yelp / yelp-fusion

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

Business doesn't showing on search API #390

Closed webappsllcInfo closed 9 months ago

webappsllcInfo commented 6 years ago

Platform: iOS

Endpoint

Fusion Search API

When searching 'Walmart' business with the following API, it's not showing. https://api.yelp.com/v3/businesses/search?term=walmart and other params.

But when searching with category wise, like

https://api.yelp.com/v3/businesses/search?term=walmart&category=department and other params.

than Walmart is showing. So can you please guide us on that.

Here attach the screenshot for that.

yelp search

virgytam commented 6 years ago

Hi @webappsllcInfo, the location param is required for search. Can you provide the entire search query including location (or lat/lng if you're using that instead)

webappsllcInfo commented 6 years ago

Hi @virgytam, Here is search query:

https://api.yelp.com/v3/businesses/search?term=Walmar&latitude=41.1177&longitude=-73.4082&limit=50&radius=20000&sort_by=distance&offset=0

And this is a search query with category-id:

https://api.yelp.com/v3/businesses/search?term=&latitude=41.1177&longitude=-73.4082&limit=50&radius=20000&categories=deptstores&sort_by=distance&offset=0

On searching of Walmart its not showing on the top.