GET /api/v1/cities/{slug}/air-uba
Air quality per city (Federal Environment Agency)
Air-quality readings for a city from the German Federal Environment Agency (UBA) air-data API in the canonical envelope. The official path, clearly separated from the OpenAQ endpoint (/air): use this one for authority-validated values. Special cases: a disabled source returns 200 with source_status="disabled"; a dead upstream with no cache returns 503 with a hint to GET /api/v1/health.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
slug | path | yes | string |
Code samples
curl "https://infranode.dev/api/v1/cities/hamburg/air-uba"const res = await fetch("https://infranode.dev/api/v1/cities/hamburg/air-uba");
const data = await res.json();
console.log(data);import httpx
res = httpx.get("https://infranode.dev/api/v1/cities/hamburg/air-uba")
res.raise_for_status()
print(res.json())