GET /api/v1/cities/{slug}/energy
Energy installations per city (MaStR, Tier A)
Returns a city's energy installations (PV/wind/storage/biogas) from the offline-prepared MaStR SQLite store in the canonical envelope. No upstream in the request path; the request only reads the prepared store. Disabled -> 200 source_status="disabled". Batch not yet run -> 200 source_status="not_ingested" (never 5xx).
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
slug | path | yes | string |
Code samples
curl "https://infranode.dev/api/v1/cities/hamburg/energy"const res = await fetch("https://infranode.dev/api/v1/cities/hamburg/energy");
const data = await res.json();
console.log(data);import httpx
res = httpx.get("https://infranode.dev/api/v1/cities/hamburg/energy")
res.raise_for_status()
print(res.json())