GET /api/v1/cities/{slug}/population-density
Population density per city (Census 2022 grid, Tier A)
A city's population density from the official Census 2022 100m grid, aggregated exactly over the grid cells with the city's AGS: total inhabitants, populated 100m cells, populated area (km²) and density (inhabitants/km² over the populated area, not the total area). Full coverage (all cities); no grid cells -> 200 source_status="no_data". DL-DE/BY 2.0. Disabled -> 200 source_status="disabled".
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
slug | path | yes | string |
Code samples
curl "https://infranode.dev/api/v1/cities/hamburg/population-density"const res = await fetch("https://infranode.dev/api/v1/cities/hamburg/population-density");
const data = await res.json();
console.log(data);import httpx
res = httpx.get("https://infranode.dev/api/v1/cities/hamburg/population-density")
res.raise_for_status()
print(res.json())