Canada Historical Weather
Official weather history from Environment and Climate Change Canada's climate stations, daily or monthly: high, low and mean temperature, precipitation, rain, snow, snow on the ground, wind gusts, heating and cooling degree days and quality flags, by Climate ID or by station name and province.
$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.
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-historical-weather/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"climate_ids":["6158731","6158355"]},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
20 fields: 18 here, 2 technical ones under Technical details.
Basics
- Frequency
daily or monthly.
Example daily
- Station name
Name of the climate station, such as TORONTO INTL A.
Example TORONTO INTL A
- Maximum temp c
Highest temperature of the day in °C; the highest of the month on monthly rows.
Example 2.8
- Minimum temp c
Lowest temperature of the day in °C; the lowest of the month on monthly rows.
Example -0.2
- Mean temp c
Mean temperature of the day in °C (midway between the high and the low); the mean of the daily means on monthly rows.
Example 1.3
- Total precip (mm)
Total precipitation in mm (rain plus the water in the snow) for the day, for the month on monthly rows.
Example 0.7
- Total rain (mm)
Daily rows: total rainfall in mm.
Example 0.7
- Total snow (cm)
Total snowfall in cm for the day, or for the month on monthly rows.
Example 0
- Snow on ground (cm)
Depth of snow on the ground in cm; on the last day of the month on monthly rows.
Example 0
- Maximum gust kmh
Daily rows: speed of the day's strongest wind gust in km/h.
Example 62
- Maximum gust direction deg
Daily rows: direction the strongest gust came from, in degrees (90 east, 180 south, 270 west, 360 north).
Example 300
- Heating degree days
Heating degree days: how far the day's mean temperature fell below 18 °C; summed over the month on monthly rows.
Example 16.7
- Cooling degree days
Cooling degree days: how far the day's mean temperature rose above 18 °C; summed over the month on monthly rows.
Example 0
- Quality flags
Notes on values in this row as field: code (meaning), such as total_snow_cm: T (trace) or max_gust_kmh: M (missing); on monthly rows, values based on fewer days than the month has.
Example total_snow_cm: T (trace)
Location
- Province
Two-letter province or territory code of the station, such as ON.
Example ON
- Latitude
Latitude of the station.
Example 43.67667
- Longitude
Longitude of the station.
Example -79.63056
Dates
- Date
Day of the observation in local standard time; the first day of the month on monthly rows.
Example Jan 1, 2025
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
idEnvironment Canada's id of this observation: the station's Climate ID (Station ID on monthly rows) with the year, month and day. - Climate ID
climate_idEnvironment Canada's Climate ID of the station, such as 6158731.
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 |
frequency | text | Frequency | 3 of 3 |
station_name | text | Station name | 3 of 3 |
climate_id | text | Climate ID (hidden) | 3 of 3 |
province | text | Province | 3 of 3 |
latitude | number | Latitude | 3 of 3 |
longitude | number | Longitude | 3 of 3 |
date | date | Date | 3 of 3 |
max_temp_c | number | Maximum temp c | 3 of 3 |
min_temp_c | number | Minimum temp c | 3 of 3 |
mean_temp_c | number | Mean temp c | 3 of 3 |
total_precip_mm | number | Total precip (mm) | 3 of 3 |
total_rain_mm | number | Total rain (mm) | 3 of 3 |
total_snow_cm | number | Total snow (cm) | 3 of 3 |
snow_on_ground_cm | number | Snow on ground (cm) | 2 of 3 |
max_gust_kmh | number | Maximum gust kmh | 3 of 3 |
max_gust_direction_deg | number | Maximum gust direction deg | 3 of 3 |
heating_degree_days | number | Heating degree days | 3 of 3 |
cooling_degree_days | number | Cooling degree days | 3 of 3 |
quality_flags | list | Quality flags | 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 | Frequency | Station name | Maximum temp c | Minimum temp c | Mean temp c | Total precip (mm) | Total rain (mm) | Total snow (cm) | Snow on ground (cm) | Maximum gust kmh | Maximum gust direction deg | Heating degree days | Cooling degree days | Quality flags | Province | Latitude | Longitude | Date |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | daily | TORONTO INTL A | 2.8 | -0.2 | 1.3 | 0.7 | 0.7 | 0 | — | 62 | 300 | 16.7 | 0 | total_snow_cm: T (trace) | ON | 43.67667 | -79.63056 | Jan 1, 2025 |
| 2 | daily | TORONTO INTL A | 0.4 | -3.4 | -1.5 | 1.8 | 0 | 1.8 | 0 | 59 | 260 | 19.5 | 0 | snow_on_ground_cm: T (trace) | ON | 43.67667 | -79.63056 | Jan 2, 2025 |
| 3 | daily | TORONTO INTL A | -0.3 | -5.1 | -2.7 | 0 | 0 | 0 | 1 | 60 | 290 | 20.7 | 0 | total_precip_mm: T (trace), total_snow_cm: T (trace) | ON | 43.67667 | -79.63056 | Jan 3, 2025 |
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.
- Each frequency fills its own fields: daily rows carry temperatures, rain, snow, snow depth, gusts and degree days; monthly rows carry the month's summary (temperatures, precipitation, snowfall, snow on the ground and degree days).
- Stations measure different things: many automatic stations report no rain and snow split, gusts or snow depth, so those fields stay empty for them. Days with no measurement at all are left out.
- A station_name or province search reads at most 300 stations that reported data in the chosen period, one after another. At most 10,000 records per run.
- Environment Canada asks heavy users to stay near one request per second overall, so requests are spaced about a second apart: a province-wide search takes a few minutes.
- Data from Environment and Climate Change Canada under the Open Government Licence – Canada; credit Environment and Climate Change Canada as the source. Environment Canada does not endorse this API.
- The newest day is often blank or provisional and Environment Canada revises recent values as they are checked, so use past dates for complete data. Hourly observations are not included.
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.