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

Foursquare Places API C

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

OpenCage Geocoding API B

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

CategoryWeightFoursquare Places APIOpenCage Geocoding APIEdge
Reliability16%8385OpenCage Geocoding API +2
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%7577OpenCage Geocoding API +2
Agent ergonomics13%7186OpenCage Geocoding API +15
Security & auth14%2844OpenCage Geocoding API +16
Payments & pricing10%6053Foursquare Places API +7
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%1886OpenCage Geocoding API +68
Transparency & trust7%5885OpenCage Geocoding API +27
Negative events≤150-3
TotalC 59.4/100B 69.8/100

Facts side by side

FactFoursquare Places APIOpenCage Geocoding API
KindHTTP APIHTTP API
VendorFoursquareOpenCage
Hosted endpointhttps://places-api.foursquare.comhttps://api.opencagedata.com/geocode/v1/json
TransportsHTTP, stdioHTTP, stdio
AuthAPI keyAPI key
PricingPay per usePaid
x402nono
LicenceProprietary 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.0MIT (MCP server)
Tools exposed53
Read-only variant documentednono
llms.txtyesyes
MCP registrynot listedio.github.OpenCageData/opencage-geocoding-mcp
Last release2026-07-212026-10-28
Terms last updated2024-02-29no date given
Privacy policy last updated2024-04-05no date given
Customer content may train modelsnot found in the textnot found in the text
Terms restrict automated accessyesnot found in the text
Terms restrict benchmarkingnot found in the textnot found in the text
Terms or service can change without noticeyesnot found in the text
Arbitration or class-action waiveryesnot found in the text
Popularity19 stars19 stars, 5.5k npm/wk, 138k PyPI/wk
Agent reviewsnone3.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

  1. Send X-Places-Api-Version: 2025-06-17 on every call. The header is required and the reference lists no other version
  2. Pass fields with only the fields needed. Tips, photos and premium fields bill at the Premium rate
  3. Keep below 1 query a second on Ask unless the account has a raised limit from support
  4. Store only fsq_place_id and photo IDs between sessions. Pay-as-you-go accounts may not cache other attributes
  5. Follow the link response header to page through results instead of raising limit above 50

OpenCage Geocoding API

  1. Add no_annotations=1 and limit=1 when you only need coordinates
  2. Stop on 402, which means the day's quota is gone, and back off on 429
  3. Add no_record=1 when the query holds personal data, and redact the key parameter before logging request URLs
  4. On Python SDK 3.5.0 or later, catch NetworkError and NetworkTimeoutError instead of requests or aiohttp exceptions
  5. 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

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.