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.

Try it
Ready-made, maintained by usRecords, 20 fieldsv1.0

Data from api.weather.gc.ca/collections/climate-daily

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

Climate IDsoptional
Climate IDs of the stations, such as 6158731 (Toronto Pearson) or 6158355 (Toronto City). A station_name search returns them in climate_id. One per line, or separated by commas.
Example: 6158731, 6158355
Station nameoptional
Find stations whose name contains these whole words, such as TORONTO or VANCOUVER INTL. Only stations that reported data in the chosen period are read.
Example: TORONTO
Provinceoptional
Two-letter province or territory code, such as ON or BC: narrows a station_name search, or alone reads every station there that reported data in the period.
Example: ON
Start dateoptional
First day, as YYYY-MM-DD (a month such as 2026-01 works too). Default: 30 days up to end_date for daily data, 12 months for monthly data.
Example: 2026-11-01
End dateoptional
Last day, as YYYY-MM-DD or YYYY-MM. Default: yesterday, or the last full month for monthly data.
Example: 2026-11-30
Frequencyoptional
daily for one row per station and day, monthly for one row per month.

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
Endpoint
POSThttps://pullrow.dev/v1/apis/canada-historical-weather/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
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.

climate_idslist
Climate IDs of the stations, such as 6158731 (Toronto Pearson) or 6158355 (Toronto City). A station_name search returns them in climate_id.
example: 6158731, 6158355
station_nametext
Find stations whose name contains these whole words, such as TORONTO or VANCOUVER INTL. Only stations that reported data in the chosen period are read.
example: TORONTO
provincetext
Two-letter province or territory code, such as ON or BC: narrows a station_name search, or alone reads every station there that reported data in the period.
example: ON
start_datetext
First day, as YYYY-MM-DD (a month such as 2026-01 works too). Default: 30 days up to end_date for daily data, 12 months for monthly data.
example: 2026-11-01
end_datetext
Last day, as YYYY-MM-DD or YYYY-MM. Default: yesterday, or the last full month for monthly data.
example: 2026-11-30
frequencytext
daily for one row per station and day, monthly for one row per month.
default: dailyexample: dailyone of: daily, monthly

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 nameTypeShown on this page asFilled
idtextID (hidden)3 of 3
frequencytextFrequency3 of 3
station_nametextStation name3 of 3
climate_idtextClimate ID (hidden)3 of 3
provincetextProvince3 of 3
latitudenumberLatitude3 of 3
longitudenumberLongitude3 of 3
datedateDate3 of 3
max_temp_cnumberMaximum temp c3 of 3
min_temp_cnumberMinimum temp c3 of 3
mean_temp_cnumberMean temp c3 of 3
total_precip_mmnumberTotal precip (mm)3 of 3
total_rain_mmnumberTotal rain (mm)3 of 3
total_snow_cmnumberTotal snow (cm)3 of 3
snow_on_ground_cmnumberSnow on ground (cm)2 of 3
max_gust_kmhnumberMaximum gust kmh3 of 3
max_gust_direction_degnumberMaximum gust direction deg3 of 3
heating_degree_daysnumberHeating degree days3 of 3
cooling_degree_daysnumberCooling degree days3 of 3
quality_flagslistQuality flags3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordFrequencyStation nameMaximum temp cMinimum temp cMean temp cTotal precip (mm)Total rain (mm)Total snow (cm)Snow on ground (cm)Maximum gust kmhMaximum gust direction degHeating degree daysCooling degree daysQuality flagsProvinceLatitudeLongitudeDate
1dailyTORONTO INTL A2.8-0.21.30.70.70—6230016.70total_snow_cm: T (trace)ON43.67667-79.63056Jan 1, 2025
2dailyTORONTO INTL A0.4-3.4-1.51.801.805926019.50snow_on_ground_cm: T (trace)ON43.67667-79.63056Jan 2, 2025
3dailyTORONTO INTL A-0.3-5.1-2.700016029020.70total_precip_mm: T (trace), total_snow_cm: T (trace)ON43.67667-79.63056Jan 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.
Known limits
  • 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.