published

OpenCage Geocoding API

The OpenCage Geocoding API offers developers reliable forward and reverse geocoding services using multiple open data sources for seamless integration.

Developed by OpenCage Data

99.98%Uptime
185msLatency
374Stars
API KeyAuth
NoCredit Card
RESTStyle
v1Version
API Endpoints

Reference for available routes, request structures, and live examples.

Convert addresses to geographic coordinates

Full Endpoint URL
https://api.opencagedata.com/geocode/v1/json
Implementation Example
curl -X GET 'https://api.opencagedata.com/geocode/v1/json' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Request Payload
{
  "q": "1600 Pennsylvania Ave",
  "key": "API_KEY"
}
Expected Response
{
  "results": [
    {
      "geometry": {
        "lat": 38.8977,
        "lng": -77.0365
      }
    }
  ]
}
Version:v1
Limit:2500 requests/day
Real-World Applications
  • Building store locators or location-based searchOptimized Capability
  • Integrating address autocomplete and validation in appsOptimized Capability
  • Mapping visualizations for travel or delivery servicesOptimized Capability
  • Reverse geocoding GPS data in mobile or IoT devicesOptimized Capability
  • Geotagging and enriching datasets with place informationOptimized Capability
Advantages
  • Combines multiple open data sources for high coverage
  • Worldwide geocoding and reverse geocoding
  • Supports time zones, currencies, and many location details
  • Simple, transparent pricing and generous free tier
  • Helpful support and comprehensive documentation
Limitations
  • Rate limits may constrain large-scale real-time apps without a commercial plan
  • No native offline mode—requires live internet access
  • Some regions may have less detailed data
  • API key must be protected and not exposed in public repositories

FAQs

API Specifications

v1
Pricing Model
Pay-as-you-go, monthly plans
Credit Card
Not Required
Response Formats
JSON, XML
Supported Languages
8 Languages
SDK Support
Python, JavaScript, PHP, Ruby
Time to Hello World

Less than 5 minutes

Rate Limit

2,500 requests/day (free tier), higher for paid plans

Free Tier Usage

2,500 requests per day; no credit card required

Use Case: Best For

Developers building global location-based apps, mapping, or analytics tools

Not Recommended For

Offline geocoding or ultra-high-frequency real-time location apps

#maps#location#geocoding

Explore Related APIs

Discover similar APIs to OpenCage Geocoding API

View All APIs
OPEN SOURCE

REST Countries API

The REST Countries API offers developers free, no-key-required access to detailed country information, suitable for various applications.

Geolocation & MappingView Details
OPEN SOURCE

Countries Now API

The Countries Now API provides developers with structured geolocation data about countries and cities, making it ideal for enhancing international features in applications.

Geolocation & MappingView Details
OPEN SOURCE

Zippopotam.us

The Zippopotam.us API provides free access to postal and ZIP code information from over 60 countries, suitable for enhancing address lookup and geocoding functionality in applications.

Geolocation & MappingView Details