InfraNode.dev

GET /api/v1/cities/{slug}/air

Air quality per city (OpenAQ)

Current air-quality readings for a city from OpenAQ in the canonical envelope. The pollutant readings are in data, source and source_status in meta. Values are live (no intermediate store). Special cases: a disabled source returns 200 with data=null and 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"

Try it