freeapis

OpenCage

Forward and reverse geocoding using open data

Authentication
API Key
HTTPS
Yes
CORS
Yes
Category
Geocoding
Documentation / URL
https://opencagedata.com

Overview

OpenCage provides forward/reverse geocoding from multiple open data sources with global coverage. Auth is an API key (an invalid key returns 401 with a detailed error body, verified).

Quick Start

Forward geocoding (replace YOUR_KEY):

curl "https://api.opencagedata.com/geocode/v1/json?key=YOUR_KEY&q=paris"
{
  "results": [
    {
      "formatted": "Paris, France",
      "geometry": { "lat": 48.8566, "lng": 2.3522 },
      "components": { "city": "Paris", "country": "France", "country_code": "fr" },
      "confidence": 10
    }
  ],
  "status": { "code": 200, "message": "OK" }
}

Reverse:

curl "https://api.opencagedata.com/geocode/v1/json?key=YOUR_KEY&q=48.8566%2C2.3522"

Authentication

  • Register at opencagedata.com → free API key (in the dashboard).
  • Send it as the key query parameter (invalid key → 401, verified).

Rate Limits & Notes

  • Free tier: 2,500 requests/day (check current docs); paid plans scale.
  • Aggregates OSM, OpenAddresses, and other open sources — with per-source attribution.
  • confidence (0-10) and annotations enrich each result.
  • European data is stronger than some alternatives; supports 100+ countries.

FAQ

Is OpenCage free? Free tier: 2,500 requests/day; more is paid.

How do I get a key? Register at opencagedata.com — the key is in your dashboard.

What sources does it use? OpenStreetMap, OpenAddresses, and other open data.

More in Geocoding

APIAuthHTTPSCORS
Actinia Grass GIS

Actinia is an open source REST API for geographical data that uses GRASS GIS

API KeyYesUnknown
administrative-divisons-db

Get all administrative divisions of a country

No authYesYes
adresse.data.gouv.fr

Address database of France, geocoding and reverse

No authYesUnknown
Airtel IP

IP Geolocation API. Collecting data from multiple sources

No authYesUnknown
Apiip

Get location information by IP address

API KeyYesYes