LocationIQAPI Documentation
Provides forward/reverse geocoding and batch geocoding
specifications
quick start
Forward geocode an address
const res = await fetch(
'https://us1.locationiq.com/v1/search?key=YOUR_API_KEY&q=Empire+State+Building&format=json'
);
const [result] = await res.json();
console.log(result.lat, result.lon);import requests
res = requests.get('https://us1.locationiq.com/v1/search', params={
'key': 'YOUR_API_KEY', 'q': 'Empire State Building', 'format': 'json'
})
r = res.json()[0]
print(r['lat'], r['lon'])about
About LocationIQ API
The LocationIQ API is a geocoding API that gives developers easy access to geocoding-related data and functionality. It is designed for both quick prototypes and production applications.
Key Features
- Comprehensive API documentation
- Secure HTTPS endpoints
- CORS enabled for browser requests
- apiKey authentication
- Reliable uptime and fast response times
- Reasonable rate limits
- Active developer community support
Perfect For
- Geocoding management applications
- Geocoding analytics tools
- Geocoding integration platforms
- Custom geocoding solutions
Getting Started
Register for an account and obtain your OAuth credentials. Once you have your credentials, you can start making authenticated requests.
The API documentation provides comprehensive guides and code examples to help you integrate quickly and efficiently.
faq
LocationIQ API — Frequently Asked Questions
How do I get started with the LocationIQ API?
Register for an OAuth token from the official documentation page.
Is the LocationIQ API really free?
Yes! The LocationIQ API offers a free tier. Rate limits apply but are generous for most use cases. Check the official docs for details.
Can I use this API in a commercial project?
Most free APIs support commercial use, but terms vary. Review the LocationIQ API's terms of service and licensing before using it commercially.
What programming languages can I use?
The LocationIQ API is a REST API — any language that can make HTTP requests works. Popular choices include JavaScript, Python, PHP, Java, and Go.
comments
Related Geocoding APIs
6Actinia Grass GIS
Actinia is an open source REST API for geographical data that uses GRASS GIS
administrative-divisons-db
Get all administrative divisions of a country
adresse.data.gouv.fr
Address database of France, geocoding and reverse
Airtel IP
IP Geolocation API. Collecting data from multiple sources
Apiip
Get location information by IP address
apilayer ipstack
Locate and identify website visitors by IP address