Canada Air Quality Health Index API
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.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from api.weather.gc.ca/collections/aqhi-observations-realtime/items
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/canada-air-quality-health-index/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"location_ids":["AAEOU","DAFQX","ABFQA"]},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
12 fields: 10 here, 2 technical ones under Technical details.
Basics
- Record kind
observation for a measured reading, forecast for a forecast period.
Example observation
- Forecast period
Period a forecast covers, such as Tonight or Tomorrow (forecasts only).
Example Tonight
- Aqhi
The Air Quality Health Index value, 1 (low risk) to 10 or more (very high risk).
Example 1.65
- Risk level
Official band of the value: Low, Moderate, High or Very high.
Example Low
- Aqhi type
The source's type of the row, such as AQHI-Observation.
Example AQHI-Observation
Location
- Location name
Name of the community, such as Corner Brook.
Example Corner Brook
- Latitude
Latitude of the location.
Example 48.9521
- Longitude
Longitude of the location.
Example -57.922167
Dates
- Observed
Time of the reading in UTC (readings only).
Example Dec 6, 2026
- Published
When the forecast was published, in UTC (forecasts only).
Example Dec 5, 2026
Technical detailsField names and types for developers, and the 2 fields hidden above
Hidden by default
These 2 fields come with each record too. They are internal codes, notes about how the record was read or a copy of what was searched for, so the lists above leave them out.
- ID
idSource id of the reading or forecast row. - Location ID
location_idAQHI location code, such as AAEOU.
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
id | text | ID (hidden) | 3 of 3 |
record_kind | text | Record kind | 3 of 3 |
location_id | text | Location ID (hidden) | 3 of 3 |
location_name | text | Location name | 3 of 3 |
latitude | number | Latitude | 3 of 3 |
longitude | number | Longitude | 3 of 3 |
observed_at | date and time | Observed | 3 of 3 |
published_at | date and time | Published | 0 of 3 |
forecast_period | text | Forecast period | 0 of 3 |
aqhi | number | Aqhi | 3 of 3 |
risk_level | text | Risk level | 3 of 3 |
aqhi_type | text | Aqhi type | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Record kind | Forecast period | Aqhi | Risk level | Aqhi type | Location name | Latitude | Longitude | Observed | Published |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | observation | — | 1.65 | Low | AQHI-Observation | Corner Brook | 48.9521 | -57.922167 | Dec 6, 2026 | — |
| 2 | observation | — | 1.73 | Low | AQHI-Observation | Bathurst | 47.6261 | -65.6283 | Dec 6, 2026 | — |
| 3 | observation | — | 2.15 | Low | AQHI-Observation | Labrador City | 52.960569 | -66.936597 | Dec 6, 2026 | — |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- 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.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.