CompatibilityaddressoperationId compat_nominatim_search
GET/compat/nominatim/search
Nominatim's search shape over this service's data: an array of objects with string coordinates and a boundingbox.
Two fields are deliberately not copied. licence carries ours, not OpenStreetMap's, because the data is not theirs — terms at https://www.oslew.com/licensing. osm_type and osm_id are null: there is no honest OSM object to name, and inventing one would make your data unreconcilable with the real thing. Everything a client reads — lat, lon, display_name, boundingbox, address, type — is real. Part of the address product.
Send Authorization: Bearer sk_live_…. The key's plan must include theaddress product; which plans do.
Explained in Migrating from another provider.
Example
A Nominatim search.
curl -G "https://api.oslew.com/compat/nominatim/search" \
-H "Authorization: Bearer $GEO_API_KEY" \
--data-urlencode 'q=Museo Soumaya' \
--data-urlencode 'limit=1'from oslew import Client
# The key is read from GEO_API_KEY.
client = Client(base_url="https://api.oslew.com")
answer = client.compat_nominatim_search("Museo Soumaya", limit=1)import { Client } from "@oslew/client";
// The key is read from GEO_API_KEY.
const client = new Client({ baseUrl: "https://api.oslew.com" });
const answer = await client.compat_nominatim_search("Museo Soumaya", { limit: 1 });HTTP/1.1 200 OK
content-type: application/json
ratelimit-limit: 100
ratelimit-remaining: 297
ratelimit-reset: 1
[
{
"address": {
"city": "Miguel Hidalgo",
"country_code": "mx",
"state": "CMX"
},
"addresstype": "yes",
"boundingbox": [
"19.440560412001677",
"19.440681794925386",
"-99.20472389693853",
"-99.20459517519265"
],
"category": "place",
"display_name": "Museo Soumaya, Miguel Hidalgo, CMX, MX",
"importance": 0.5,
"lat": "19.44062110346353",
"licence": "CDLA-Permissive-2.0 (overture-places)",
"lon": "-99.20465953606559",
"name": "Museo Soumaya",
"osm_id": null,
"osm_type": null,
"place_id": 348329,
"place_rank": 30,
"precision_m": 6.756173533775122,
"provenance": {
"licence": "CDLA-Permissive-2.0",
"name": "overture-places",
"release": "2026-08-19.0",
"served_by": "geospatial-alt"
},
"type": "yes"
}
]A real response, captured from the service at commit b8f4bde-dirty. Timing fields such as took_us differ on every call.
Query
| Name | Type | Description |
|---|---|---|
qqueryrequired | string | |
formatquery | string json | jsonv2 default jsonv2 | geojson and xml are refused rather than answered in a shape you did not ask for. |
limitquery | integer ≤ 10 default 10 | |
addressdetailsquery | string | The address object is included either way; the parts are already in the answer. |
countrycodesquery | string | Comma-separated ISO codes; results outside the set are dropped. |
Responses
200 — An array in Nominatim's shape.
object[]
With RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset(and their X-RateLimit-* aliases); see rate limits.
Refusals
Every refusal is a JSON object with an error string, except where noted.
| 400 | A format this service does not produce. |
| 401 | No key, or one that is unknown, revoked or suspended. |
| 403 | The key's plan does not include this route's product, or the request is larger than the plan allows. The body names the plan that does. |
| 429 | This product's bucket is empty: the key is going faster than its plan's sustained rate. Wait Retry-After seconds; nothing is used up. Carries Retry-After. |
| 503 | The pod cannot reach the control plane and its entitlements are too old to trust. Retry. |
A malformed query string or JSON body is refused by the framework before this route runs, in plain text rather than JSON; see errors.
Rendered from the OpenAPI document at commit b8f4bde-dirty; the same document is served at/v1/openapi.json and generates both clients.