GET
/api/v1/osm/nodes Requires API Key Search OpenStreetMap (OSM) spatial features, local amenities, transport nodes, schools, parks, EV charging stations, and commercial points of interest across the United Kingdom. Supports both radial distance queries (latitude/longitude with radius) and bounding box queries.
Request Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| lat | float | Conditional* | Center latitude (WGS84). Required for radial search. |
| lon | float | Conditional* | Center longitude (WGS84). Required for radial search. |
| radius | integer | Optional | Search radius in meters (Default: 1000m, Min: 1m, Max: 50,000m). |
| min_lat, max_lat | float | Conditional* | Bounding box latitude limits. Required if radial lat/lon are omitted. |
| min_lon, max_lon | float | Conditional* | Bounding box longitude limits. Required if radial lat/lon are omitted. |
| tags[key] | array / dict | Optional | OSM key-value tag filters e.g. tags[amenity]=pub, tags[leisure]=park. |
| limit | integer | Optional | Maximum number of results to return (Default: 100, Max: 1000). |
| live | boolean | Optional | Set to 1 / true to query the live Overpass API fallback when local index lacks obscure tags. |
* Query must contain either radial coordinates (lat + lon) or bounding box limits (min_lat, max_lat, min_lon, max_lon).
Code Examples
curl -X GET "https://postcodewise.co.uk/api/v1/osm/nodes?lat=51.5074&lon=-0.1278&radius=1000&tags%5Bamenity%5D=pub&limit=20" \ -H "X-API-Key: pk_test_sample_key_99"
