GET /api/v1/cities/{slug}/pois
POIs per city, filtered by type (OSM/Overpass, Tier B)
Returns a city's POIs from OpenStreetMap (via Overpass) in the canonical envelope, filtered by the type query parameter. The type is checked against a fixed list; an unknown type triggers 422 (no raw input reaches the Overpass query). Tier B (copyleft). Disabled -> 200 source_status="disabled".
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
slug | path | yes | string | |
type | query | yes | string | POI type from the allowed list (e.g. hospital, school, pharmacy). |
Code samples
curl "https://infranode.dev/api/v1/cities/hamburg/pois?type=example"const res = await fetch("https://infranode.dev/api/v1/cities/hamburg/pois?type=example");
const data = await res.json();
console.log(data);import httpx
res = httpx.get("https://infranode.dev/api/v1/cities/hamburg/pois?type=example")
res.raise_for_status()
print(res.json())