OpenCage

API

Forward & reverse geocoding with open data sources

Visit Website

Overview

OpenCage provides RESTful forward (address-to-coordinates) and reverse (coordinates-to-address) geocoding APIs leveraging open data like OpenStreetMap. Responses are JSON-formatted, including detailed location metadata (country, city, postal code, admin divisions). Ideal for mapping apps, delivery logistics, location-based marketing, or IoT devices needing geospatial context. Supports multi-language results, bounding box filters, and confidence scores to refine accuracy, with flexible rate limits for small projects and enterprises.

Example Integration (JavaScript)

script.js JS

fetch('https://opencagedata.com')
  .then(res => res.json())
  .then(data => console.log(data))
  .catch(err => console.error(err));

Key Features

  • RESTful API
  • JSON responses
  • Forward & reverse geocoding
  • Open data integration
  • Multi-language support
  • Confidence scoring
  • Bounding box filtering

Frequently Asked Questions

? Is OpenCage free to use?

Yes, OpenCage offers a free tier with up to 2,500 requests/day. Paid plans are available for higher volume needs.

? Does it require an API Key?

Yes, you need to sign up for an API key (free for basic tier) to authenticate requests.

? What is the response format?

All responses are in JSON, including address components, coordinates, and confidence levels.

Top Alternatives

Nominatim Compare
Mapbox Geocoding API Search Google

People Also Ask about OpenCage

OpenCage vs NominatimOpenCage vs Mapbox Geocoding API OpenCage 2025 review

Tool Info

Pricing Freemium
Category Geocoding
Platform Public API

Pros

  • Easy to integrate
  • Open data-driven
  • Flexible pricing tiers
  • Detailed location metadata
  • Multi-language results

Cons

  • Free tier has rate limits
  • No SLA for free users
  • Some regions may lack precision

More Geocoding Tools