GET /search
openstreetmap.org:nominatim-api
Operation ID: search
Auth: unknown
Description
Search for locations by name or address. Returns matching places with coordinates and address details.
Parameters (29)
(string, query, optional)
Preferred language for results (e.g., 'en,fr')
(integer, query, optional, default: 0)
Include address breakdown in response (0 or 1)
Constraints: {'enum': [0, 1]}
(string, query, optional)
Structured query: amenity name (e.g., 'restaurant'). Cannot be combined with 'q' parameter.
(integer, query, optional, default: 0)
Strictly restrict to viewbox (0 or 1)
Constraints: {'enum': [0, 1]}
(string, query, optional)
Structured query: city name. Cannot be combined with 'q' parameter.
(string, query, optional)
Structured query: country name. Cannot be combined with 'q' parameter.
(string, query, optional)
Comma-separated ISO 3166-1alpha2 country codes to restrict search (e.g., 'gb,de')
(string, query, optional)
Structured query: county name. Cannot be combined with 'q' parameter.
(integer, query, optional, default: 0)
Return HTML debug info (0 or 1)
Constraints: {'enum': [0, 1]}
(integer, query, optional, default: 1)
Remove duplicate results (0 or 1)
Constraints: {'enum': [0, 1]}
(string, query, optional)
Contact email (required for heavy usage)
(string, query, optional)
Comma-separated place IDs to exclude from results
(integer, query, optional, default: 0)
Include additional OSM tags (0 or 1)
Constraints: {'enum': [0, 1]}
(string, query, optional)
Restrict to feature type: country, state, city, settlement
Constraints: {'enum': ['country', 'state', 'city', 'settlement']}
(string, query, optional, default: jsonv2)
Response format
Constraints: {'enum': ['xml', 'json', 'jsonv2', 'geojson', 'geocodejson']}
(string, query, optional)
JSONP callback function name
(string, query, optional)
Comma-separated layer filters: address, poi, railway, natural, manmade
(integer, query, optional, default: 10)
Maximum number of results (1-40)
Constraints: {'minimum': 1, 'maximum': 40}
(integer, query, optional, default: 0)
Include full list of names (0 or 1)
Constraints: {'enum': [0, 1]}
(integer, query, optional, default: 0)
Return geometry as GeoJSON (0 or 1)
Constraints: {'enum': [0, 1]}
(integer, query, optional, default: 0)
Return geometry as KML (0 or 1)
Constraints: {'enum': [0, 1]}
(integer, query, optional, default: 0)
Return geometry as SVG (0 or 1)
Constraints: {'enum': [0, 1]}
(integer, query, optional, default: 0)
Return geometry as WKT (0 or 1)
Constraints: {'enum': [0, 1]}
(number, query, optional, default: 0.0)
Simplify geometry tolerance in degrees (default: 0.0)
(string, query, optional)
Structured query: postal code. Cannot be combined with 'q' parameter.
(string, query, optional)
Free-form query string (e.g., 'Cafe Paris, New York'). Cannot be combined with structured query parameters.
(string, query, optional)
Structured query: state name. Cannot be combined with 'q' parameter.
(string, query, optional)
Structured query: street name. Cannot be combined with 'q' parameter.
(string, query, optional)
Bias search to bounding box: x1,y1,x2,y2 (longitude, latitude)
Examples (3)
| Title | Type | URL | Action |
|---|---|---|---|
| Forward Geocoding | openapi-spec |
https://nominatim.openstreetmap.org/search?q=Berlin&countrycodes=de,us |
|
| Forward Geocoding | openapi-spec |
https://nominatim.openstreetmap.org/search?q=London, UK |
|
| Forward Geocoding | probe-gate |
https://nominatim.openstreetmap.org/search?q=London%2C+UK&format=json&limit=10&addressdetails=0&extratags=0&namedetails=0 |
Probe History
Status Codes
| Time | Status | Latency | Size |
|---|---|---|---|
| 2026-03-23 10:39:45.178180 | 200 | 226ms | |
| 2026-03-23 09:38:15.084403 | 200 | 303ms | |
| 2026-03-23 09:33:59.341673 | 200 | 673ms |
Response Changes
| When | Old | New |
|---|---|---|
| 2026-03-23 09:38:15.084403 | fa7c3c240d10 |
6f1b6b73cd2c |