{"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},"version":"1.0","contract_hash":"9a774021cc70c4f8a0f5f1547c45e9b1368c7bb1d24b691adcddd4b7044e27b2","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},"changelog":[{"version":"1.0","change_kind":"initial","note":"Imported from the ready-made source catalog.","created_at":"2026-12-06T03:57:27.615Z","activated_at":"2026-12-06T03:57:27.615Z","active":true,"contract_hash":"9a774021cc70c4f8a0f5f1547c45e9b1368c7bb1d24b691adcddd4b7044e27b2","fields_count":12}]}