{"api":{"id":"api_00869d853dd7fc01812984db","slug":"canada-historical-weather","name":"Canada Historical Weather","description":"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.","kind":"ready_made","visibility":"public","domain":"api.weather.gc.ca","source_url":"https://api.weather.gc.ca/collections/climate-daily","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":20,"created_at":"2026-12-06T04:12:04.053Z","updated_at":"2026-12-06T04:12:04.053Z","runnable":true},"version":"1.0","contract_hash":"48d31a9991a96de4504b76630784098a25bdb151c2ae4c0a4198fd24fd97a2e2","fields":[{"name":"id","type":"string","description":"Environment Canada's id of this observation: the station's Climate ID (Station ID on monthly rows) with the year, month and day.","required":true,"coverage":1,"example":"6158731.2025.1.1"},{"name":"frequency","type":"string","description":"daily or monthly.","required":false,"coverage":1,"example":"daily"},{"name":"station_name","type":"string","description":"Name of the climate station, such as TORONTO INTL A.","required":false,"coverage":1,"example":"TORONTO INTL A"},{"name":"climate_id","type":"string","description":"Environment Canada's Climate ID of the station, such as 6158731.","required":false,"coverage":1,"example":"6158731"},{"name":"province","type":"string","description":"Two-letter province or territory code of the station, such as ON.","required":false,"coverage":1,"example":"ON"},{"name":"latitude","type":"number","description":"Latitude of the station.","required":false,"coverage":1,"example":43.67667},{"name":"longitude","type":"number","description":"Longitude of the station.","required":false,"coverage":1,"example":-79.63056},{"name":"date","type":"date","description":"Day of the observation in local standard time; the first day of the month on monthly rows.","required":false,"coverage":1,"example":"2025-01-01"},{"name":"max_temp_c","type":"number","description":"Highest temperature of the day in °C; the highest of the month on monthly rows.","required":false,"coverage":1,"example":2.8},{"name":"min_temp_c","type":"number","description":"Lowest temperature of the day in °C; the lowest of the month on monthly rows.","required":false,"coverage":1,"example":-0.2},{"name":"mean_temp_c","type":"number","description":"Mean temperature of the day in °C (midway between the high and the low); the mean of the daily means on monthly rows.","required":false,"coverage":1,"example":1.3},{"name":"total_precip_mm","type":"number","description":"Total precipitation in mm (rain plus the water in the snow) for the day, for the month on monthly rows.","required":false,"coverage":1,"example":0.7},{"name":"total_rain_mm","type":"number","description":"Daily rows: total rainfall in mm.","required":false,"coverage":1,"example":0.7},{"name":"total_snow_cm","type":"number","description":"Total snowfall in cm for the day, or for the month on monthly rows.","required":false,"coverage":1,"example":0},{"name":"snow_on_ground_cm","type":"number","description":"Depth of snow on the ground in cm; on the last day of the month on monthly rows.","required":false,"coverage":0.8,"example":0},{"name":"max_gust_kmh","type":"number","description":"Daily rows: speed of the day's strongest wind gust in km/h.","required":false,"coverage":1,"example":62},{"name":"max_gust_direction_deg","type":"integer","description":"Daily rows: direction the strongest gust came from, in degrees (90 east, 180 south, 270 west, 360 north).","required":false,"coverage":1,"example":300},{"name":"heating_degree_days","type":"number","description":"Heating degree days: how far the day's mean temperature fell below 18 °C; summed over the month on monthly rows.","required":false,"coverage":1,"example":16.7},{"name":"cooling_degree_days","type":"number","description":"Cooling degree days: how far the day's mean temperature rose above 18 °C; summed over the month on monthly rows.","required":false,"coverage":1,"example":0},{"name":"quality_flags","type":"array","description":"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.","required":false,"coverage":1,"example":["total_snow_cm: T (trace)"]}],"inputs":[{"name":"climate_ids","type":"array","description":"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"]},{"name":"station_name","type":"string","description":"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"},{"name":"province","type":"string","description":"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"},{"name":"start_date","type":"string","description":"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"},{"name":"end_date","type":"string","description":"Last day, as YYYY-MM-DD or YYYY-MM. Default: yesterday, or the last full month for monthly data.","example":"2026-11-30"},{"name":"frequency","type":"string","description":"daily for one row per station and day, monthly for one row per month.","default":"daily","example":"daily","enum":["daily","monthly"]}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"climate_id":{"description":"Environment Canada's Climate ID of the station, such as 6158731.","type":"string"},"cooling_degree_days":{"description":"Cooling degree days: how far the day's mean temperature rose above 18 °C; summed over the month on monthly rows.","type":"number"},"date":{"description":"Day of the observation in local standard time; the first day of the month on monthly rows.","format":"date","type":"string"},"frequency":{"description":"daily or monthly.","type":"string"},"heating_degree_days":{"description":"Heating degree days: how far the day's mean temperature fell below 18 °C; summed over the month on monthly rows.","type":"number"},"id":{"description":"Environment Canada's id of this observation: the station's Climate ID (Station ID on monthly rows) with the year, month and day.","type":"string"},"latitude":{"description":"Latitude of the station.","type":"number"},"longitude":{"description":"Longitude of the station.","type":"number"},"max_gust_direction_deg":{"description":"Daily rows: direction the strongest gust came from, in degrees (90 east, 180 south, 270 west, 360 north).","type":"integer"},"max_gust_kmh":{"description":"Daily rows: speed of the day's strongest wind gust in km/h.","type":"number"},"max_temp_c":{"description":"Highest temperature of the day in °C; the highest of the month on monthly rows.","type":"number"},"mean_temp_c":{"description":"Mean temperature of the day in °C (midway between the high and the low); the mean of the daily means on monthly rows.","type":"number"},"min_temp_c":{"description":"Lowest temperature of the day in °C; the lowest of the month on monthly rows.","type":"number"},"province":{"description":"Two-letter province or territory code of the station, such as ON.","type":"string"},"quality_flags":{"description":"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.","type":"array"},"snow_on_ground_cm":{"description":"Depth of snow on the ground in cm; on the last day of the month on monthly rows.","type":"number"},"station_name":{"description":"Name of the climate station, such as TORONTO INTL A.","type":"string"},"total_precip_mm":{"description":"Total precipitation in mm (rain plus the water in the snow) for the day, for the month on monthly rows.","type":"number"},"total_rain_mm":{"description":"Daily rows: total rainfall in mm.","type":"number"},"total_snow_cm":{"description":"Total snowfall in cm for the day, or for the month on monthly rows.","type":"number"}},"required":["id"],"title":"Canada Historical Weather","type":"object"},"samples":[{"id":"6158731.2025.1.1","frequency":"daily","station_name":"TORONTO INTL A","climate_id":"6158731","province":"ON","latitude":43.67667,"longitude":-79.63056,"date":"2025-01-01","max_temp_c":2.8,"min_temp_c":-0.2,"mean_temp_c":1.3,"total_precip_mm":0.7,"total_rain_mm":0.7,"total_snow_cm":0,"snow_on_ground_cm":null,"max_gust_kmh":62,"max_gust_direction_deg":300,"heating_degree_days":16.7,"cooling_degree_days":0,"quality_flags":["total_snow_cm: T (trace)"]},{"id":"6158731.2025.1.2","frequency":"daily","station_name":"TORONTO INTL A","climate_id":"6158731","province":"ON","latitude":43.67667,"longitude":-79.63056,"date":"2025-01-02","max_temp_c":0.4,"min_temp_c":-3.4,"mean_temp_c":-1.5,"total_precip_mm":1.8,"total_rain_mm":0,"total_snow_cm":1.8,"snow_on_ground_cm":0,"max_gust_kmh":59,"max_gust_direction_deg":260,"heating_degree_days":19.5,"cooling_degree_days":0,"quality_flags":["snow_on_ground_cm: T (trace)"]},{"id":"6158731.2025.1.3","frequency":"daily","station_name":"TORONTO INTL A","climate_id":"6158731","province":"ON","latitude":43.67667,"longitude":-79.63056,"date":"2025-01-03","max_temp_c":-0.3,"min_temp_c":-5.1,"mean_temp_c":-2.7,"total_precip_mm":0,"total_rain_mm":0,"total_snow_cm":0,"snow_on_ground_cm":1,"max_gust_kmh":60,"max_gust_direction_deg":290,"heating_degree_days":20.7,"cooling_degree_days":0,"quality_flags":["total_precip_mm: T (trace)","total_snow_cm: T (trace)"]}],"validation":{"checked_at":"2026-12-06T04:12:04.051Z","field_coverage":{"climate_id":1,"cooling_degree_days":1,"date":1,"frequency":1,"heating_degree_days":1,"id":1,"latitude":1,"longitude":1,"max_gust_direction_deg":1,"max_gust_kmh":1,"max_temp_c":1,"mean_temp_c":1,"min_temp_c":1,"province":1,"quality_flags":1,"snow_on_ground_cm":0.67,"station_name":1,"total_precip_mm":1,"total_rain_mm":1,"total_snow_cm":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-06T04:12:04.053Z","activated_at":"2026-12-06T04:12:04.053Z","active":true,"contract_hash":"48d31a9991a96de4504b76630784098a25bdb151c2ae4c0a4198fd24fd97a2e2","fields_count":20}]}