Foursquare
Places worldwide: search, details and autocomplete
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- Service API KeySecretRequired
Where to find them
- Create an account and a project in the Foursquare developer console (foursquare.com/developers/signup).
- In the project's “API Settings”, create a “Service API Key” and copy it.
- It includes 500 free Places Pro calls per month: Premium endpoints and fields (hours, ratings, photos, reviews…) and calls beyond the quota use paid credits, so request only the fields you need with “fields”.
Tools (2)
Foursquare API request
FOURSQUARE_SEND_REQUESTAuthenticated call to the Foursquare API (https://places-api.foursquare.com). Any endpoint of the API is allowed. The API version goes in the X-Places-Api-Version header (already included). Examples: GET /places/search?query=cafe&near=London&limit=10&fields=fsq_place_id,name,location,latitude,longitude, GET /places/search?query=pizza&ll=40.4168,-3.7038&radius=1000, GET /places/{fsq_place_id}, GET /autocomplete?query=ret&ll=40.4168,-3.7038.
Required scopes
No scopes required
Input
Foursquare API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically. Search places
FOURSQUARE_SEARCH_PLACESSearches for places by name, category or type (e.g. “cafe”) near a city or some coordinates. It only requests Pro fields, which use up the free Places Pro call quota.
Required scopes
No scopes required
Input
Search places input Name Type Description queryrequiredstringWhat to search for: name, category or type of place nearstringCity as text, e.g. “London, GB” llstringCoordinates “lat,lon” (instead of “near”) maxintegerDefault: 10

