2
votes

i am using foursquare venues search API to get search results using javascript.

But I only get 50 results.

How do I get more than 50 results (say, around 100 or 200)?

used api: https://api.foursquare.com/v2/venues/search?query=Hotels&ll=40.70590473669712,-73.9780035&limit=50&radius=3200&client_id=clinetid&client_secret=clientsecret

2
i add the api what i use. - soundar
if i use 'nearby point' means, any possibility to get duplicate results? - soundar

2 Answers

1
votes

Foursquare's API has a 50 result limit, however, you can get more results that may overlap by using a nearby point, like this:

https://api.foursquare.com/v2/venues/search?ll=100.100,-30.010&limit=50
https://api.foursquare.com/v2/venues/search?ll=100.110,-30.110&limit=50
0
votes

You can tell the Foursquare API to return more results (up to 500) via the limit parameter, as described here.