Free Geocoding API for Developers
Convert any address, city, or place name into precise latitude and longitude coordinates. 3,000 free requests per day, no credit card required, standard GeoJSON output.
3,000
Free requests/day
<50ms
Edge response time
$0
No credit card needed
99.9%
Global uptime
Live API Interactive Demo
Click "Geocode" to test the live API response...
What is a Geocoding API?
A geocoding API converts human-readable street addresses and location names into geographic coordinates (latitude and longitude). Known as forward geocoding, this is the foundational service behind interactive maps, store locators, checkout address validation, route planning, and logistics dispatch.
Developer Quickstart & Code Examples
Send a standard GET request with your address query and receive standardized GeoJSON coordinates instantly:
cURL
# Free geocoding request
curl -X GET "https://api.latlng.work/api?q=Seattle,+WA" -H "X-Api-Key: YOUR_API_KEY"
JavaScript / Node.js
const response = await fetch('https://api.latlng.work/api?q=Tokyo', {
headers: { 'X-Api-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
const [lng, lat] = data.features[0].geometry.coordinates;
console.log(`Coordinates: ${lat}, ${lng}`);
Python
import requests
response = requests.get(
"https://api.latlng.work/api",
params={"q": "10 Downing St, London"},
headers={"X-Api-Key": "YOUR_API_KEY"}
)
feature = response.json()["features"][0]
print(feature["geometry"]["coordinates"]) # [longitude, latitude]
GeoJSON Response Structure
{
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [-122.3321, 47.6062]
},
"properties": {
"name": "Seattle",
"state": "Washington",
"country": "United States",
"postcode": "98104"
}
}]
}
Built for Developers, By Developers
Google Maps and Mapbox geocoding pricing can produce surprise monthly bills and complex enterprise negotiations. LatLng provides a developer-friendly alternative:
Key Platform Highlights
- Zero Credit Card Gatekeeping: Sign up with your email or GitHub and get instant API keys.
- Generous Free Tier: 3,000 forward geocoding + 300 reverse requests daily, renewed automatically every 24 hours.
- Worldwide Coverage: Continuously updated global coverage powered by OpenStreetMap.
- Low Latency: Deployed globally on Cloudflare Workers edge runtime for sub-50ms round-trips.
- CORS Enabled: Direct browser queries supported without needing intermediary proxy servers.
- Standard GeoJSON: Drop-in compatibility with Leaflet, MapLibre GL, Mapbox GL, and GIS tools.
Common Production Use Cases
- Store & Branch Locators: Convert customer input addresses to map pins in milliseconds.
- Delivery & Logistics: Clean, validate, and convert shipping addresses into routing coordinates.
- CRM & User Onboarding: Enrich user profiles with validated coordinates and regional data.
- Startups & Hackathons: Prototype and scale production MVPs with no upfront infrastructure cost.
Start Geocoding in 3 Simple Steps
1
Create free account
2
Copy your API key
3
Make requests
4
Scale anytime