published

OpenCage Geocoding API

The OpenCage Geocoding API provides developers reliable forward and reverse geocoding services, making it ideal for integration into location-based applications.

Developed by OpenCage Data

99.90%Uptime
250msLatency
120Stars
API KeyAuth
NoCredit Card
RESTStyle
1Version
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
  • Integrating geocoding features in travel applications for location searchOptimized Capability
  • Building logistics platforms requiring accurate address validation and location dataOptimized Capability
  • Creating mapping apps that convert user input addresses to geo coordinatesOptimized Capability
  • Mobile apps that deliver location-based services with high accuracyOptimized Capability
  • Batch geocoding to streamline processing of large datasetsOptimized Capability
Advantages
  • High accuracy using multiple open data sources including OpenStreetMap
  • Supports both forward and reverse geocoding
  • Batch geocoding for improved performance on multiple queries
  • Detailed location data including time zone and currency info
Limitations
  • Free tier has limited daily requests which may be insufficient for large apps
  • No official SDKs for some popular languages, relying on third-party libraries
  • Response data may vary in granularity depending on open data source coverage
  • API key required for all requests, adding an authentication step

FAQs

API Specifications

1
Pricing Model
Tiered subscription based on monthly request volume
Credit Card
Not Required
Response Formats
JSON
Supported Languages
6 Languages
SDK Support
Python, JavaScript
Time to Hello World

Minutes

Rate Limit

Up to 100,000 requests per day for paid plans

Free Tier Usage

Free tier allows up to 2,500 requests per day with rate limits suitable for development and small applications

Use Case: Best For

Developers building travel, logistics, mapping, and mobile location-based applications

Not Recommended For

Applications requiring extremely high-volume geocoding without paid plans

#maps#location#geocoding

Explore Related APIs

Discover similar APIs to OpenCage Geocoding API

View All APIs
PUBLIC

REST Countries API

The REST Countries API provides developers free access to detailed country information, ideal for applications needing reliable country data.

Geolocation & MappingView Details
PUBLIC

Zippopotam.us

The Zippopotam.us API offers developers free access to postal and ZIP code information globally, useful for address validation, geocoding, and enhancing user experiences.

Geolocation & MappingView Details
PUBLIC

Countries Now API

The Countries Now API offers structured geolocation data about countries and cities worldwide, suitable for applications that need international features.

Geolocation & MappingView Details