GET /api/v1/live/{slug}/air
Live alias for OpenAQ air quality
Mirrors the existing OpenAQ air endpoint under the live category. Same envelope contract as /api/v1/cities/{slug}/air, same handler. The old path remains as an alias and is marked deprecated (Deprecation header and deprecated=true).
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
slug | path | yes | string |
Code samples
curl "https://infranode.dev/api/v1/live/hamburg/air"const res = await fetch("https://infranode.dev/api/v1/live/hamburg/air");
const data = await res.json();
console.log(data);import httpx
res = httpx.get("https://infranode.dev/api/v1/live/hamburg/air")
res.raise_for_status()
print(res.json()) Try it
No live console is available for this endpoint. It is an operational or demo operation (for example a forced error or key mint) and is only documented here. Use the code samples above to call it directly.