{"api":{"id":"api_a257b9813924b7a568bf6814","slug":"canada-air-quality-health-index","name":"Canada Air Quality Health Index API","description":"Official Air Quality Health Index (AQHI) readings and forecasts for about 130 Canadian communities: latest or recent hourly values with risk level, plus the forecast for tonight and the next days.","kind":"ready_made","visibility":"public","domain":"api.weather.gc.ca","source_url":"https://api.weather.gc.ca/collections/aqhi-observations-realtime/items","category":"environment","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":12,"created_at":"2026-12-06T03:57:27.615Z","updated_at":"2026-12-06T03:57:27.615Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"id","type":"string","description":"Source id of the reading or forecast row.","required":true,"coverage":1,"example":"AQ_OBS-AAEOU-20261206030000"},{"name":"record_kind","type":"string","description":"observation for a measured reading, forecast for a forecast period.","required":false,"coverage":1,"example":"observation"},{"name":"location_id","type":"string","description":"AQHI location code, such as AAEOU.","required":false,"coverage":1,"example":"AAEOU"},{"name":"location_name","type":"string","description":"Name of the community, such as Corner Brook.","required":false,"coverage":1,"example":"Corner Brook"},{"name":"latitude","type":"number","description":"Latitude of the location.","required":false,"coverage":1,"example":48.9521},{"name":"longitude","type":"number","description":"Longitude of the location.","required":false,"coverage":1,"example":-57.922167},{"name":"observed_at","type":"datetime","description":"Time of the reading in UTC (readings only).","required":false,"coverage":0.6,"example":"2026-12-06T03:00:00.000Z"},{"name":"published_at","type":"datetime","description":"When the forecast was published, in UTC (forecasts only).","required":false,"coverage":0.4,"example":"2026-12-05T20:30:00.000Z"},{"name":"forecast_period","type":"string","description":"Period a forecast covers, such as Tonight or Tomorrow (forecasts only).","required":false,"coverage":0.4,"example":"Tonight"},{"name":"aqhi","type":"number","description":"The Air Quality Health Index value, 1 (low risk) to 10 or more (very high risk).","required":false,"coverage":1,"example":1.65},{"name":"risk_level","type":"string","description":"Official band of the value: Low, Moderate, High or Very high.","required":false,"coverage":1,"example":"Low"},{"name":"aqhi_type","type":"string","description":"The source's type of the row, such as AQHI-Observation.","required":false,"coverage":1,"example":"AQHI-Observation"}],"inputs":[{"name":"location_ids","type":"array","description":"AQHI location codes, such as AAEOU (Corner Brook) or DAFQX (Bathurst). Leave empty for the newest reading of every location.","example":["AAEOU","DAFQX","ABFQA"]},{"name":"latest_only","type":"boolean","description":"True for only the newest reading per location; false for the recent hourly history.","default":true,"example":true},{"name":"max_results","type":"integer","description":"Most readings per location when latest_only is false, newest first (default 24, at most 500).","default":24,"example":24},{"name":"include_forecast","type":"boolean","description":"True to also return the official forecast periods for each location.","default":false,"example":false}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"aqhi":{"description":"The Air Quality Health Index value, 1 (low risk) to 10 or more (very high risk).","type":"number"},"aqhi_type":{"description":"The source's type of the row, such as AQHI-Observation.","type":"string"},"forecast_period":{"description":"Period a forecast covers, such as Tonight or Tomorrow (forecasts only).","type":"string"},"id":{"description":"Source id of the reading or forecast row.","type":"string"},"latitude":{"description":"Latitude of the location.","type":"number"},"location_id":{"description":"AQHI location code, such as AAEOU.","type":"string"},"location_name":{"description":"Name of the community, such as Corner Brook.","type":"string"},"longitude":{"description":"Longitude of the location.","type":"number"},"observed_at":{"description":"Time of the reading in UTC (readings only).","format":"date-time","type":"string"},"published_at":{"description":"When the forecast was published, in UTC (forecasts only).","format":"date-time","type":"string"},"record_kind":{"description":"observation for a measured reading, forecast for a forecast period.","type":"string"},"risk_level":{"description":"Official band of the value: Low, Moderate, High or Very high.","type":"string"}},"required":["id"],"title":"Canada Air Quality Health Index API","type":"object"},"samples":[{"id":"AQ_OBS-AAEOU-20261206030000","record_kind":"observation","location_id":"AAEOU","location_name":"Corner Brook","latitude":48.9521,"longitude":-57.922167,"observed_at":"2026-12-06T03:00:00.000Z","published_at":null,"forecast_period":null,"aqhi":1.65,"risk_level":"Low","aqhi_type":"AQHI-Observation"},{"id":"AQ_OBS-DAFQX-20261206030000","record_kind":"observation","location_id":"DAFQX","location_name":"Bathurst","latitude":47.6261,"longitude":-65.6283,"observed_at":"2026-12-06T03:00:00.000Z","published_at":null,"forecast_period":null,"aqhi":1.73,"risk_level":"Low","aqhi_type":"AQHI-Observation"},{"id":"AQ_OBS-ABFQA-20261206020000","record_kind":"observation","location_id":"ABFQA","location_name":"Labrador City","latitude":52.9605694,"longitude":-66.9365972,"observed_at":"2026-12-06T02:00:00.000Z","published_at":null,"forecast_period":null,"aqhi":2.15,"risk_level":"Low","aqhi_type":"AQHI-Observation"}],"validation":{"checked_at":"2026-12-06T03:57:27.599Z","field_coverage":{"aqhi":1,"aqhi_type":1,"forecast_period":0,"id":1,"latitude":1,"location_id":1,"location_name":1,"longitude":1,"observed_at":1,"published_at":0,"record_kind":1,"risk_level":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_a257b9813924b7a568bf6814/run","openapi":"https://pullrow.dev/v1/apis/api_a257b9813924b7a568bf6814/openapi.json","contract":"https://pullrow.dev/v1/apis/api_a257b9813924b7a568bf6814/contract.json","page":"https://pullrow.dev/catalog/canada-air-quality-health-index"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":0.5,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["Readings are hourly and published by Environment and Climate Change Canada a little after each hour; the source keeps only the last few days (about 9,000 readings across all locations). The newest reading of a place can be missing while its station is offline.","With no location_ids you get the newest reading of every location; recent history (latest_only false) needs location_ids. At most 50 locations and 500 readings per location per run.","Forecasts are the official period forecasts of the latest publication (tonight, tomorrow, tomorrow night, day 3): one row each. Not every location has a forecast.","The risk level is the official AQHI band: 1-3 Low, 4-6 Moderate, 7-10 High, above 10 Very high. Values in readings have two decimals; forecasts are whole numbers.","Requests are spaced about half a second apart, so a run over many locations takes a minute or more.","Data from Environment and Climate Change Canada under the Open Government Licence - Canada; credit Environment and Climate Change Canada as the source. It does not endorse this API."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"id","label":"ID","description":"Source id of the reading or forecast row.","group":"Technical","shown":false,"written":false},{"name":"record_kind","label":"Record kind","description":"observation for a measured reading, forecast for a forecast period.","group":"Basics","shown":true,"written":false},{"name":"location_id","label":"Location ID","description":"AQHI location code, such as AAEOU.","group":"Technical","shown":false,"written":false},{"name":"location_name","label":"Location name","description":"Name of the community, such as Corner Brook.","group":"Location","shown":true,"written":false},{"name":"latitude","label":"Latitude","description":"Latitude of the location.","group":"Location","shown":true,"written":false},{"name":"longitude","label":"Longitude","description":"Longitude of the location.","group":"Location","shown":true,"written":false},{"name":"observed_at","label":"Observed","description":"Time of the reading in UTC (readings only).","group":"Dates","shown":true,"written":false},{"name":"published_at","label":"Published","description":"When the forecast was published, in UTC (forecasts only).","group":"Dates","shown":true,"written":false},{"name":"forecast_period","label":"Forecast period","description":"Period a forecast covers, such as Tonight or Tomorrow (forecasts only).","group":"Basics","shown":true,"written":false},{"name":"aqhi","label":"Aqhi","description":"The Air Quality Health Index value, 1 (low risk) to 10 or more (very high risk).","group":"Basics","shown":true,"written":false},{"name":"risk_level","label":"Risk level","description":"Official band of the value: Low, Moderate, High or Very high.","group":"Basics","shown":true,"written":false},{"name":"aqhi_type","label":"Aqhi type","description":"The source's type of the row, such as AQHI-Observation.","group":"Basics","shown":true,"written":false}],"inputs":[{"name":"location_ids","label":"Location IDs","help":"AQHI location codes, such as AAEOU (Corner Brook) or DAFQX (Bathurst). Leave empty for the newest reading of every location.","example":"AAEOU, DAFQX, ABFQA","written":false},{"name":"latest_only","label":"Latest only","help":"True for only the newest reading per location; false for the recent hourly history.","example":"true","written":false},{"name":"max_results","label":"Maximum results","help":"Most readings per location when latest_only is false, newest first (default 24, at most 500).","example":"24","written":false},{"name":"include_forecast","label":"Include forecast","help":"True to also return the official forecast periods for each location.","example":"false","written":false}]}},"incidents":[]}