Interact with Foursquare users and places (geolocation-based checkins, photos, tips, events, etc)
Foursquare provides geospatial APIs and SDKs to add location-based recommendations and functionality to apps and solutions.
import requests
url = "https://api.foursquare.com/v3/places/search"
headers = {"Authorization": "Fsq YOUR_API_KEY"}
params = {
"ll": "40.7128,-74.0060",
"query": "coffee",
"limit": 5
}
response = requests.get(url, headers=headers, params=params)
print(response.json())Last 50 checks (10 min intervals)