Overview
The Foursquare API offers developers a suite of tools for integrating location intelligence into web and mobile applications. Established in 2009, Foursquare initially gained recognition for its social check-in application, evolving to become a significant provider of location data and technology. The API provides access to a comprehensive database of points of interest (POIs), including businesses, landmarks, and public venues globally, facilitating the creation of location-aware experiences and services. Developers can utilize this data to power local search, personalize user experiences based on real-world context, and perform advanced geospatial analytics.
Core offerings within the Foursquare API ecosystem include the Places API, which delivers detailed information about venues, and the Pilgrim SDK, designed for passive location detection and context awareness in mobile applications. For large-scale data needs, the Places Database provides direct access to Foursquare's extensive POI catalog. These tools are particularly suited for industries such as retail, real estate, advertising, and logistics, where understanding physical location and foot traffic patterns is crucial. For instance, a retail application might use the Foursquare Places API to suggest nearby stores or provide directions, while a logistics company could analyze traffic patterns to optimize delivery routes. The platform supports various authentication methods, including OAuth 2.0 and API keys, ensuring secure access to its data and services, as detailed in the Foursquare API authentication guide. While official SDKs are not provided, Foursquare offers extensive documentation and code examples in popular languages like cURL, Python, and Node.js to assist developers in integration.
Foursquare's data is compiled from multiple sources, including user contributions, partnerships, and proprietary algorithms, which helps maintain currency and accuracy. This allows applications to present up-to-date information on business hours, popular times, and unique venue characteristics. The API also supports advanced querying capabilities, allowing developers to filter POIs by category, proximity, and specific attributes, which is essential for building highly relevant location-based features. The emphasis on real-world context and detailed venue information distinguishes Foursquare in the location intelligence market, providing a rich data layer for applications that require precise geographical understanding beyond basic mapping functionalities.
Key features
- Places API: Provides access to Foursquare's global database of points of interest (POIs), including details such as name, address, category, contact information, hours of operation, and user-generated content like photos and tips. This enables applications to discover and present relevant locations.
- Pilgrim SDK: A mobile SDK for passive location detection, allowing applications to understand a user's real-world context (e.g., currently at a specific venue, recently visited a type of store) without actively polling for GPS, optimizing battery usage.
- Places Database: Offers bulk access to Foursquare's comprehensive POI data for large-scale data analysis, geomarketing, or populating internal mapping systems. This is an enterprise-grade solution for extensive data requirements.
- Geospatial Analytics: Tools and data streams for analyzing foot traffic patterns, venue popularity, and demographic insights based on location data, supporting market research, site selection, and advertising effectiveness measurement.
- Location Search and Discovery: Advanced search capabilities to find POIs by name, category, location, and other filters, facilitating the creation of local search engines, recommendation systems, and mapping applications.
- Real-time Location Context: Delivers dynamic information about venues, including real-time popularity trends and temporary closures, enabling applications to provide timely and accurate user experiences.
- Global Coverage: Access to POI data and location intelligence for millions of venues across numerous countries, supporting applications with international user bases.
Pricing
Foursquare primarily offers custom enterprise pricing, which is tailored to the specific needs and usage volumes of individual clients. A free developer tier is available for non-commercial use with limited request allowances, providing an entry point for testing and small-scale projects. Commercial use generally requires engagement with Foursquare's sales team to define a suitable plan.
| Plan Name | Description | Key Features | Pricing as of 2026-05-07 |
|---|---|---|---|
| Foursquare Developer | Free tier for non-commercial exploration and development. | Limited API requests per month, access to core Places API functionalities. | Free (non-commercial use only) |
| Enterprise Solutions | Customized plans for commercial applications and high-volume usage. | Full access to Places API, Pilgrim SDK, Places Database, Geospatial Analytics; dedicated support; scalable infrastructure. | Custom enterprise pricing (contact Foursquare sales) |
For detailed information on commercial licensing and specific feature sets, potential users are advised to consult the Foursquare pricing page and contact their sales department.
Common integrations
- Mapping Platforms: Integrate Foursquare POI data with mapping services like Google Maps Platform or Mapbox to enrich maps with detailed venue information and custom overlays, enhancing navigation and discovery features.
- CRM Systems: Connect Foursquare data with CRM platforms like Salesforce to gain location-based insights on customer behavior, optimize sales territories, or personalize marketing campaigns based on physical visits.
- Analytics Dashboards: Incorporate Foursquare geospatial analytics into business intelligence tools to visualize foot traffic trends, understand market demographics, and inform strategic decisions for retail expansion or advertising placement.
- Mobile Applications: Utilize the Pilgrim SDK within iOS and Android applications to enable passive location awareness, trigger personalized notifications, or offer contextual recommendations based on a user's real-world movements.
- Advertising Platforms: Integrate location data into ad tech platforms to target audiences based on their physical presence or past venue visits, enhancing the relevance and effectiveness of digital advertising campaigns.
- E-commerce Platforms: For local businesses, integrating Foursquare data can help e-commerce sites display nearby physical store locations, provide accurate business hours, and offer in-store pickup options.
Alternatives
- Google Maps Platform: Offers extensive mapping, routing, and places APIs, providing a broad set of location services for diverse application needs.
- Mapbox: Provides customizable maps, location data, and developer tools for building unique mapping and geospatial applications with a focus on design and flexibility.
- HERE Technologies: Specializes in location data and technology for automotive, logistics, and enterprise solutions, offering highly accurate mapping, routing, and real-time traffic information.
- OpenStreetMap: A collaborative, open-source project to create a free editable map of the world, often used as a base map for custom geospatial solutions.
Getting started
To begin using the Foursquare API, developers typically obtain an API key or set up OAuth 2.0 authentication credentials via the Foursquare Developer Portal. The following cURL example demonstrates a basic request to the Foursquare Places API to search for venues near a specified location. This example uses a placeholder for the API key and a specific endpoint for venue search.
curl -X GET \
'https://api.foursquare.com/v3/places/search?ll=40.7484,-73.9857&query=coffee&limit=5' \
-H 'Accept: application/json' \
-H 'Authorization: YOUR_API_KEY'
In this example, YOUR_API_KEY should be replaced with an actual API key obtained from the Foursquare authentication documentation. The ll parameter specifies latitude and longitude (Empire State Building area), query searches for "coffee" venues, and limit restricts the results to five. This request will return a JSON object containing details about coffee shops near the specified coordinates. Developers can find more detailed examples and API endpoint documentation in the Foursquare API Reference.
For Python developers, a similar request can be constructed using the requests library:
import requests
api_key = "YOUR_API_KEY"
url = "https://api.foursquare.com/v3/places/search"
params = {
"ll": "40.7484,-73.9857",
"query": "restaurant",
"limit": 3
}
headers = {
"Accept": "application/json",
"Authorization": api_key
}
response = requests.get(url, params=params, headers=headers)
if response.status_code == 200:
data = response.json()
for place in data.get("results", []):
print(f"Name: {place['name']}, Category: {place['categories'][0]['name'] if place['categories'] else 'N/A'}")
else:
print(f"Error: {response.status_code}, {response.text}")
This Python snippet performs a search for restaurants and prints their names and primary categories. Developers should consult the Foursquare developer documentation for comprehensive guides on various API endpoints and advanced querying techniques.