Nominatim API
Overview
Nominatim is a free geocoding API powered by OpenStreetMap data that lets you convert addresses to coordinates (forward geocoding) and coordinates back to addresses (reverse geocoding). It covers the entire world and requires no API key for low-volume use. It is a great choice for open-source projects that need location lookup without licensing costs.
Beginner Tip
Always set a custom User-Agent header with your app name and contact email — Nominatim requires it and will block requests without one. Limit your requests to 1 per second to comply with the usage policy.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from Nominatim",
"description": "Provides worldwide forward / reverse geocoding",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
[].place_id Internal Nominatim identifier for the place [].display_name Full formatted address string for the result [].lat Latitude of the location as a string [].lon Longitude of the location as a string [].type OSM element type (e.g., attraction, city, country) [].importance Relevance score from 0 to 1; higher means more prominent result Implementation Example
const url = "https://nominatim.org/release-docs/latest/api/Overview/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Alternatives to Nominatim
Technical alternatives for different use cases.
Free OpenStreetMap-based geocoding, self-hostable
Structured US address parsing and verification
Self-hosted geocoding without API limits
Similar APIs
View All →administrative-divisons-db
⭐ Beginner's PickThe Administrative Divisions DB API provides a structured list of all administrative divisions (states, provinces, regions, cities) for countries around the world.
adresse.data.gouv.fr
adresse.data.gouv.fr provides programmatic access to address database of france, geocoding and reverse via REST API.
Airtel IP
⭐ Beginner's PickAirtel IP is a free, no-auth IP geolocation API that aggregates data from multiple sources to return the country associated with any given IP address.
bng2latlong
⭐ Beginner's Pickbng2latlong is a simple, free API that converts British National Grid (OSGB36) easting and northing coordinates into standard WGS84 latitude and longitude.
Cartes.io
⭐ Beginner's PickCartes.io is a free API that lets you create maps and add custom markers without signing up.