GET /api/v1/cities/{slug}/demographics
Demographic time series per city (GENESIS/Regionalstatistik, Tier A)
Returns a city's demographic base values and time series from the GENESIS/Regionalstatistik POST API in the canonical envelope. Access is account-bound: without stored credentials or with the source disabled the endpoint responds with 200 source_status="disabled". Tier A. Dead upstream with no cache -> 503 with a hint.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
slug | path | yes | string |
Code samples
curl "https://infranode.dev/api/v1/cities/hamburg/demographics"const res = await fetch("https://infranode.dev/api/v1/cities/hamburg/demographics");
const data = await res.json();
console.log(data);import httpx
res = httpx.get("https://infranode.dev/api/v1/cities/hamburg/demographics")
res.raise_for_status()
print(res.json())