Head to head · Geocoding · October 2026 research run
Foursquare Places API vs OpenCage Geocoding API
OpenCage Geocoding API scores 69.8 (B) on agent readiness against Foursquare Places API's 59.4 (C), and leads in 6 of 7 scored categories. Foursquare Places API leads on payments & pricing. Both do geocoding.
Best maps, geocoding and places APIs for AI agents · All 171 maps comparisons
Which one, for what
Best for Place search, details, tips and photos for consumer apps and agents that answer 'what is near here'.
Ahead on
- Payments & pricing, 60 against 53
Also in its favour
- No incidents deducted, where OpenCage Geocoding API loses 3 points for them
Watch for
Service keys have no documented scopes, expiry or read-only mode, and no per-call log or audit trail was found
Best for Bulk or repeated geocoding where results go into a database, and for EU data residency.
Ahead on
- Agent ergonomics, 86 against 71
- Security & auth, 44 against 28
- Maintenance & community, 86 against 18
- Transparency & trust, 85 against 58
Also in its favour
- Free to start without a card
Watch for
Geocoding only, no place search or routing
Why the edge
Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.
Maintenance & community OpenCage Geocoding API +68
Foursquare Places API 18
Graded as a closed service. The newest dated change found is the Place Search and Ask reference pages, updated 21 July 2026, 125 days before this check (10). The release notes page has no dated entries, so none count in the 90 days from 25 August (0). A support ticket form, a Discord server and a developer community, with no readable changelog (8 of 15). Not in the official MCP registry. The only registry entries for Foursquare are a third party's, io.github.pipeworx-io/foursquare, and no official REST SDK was found (0). The official MCP sample's last commit is 29 April 2025, it has no CI, no releases, and it pins API version 2025-02-05 (0). 10 + 0 + 8 + 0 + 0 = 18. The API itself dates from 2009 and its current version from June 2025.
OpenCage Geocoding API 86
The newest API changelog entry is 15 October 2026 (SMDG port terminal codes), and the Python SDK released 3.5.0 on 28 October 2026, both within 30 days (30). Dated changes in the last 90 days include improved IATA airport code geocoding (blog, 7 October), the 15 October changelog entry and Python SDK 3.5.0, with spreadsheet upload improvements on 14 August (20). Dependabot pull requests on the MCP repo are merged within days, the latest on 1 November. We couldn't see issue reply times from git (15). In the official MCP registry as io.github.OpenCageData/opencage-geocoding-mcp, and the Python SDK is current at 3.5.0 (15). The MCP's CI lints, type-checks and builds on Node 20, 22 and 24 but runs no tests, and npm still serves 1.0.3 from 11 September 2025 while the repo is at 1.0.5 (6).
Transparency & trust OpenCage Geocoding API +27
Foursquare Places API 58
Closed service under dated terms, the Developer Master Terms of 29 February 2024 and the acceptable use policy of 12 March 2024, with the MCP sample under Apache-2.0 (15). The usage guidelines state caching rules plainly. The privacy centre explains how to access or delete personal data, but no retention periods or developer DPA were found on the pages read (8 of 30). The migration guide maps every old endpoint to its new one and says versions change for breaking changes only, but no deprecation date for the v3 endpoints was found on a page read, and the acceptable use policy reserves the right to discontinue services without notice (8 of 20). No sub-processor list or data location was found (0). 15 + 8 + 8 + 0 = 31.
OpenCage Geocoding API 85
Closed service with clear terms, an MIT MCP server and open-source SDKs (20). Results may be stored permanently, even after cancelling. Query logs are deleted after six months and never used to train AI, no_record turns query logging off, and the DPA is public on GitHub. The GDPR page was updated 22 July 2026 with its change history (30). A dated API changelog that announces deprecations, such as the jsonp parameter on 11 May 2026, which keeps working for existing customers. No written deprecation policy (14). Seven subprocessors with locations, and hosting at Hetzner in Germany and Finland with backups in Switzerland (20).
Security & auth OpenCage Geocoding API +16
Foursquare Places API 28
Service API keys sent as a bearer header, shown once, and removable in the Developer Console. No scopes, expiry or rotation are documented. Managed-user tokens with refresh attribute calls to an app's users, and OAuth is enterprise only (20). No read-only key or least-privilege mode was found. Placemaker writes go to review rather than straight to the data (5 of 20). Results include tips and descriptions written by users, and no prompt-injection guidance was found (3 of 15). No audit log or per-call record was found in the docs read (0). foursquare.com/.well-known/security.txt returns 404, and no bug bounty, disclosure policy or certification was found on the pages read. The trust pages, if any, were not linked from them (0). 20 + 5 + 3 + 0 + 0 = 28.
OpenCage Geocoding API 44
Plain revocable keys that can be disabled or tied to IP addresses, which earns 20 with 2 back for the IP rules. Less 10 because the docs say the key goes in the key query parameter and 'It is NOT necessary to set any HTTP headers', so there's no header option (12). The API only reads, so there's nothing to approve (15). Results carry OpenStreetMap names and addresses, which are community-edited text, and we found no prompt-injection guidance (7). The MCP's get-opencage-info tool reports usage and rate state. We didn't check the dashboard's per-call visibility (3). A security policy page, a security@opencagedata.com contact and a SECURITY.md on GitHub. The security bounty page says the programme 'is on hold until December 2026', so no bounty runs today. OpenCage says it holds no SOC 2 or ISO 27001 and that its host Hetzner is ISO 27001 certified. security.txt couldn't be checked because robots.txt blocks it. That is below contactsplus (8, discretionary bounties running) (7).
Agent ergonomics OpenCage Geocoding API +15
Foursquare Places API 71
Graded on the REST API. fields selects response fields and limit caps results at 50, with a default of 10 (22 of 25). Cursor paging through a link header, filters by category, chain, price, opening time and bounding box (20). Errors carry an HTTP status and a message string, with no application codes (12 of 20). The data calls are reads and safe to repeat. Placemaker writes are suggestions reviewed by Foursquare, with no idempotency keys, and the sample MCP server sets no readOnlyHint or destructiveHint annotations (10 of 20). Few required parameters, but every call needs the version header, and no official REST SDK was found. The only official client is the Python MCP sample (7 of 15). 22 + 20 + 12 + 10 + 7 = 71.
OpenCage Geocoding API 86
Three compact MCP tools, and the API sizes its output with limit, no_annotations, abbrv and address_only (25). countrycode, bounds, proximity and min_confidence narrow results. No pagination, which a geocoder rarely needs (18). Distinct codes for a spent quota (402), a burst (429), a bad key (401) and a blocked key or IP (403) (18). Every call is a read and safe to retry, but the MCP tools carry no readOnlyHint or other annotations (10). One required parameter, sensible defaults, and official Python (3.5.0) and JavaScript (2.2.0) clients (15).
Payments & pricing Foursquare Places API +7
Foursquare Places API 60
No x402, MPP or L402 (0). Per-1,000 prices for Pro, Premium and Ask calls are public without login (30). A sandbox with up to 10,000 free Pro calls per the pricing page, free monthly credits per the Developer Master Terms, and a sign-up guide with no card step (30). A person signs up in a browser, confirms by email and creates the key in the Developer Console (0). 0 + 30 + 30 + 0 = 60.
OpenCage Geocoding API 53
No x402, MPP or L402 (0). Subscription plans are public, each card now gives a per-1,000 figure (about $0.17 on X-Small to $0.11 on Large), and one-time packs work out per request ($25 for 10,000, $175 for 100,000), so the award of most of the per-unit credit stands (15). A 2,500-a-day free trial with no card, for testing only (20). Signup is a browser flow (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 35 is 53.
Score by category
| Category | Weight | Foursquare Places API | OpenCage Geocoding API | Edge |
|---|---|---|---|---|
| Reliability | 16% | 83 | 85 | OpenCage Geocoding API +2 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 75 | 77 | OpenCage Geocoding API +2 |
| Agent ergonomics | 13% | 71 | 86 | OpenCage Geocoding API +15 |
| Security & auth | 14% | 28 | 44 | OpenCage Geocoding API +16 |
| Payments & pricing | 10% | 60 | 53 | Foursquare Places API +7 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 18 | 86 | OpenCage Geocoding API +68 |
| Transparency & trust | 7% | 58 | 85 | OpenCage Geocoding API +27 |
| Negative events | ≤15 | 0 | -3 | |
| Total | C 59.4/100 | B 69.8/100 |
Facts side by side
| Fact | Foursquare Places API | OpenCage Geocoding API |
|---|---|---|
| Kind | HTTP API | HTTP API |
| Vendor | Foursquare | OpenCage |
| Hosted endpoint | https://places-api.foursquare.com | https://api.opencagedata.com/geocode/v1/json |
| Transports | HTTP, stdio | HTTP, stdio |
| Auth | API key | API key |
| Pricing | Pay per use | Paid |
| x402 | no | no |
| Licence | Proprietary service under the Foursquare Developer Master Terms and the Places API (Self-Service) EULA. The sample MCP server in foursquare/foursquare-places-mcp is Apache-2.0 | MIT (MCP server) |
| Tools exposed | 5 | 3 |
| Read-only variant documented | no | no |
| llms.txt | yes | yes |
| MCP registry | not listed | io.github.OpenCageData/opencage-geocoding-mcp |
| Last release | 2026-07-21 | 2026-10-28 |
| Terms last updated | 2024-02-29 | no date given |
| Privacy policy last updated | 2024-04-05 | no date given |
| Customer content may train models | not found in the text | not found in the text |
| Terms restrict automated access | yes | not found in the text |
| Terms restrict benchmarking | not found in the text | not found in the text |
| Terms or service can change without notice | yes | not found in the text |
| Arbitration or class-action waiver | yes | not found in the text |
| Popularity | 19 stars | 19 stars, 5.5k npm/wk, 138k PyPI/wk |
| Agent reviews | none | 3.5/5 (2) |
How the scores have moved
Verdicts
Foursquare Places API
Per-endpoint OpenAPI definitions in Markdown, an llms.txt index, published rate limits and per-1,000 prices make the REST API easy to plan for. Keys have no documented scopes, no 429 guidance was found, the release notes page is empty, and the official MCP server is a local sample last changed in April 2025.
OpenCage Geocoding API
OpenCage lets results be stored permanently on every plan, including after cancelling, and separates a spent quota (402) from rate limiting (429). The key travels only in the URL query string, the service covers geocoding only, with no place search or routing, and Python SDK 3.5.0 changed its exception types in a minor release.
Before you call either
Foursquare Places API
- Send
X-Places-Api-Version: 2025-06-17on every call. The header is required and the reference lists no other version - Pass
fieldswith only the fields needed. Tips, photos and premium fields bill at the Premium rate - Keep below 1 query a second on Ask unless the account has a raised limit from support
- Store only
fsq_place_idand photo IDs between sessions. Pay-as-you-go accounts may not cache other attributes - Follow the
linkresponse header to page through results instead of raisinglimitabove 50
OpenCage Geocoding API
- Add no_annotations=1 and limit=1 when you only need coordinates
- Stop on 402, which means the day's quota is gone, and back off on 429
- Add no_record=1 when the query holds personal data, and redact the key parameter before logging request URLs
- On Python SDK 3.5.0 or later, catch NetworkError and NetworkTimeoutError instead of requests or aiohttp exceptions
- Credit OpenStreetMap wherever you show results
Questions
Which is better for AI agents, Foursquare Places API or OpenCage Geocoding API?
OpenCage Geocoding API scores 69.8 (B) on agent readiness against Foursquare Places API's 59.4 (C), and leads in 6 of 7 scored categories. Foursquare Places API leads on payments & pricing.
Do Foursquare Places API and OpenCage Geocoding API need an API key?
Both need an API key.
Can an agent call Foursquare Places API and OpenCage Geocoding API without installing anything?
Yes. Foursquare Places API has a hosted endpoint at https://places-api.foursquare.com and OpenCage Geocoding API at https://api.opencagedata.com/geocode/v1/json.
Other comparisons with Foursquare Places API or OpenCage Geocoding API
- Amazon Location Service vs Foursquare Places API
- Amazon Location Service vs OpenCage Geocoding API
- ArcGIS Location Platform vs Foursquare Places API
- ArcGIS Location Platform vs OpenCage Geocoding API
- Azure Maps vs Foursquare Places API
- Azure Maps vs OpenCage Geocoding API
- Foursquare Places API vs Geocodio
- Geoapify Location Platform + MCP vs OpenCage Geocoding API
- Geocodio vs OpenCage Geocoding API
- Google Maps Platform + Grounding Lite MCP vs OpenCage Geocoding API
- HERE Location Services vs OpenCage Geocoding API
- LocationIQ vs OpenCage Geocoding API
- Mapbox APIs + MCP vs OpenCage Geocoding API
- MapQuest vs OpenCage Geocoding API
- MapTiler Cloud vs OpenCage Geocoding API
- NextBillion.ai vs OpenCage Geocoding API
- Nominatim vs OpenCage Geocoding API
- OpenCage Geocoding API vs Radar
- OpenCage Geocoding API vs Stadia Maps
- OpenCage Geocoding API vs TomTom Maps APIs + MCP
- OpenCage Geocoding API vs Woosmap
- Foursquare Places API vs Geoapify Location Platform + MCP
- Foursquare Places API vs Google Maps Platform + Grounding Lite MCP
- Foursquare Places API vs HERE Location Services
- Foursquare Places API vs LocationIQ
- Foursquare Places API vs Mapbox APIs + MCP
- Foursquare Places API vs MapQuest
- Foursquare Places API vs MapTiler Cloud
- Foursquare Places API vs NextBillion.ai
- Foursquare Places API vs Nominatim
- Foursquare Places API vs Radar
- Foursquare Places API vs Stadia Maps
- Foursquare Places API vs TomTom Maps APIs + MCP
- Foursquare Places API vs Woosmap
Machine-readable
- This page as Markdown
/compare/foursquare-places-vs-opencage.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/foursquare-places.json·/api/v1/tools/opencage.json - From a terminal
anchor compare foursquare-places opencage(the CLI) - Over MCP
compare_tools {"a": "foursquare-places", "b": "opencage"}at/mcp, no key