Anand Suthar
Anand Suthar

Reputation: 3798

Foursquare API return different data than it's website why?

We are using Foursquare API for one of our mobile app and to show nearby data we are using below API to get nearby Food locations.

https://api.foursquare.com/v2/venues/search?ll=33.17450984381138,-96.78465677816064&radius=10000&llAcc=10000&categoryId=,4d4b7105d754a06374d81259&oauth_token=HRL4YZXETY4RKRB1DV5XPPLQVVZUZEQYODTWKSICEFMU1RRN&v=20180705

Here 4d4b7105d754a06374d81259 is category id for Food.

But the data return by the API is different from the data showed on their website and this becomes an issue for us.

Below are screenshots of data shown on their website and shown on our mobile app, it's a big difference.

enter image description here

enter image description here

Upvotes: 1

Views: 428

Answers (1)

Narendra
Narendra

Reputation: 4574

I think your are looking for wrong API, if I change the path to v2/venues/search? to v2/search/recommendations? with the same ll=33.17450984381138,-96.78465677816064 and categoryId=,4d4b7105d754a06374d81259 it shows me the same result as they have on their website.

https://api.foursquare.com/v2/search/recommendations?locale=en&explicit-lang=false&v=20181219&categoryId=,4d4b7105d754a06374d81259&limit=30&mode=locationInput&near=Frisco%2C+TX&nearGeoId=72057594042620495&ll=33.17450984381138,-96.78465677816064&oauth_token=HRL4YZXETY4RKRB1DV5XPPLQVVZUZEQYODTWKSICEFMU1RRN&v=20180705

enter image description here

Upvotes: 1

Related Questions