Free APIs For You
Free APIs For You
GeocodingFree

LocationIQAPI Documentation

Provides forward/reverse geocoding and batch geocoding

specifications

AuthapiKey
HTTPSYes
CORSYes
Rate LimitUnknown
PricingFree

quick start

Forward geocode an address

JavaScript
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);
Python
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

0/2000