foursquare-api | Python wrapper around the foursquare v2 API | REST library
kandi X-RAY | foursquare-api Summary
kandi X-RAY | foursquare-api Summary
Python wrapper around the foursquare v2 API.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Returns an access token
- Read the code from the request
- Returns a list of venues that match the given location
- Make a HTTP request
- Get a list of Venues
- Returns Venues for a given venue
foursquare-api Key Features
foursquare-api Examples and Code Snippets
Community Discussions
Trending Discussions on foursquare-api
QUESTION
I'm implementing a simple Python project for study purposes and I want to retrieve 200 different burger locations using the Foursquare API within a radius.
I've tried to make four consecutive calls with "search", but the results from each call are overlapping. I've also checked this question, but the offset is limited to 50 (so I can only get 100 results by making two calls).
I want to make sure that none of the venues are repeated without having to check the responses of each call and I don't want to traverse the results one by one.
Is there a simple way to do that?
Thanks in advance.
...ANSWER
Answered 2019-Dec-10 at 22:57There's no way around the limit
of 50 on the venues/search
endpoint, unfortunately, at least nothing documented.
As the other answer pointed out you can use the venues/explore
endpoint, along with offset
to get each next set of 50 (limit
). Depending on the parameters used (query
, categoryId
, section
, etc), and if you hit this endpoint as an unauthenticated user (so you don't get customized results), you may be able to replicate the same set of results as you would from venues/search
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install foursquare-api
You can use foursquare-api like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page