Climate monthly
curl --request POST \
--url https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/climate-monthly \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"climate_id": "6158355"
}
'import requests
url = "https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/climate-monthly"
payload = { "climate_id": "6158355" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({climate_id: '6158355'})
};
fetch('https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/climate-monthly', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/climate-monthly",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'climate_id' => '6158355'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/climate-monthly"
payload := strings.NewReader("{\n \"climate_id\": \"6158355\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/climate-monthly")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"climate_id\": \"6158355\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/climate-monthly")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"climate_id\": \"6158355\"\n}"
response = http.request(request)
puts response.read_body{
"attribution": "Data Source: Environment and Climate Change Canada",
"count": 12,
"end": "2004-12",
"lang": "en",
"licence_url": "https://eccc-msc.github.io/open-data/licence/readme_en/",
"months": [
{
"bright_sunshine_hours": null,
"cooling_degree_days": 0,
"days_with_precip_ge_1mm": 10,
"days_with_valid_mean_temp": 31,
"days_with_valid_precip": 31,
"extreme_max_temp_c": 13.3,
"extreme_min_temp_c": -22.1,
"heating_degree_days": 804.2,
"mean_temp_c": -7.941935483870968,
"month": "2004-01",
"normal_mean_temp_c": null,
"normal_precip_mm": null,
"normal_snowfall_cm": null,
"normal_sunshine_hours": null,
"snow_on_ground_last_day_cm": 31,
"total_precip_mm": 50,
"total_snowfall_cm": null
},
{
"bright_sunshine_hours": null,
"cooling_degree_days": 0,
"days_with_precip_ge_1mm": 5,
"days_with_valid_mean_temp": 29,
"days_with_valid_precip": 29,
"extreme_max_temp_c": 10.6,
"extreme_min_temp_c": -16.9,
"heating_degree_days": 580,
"mean_temp_c": -2,
"month": "2004-02",
"normal_mean_temp_c": null,
"normal_precip_mm": null,
"normal_snowfall_cm": null,
"normal_sunshine_hours": null,
"snow_on_ground_last_day_cm": 14,
"total_precip_mm": 23.9,
"total_snowfall_cm": null
},
{
"bright_sunshine_hours": null,
"cooling_degree_days": 0,
"days_with_precip_ge_1mm": 8,
"days_with_valid_mean_temp": 31,
"days_with_valid_precip": 31,
"extreme_max_temp_c": 18.8,
"extreme_min_temp_c": -9.4,
"heating_degree_days": 459.1,
"mean_temp_c": 3.1903225806451614,
"month": "2004-03",
"normal_mean_temp_c": null,
"normal_precip_mm": null,
"normal_snowfall_cm": null,
"normal_sunshine_hours": null,
"snow_on_ground_last_day_cm": 0,
"total_precip_mm": 46.3,
"total_snowfall_cm": null
},
{
"bright_sunshine_hours": null,
"cooling_degree_days": 0,
"days_with_precip_ge_1mm": 12,
"days_with_valid_mean_temp": 30,
"days_with_valid_precip": 30,
"extreme_max_temp_c": 23.3,
"extreme_min_temp_c": -6.2,
"heating_degree_days": 317.3,
"mean_temp_c": 7.423333333333333,
"month": "2004-04",
"normal_mean_temp_c": null,
"normal_precip_mm": null,
"normal_snowfall_cm": null,
"normal_sunshine_hours": null,
"snow_on_ground_last_day_cm": 0,
"total_precip_mm": 71.2,
"total_snowfall_cm": null
},
{
"bright_sunshine_hours": null,
"cooling_degree_days": 11.7,
"days_with_precip_ge_1mm": 11,
"days_with_valid_mean_temp": 31,
"days_with_valid_precip": 31,
"extreme_max_temp_c": 28,
"extreme_min_temp_c": 0,
"heating_degree_days": 147.5,
"mean_temp_c": 13.619354838709675,
"month": "2004-05",
"normal_mean_temp_c": null,
"normal_precip_mm": null,
"normal_snowfall_cm": null,
"normal_sunshine_hours": null,
"snow_on_ground_last_day_cm": 0,
"total_precip_mm": 89,
"total_snowfall_cm": null
},
{
"bright_sunshine_hours": null,
"cooling_degree_days": 33.3,
"days_with_precip_ge_1mm": 7,
"days_with_valid_mean_temp": 30,
"days_with_valid_precip": 30,
"extreme_max_temp_c": 32.7,
"extreme_min_temp_c": 9.6,
"heating_degree_days": 32.4,
"mean_temp_c": 18.03,
"month": "2004-06",
"normal_mean_temp_c": null,
"normal_precip_mm": null,
"normal_snowfall_cm": null,
"normal_sunshine_hours": null,
"snow_on_ground_last_day_cm": 0,
"total_precip_mm": 44.6,
"total_snowfall_cm": null
},
{
"bright_sunshine_hours": null,
"cooling_degree_days": 98.3,
"days_with_precip_ge_1mm": 9,
"days_with_valid_mean_temp": 31,
"days_with_valid_precip": 31,
"extreme_max_temp_c": 29.9,
"extreme_min_temp_c": 13.2,
"heating_degree_days": 1.2,
"mean_temp_c": 21.13225806451613,
"month": "2004-07",
"normal_mean_temp_c": null,
"normal_precip_mm": null,
"normal_snowfall_cm": null,
"normal_sunshine_hours": null,
"snow_on_ground_last_day_cm": 0,
"total_precip_mm": 70.6,
"total_snowfall_cm": null
},
{
"bright_sunshine_hours": null,
"cooling_degree_days": 70.8,
"days_with_precip_ge_1mm": 7,
"days_with_valid_mean_temp": 31,
"days_with_valid_precip": 31,
"extreme_max_temp_c": 29.5,
"extreme_min_temp_c": 10.7,
"heating_degree_days": 8.5,
"mean_temp_c": 20.009677419354837,
"month": "2004-08",
"normal_mean_temp_c": null,
"normal_precip_mm": null,
"normal_snowfall_cm": null,
"normal_sunshine_hours": null,
"snow_on_ground_last_day_cm": 0,
"total_precip_mm": 49.4,
"total_snowfall_cm": null
},
{
"bright_sunshine_hours": null,
"cooling_degree_days": 50.9,
"days_with_precip_ge_1mm": 3,
"days_with_valid_mean_temp": 30,
"days_with_valid_precip": 30,
"extreme_max_temp_c": 28.3,
"extreme_min_temp_c": 7.5,
"heating_degree_days": 23.8,
"mean_temp_c": 18.903333333333332,
"month": "2004-09",
"normal_mean_temp_c": null,
"normal_precip_mm": null,
"normal_snowfall_cm": null,
"normal_sunshine_hours": null,
"snow_on_ground_last_day_cm": 0,
"total_precip_mm": 33.2,
"total_snowfall_cm": null
},
{
"bright_sunshine_hours": null,
"cooling_degree_days": 0,
"days_with_precip_ge_1mm": 5,
"days_with_valid_mean_temp": 31,
"days_with_valid_precip": 31,
"extreme_max_temp_c": 23.2,
"extreme_min_temp_c": 3.8,
"heating_degree_days": 210.1,
"mean_temp_c": 11.22258064516129,
"month": "2004-10",
"normal_mean_temp_c": null,
"normal_precip_mm": null,
"normal_snowfall_cm": null,
"normal_sunshine_hours": null,
"snow_on_ground_last_day_cm": 0,
"total_precip_mm": 22.8,
"total_snowfall_cm": null
},
{
"bright_sunshine_hours": null,
"cooling_degree_days": 0,
"days_with_precip_ge_1mm": 7,
"days_with_valid_mean_temp": 30,
"days_with_valid_precip": 30,
"extreme_max_temp_c": 15.4,
"extreme_min_temp_c": -3,
"heating_degree_days": 351.8,
"mean_temp_c": 6.273333333333333,
"month": "2004-11",
"normal_mean_temp_c": null,
"normal_precip_mm": null,
"normal_snowfall_cm": null,
"normal_sunshine_hours": null,
"snow_on_ground_last_day_cm": 0,
"total_precip_mm": 59.4,
"total_snowfall_cm": null
},
{
"bright_sunshine_hours": null,
"cooling_degree_days": 0,
"days_with_precip_ge_1mm": 12,
"days_with_valid_mean_temp": 31,
"days_with_valid_precip": 31,
"extreme_max_temp_c": 11.1,
"extreme_min_temp_c": -23.3,
"heating_degree_days": 605.7,
"mean_temp_c": -1.538709677419355,
"month": "2004-12",
"normal_mean_temp_c": null,
"normal_precip_mm": null,
"normal_snowfall_cm": null,
"normal_sunshine_hours": null,
"snow_on_ground_last_day_cm": 0,
"total_precip_mm": 80.4,
"total_snowfall_cm": null
}
],
"observed_at_ms": 1792969237837,
"source_url": "https://api.weather.gc.ca/collections/climate-monthly/items?f=json&CLIMATE_IDENTIFIER=6158355&skipGeometry=true&sortby=LOCAL_DATE&limit=2000&datetime=2004-01%2F2004-12",
"start": "2004-01",
"station": {
"climate_id": "6158355",
"daily_first_date": "2002-06-04",
"daily_last_date": "2026-10-23",
"distance_km": null,
"elevation_m": 112.5,
"first_date": "2002-06-04",
"has_hourly": true,
"has_monthly_summary": true,
"has_normals": false,
"hourly_first_date": "2002-06-04",
"hourly_last_date": "2026-10-23",
"last_date": "2026-10-23",
"latitude": 43.666666666666664,
"longitude": -79.4,
"monthly_first_date": "2003-07-01",
"monthly_last_date": "2006-12-01",
"name": "TORONTO CITY",
"operator": "Environment and Climate Change Canada - Meteorological Service of Canada",
"province": "ON",
"province_name": "ONTARIO",
"station_id": 31688,
"tc_id": "XTO",
"timezone": "EST",
"wmo_id": "71508"
}
}Environment and Climate Change Canada weather and climate (api.weather.gc.ca)
Climate monthly
Month-by-month climate history of a station, e.g. July rainfall by year.
POST
https://api.aisa.one
/
apis
/
v1
/
api-weather-gc-ca
/
weather
/
climate-monthly
Climate monthly
curl --request POST \
--url https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/climate-monthly \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"climate_id": "6158355"
}
'import requests
url = "https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/climate-monthly"
payload = { "climate_id": "6158355" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({climate_id: '6158355'})
};
fetch('https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/climate-monthly', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/climate-monthly",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'climate_id' => '6158355'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/climate-monthly"
payload := strings.NewReader("{\n \"climate_id\": \"6158355\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/climate-monthly")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"climate_id\": \"6158355\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/climate-monthly")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"climate_id\": \"6158355\"\n}"
response = http.request(request)
puts response.read_body{
"attribution": "Data Source: Environment and Climate Change Canada",
"count": 12,
"end": "2004-12",
"lang": "en",
"licence_url": "https://eccc-msc.github.io/open-data/licence/readme_en/",
"months": [
{
"bright_sunshine_hours": null,
"cooling_degree_days": 0,
"days_with_precip_ge_1mm": 10,
"days_with_valid_mean_temp": 31,
"days_with_valid_precip": 31,
"extreme_max_temp_c": 13.3,
"extreme_min_temp_c": -22.1,
"heating_degree_days": 804.2,
"mean_temp_c": -7.941935483870968,
"month": "2004-01",
"normal_mean_temp_c": null,
"normal_precip_mm": null,
"normal_snowfall_cm": null,
"normal_sunshine_hours": null,
"snow_on_ground_last_day_cm": 31,
"total_precip_mm": 50,
"total_snowfall_cm": null
},
{
"bright_sunshine_hours": null,
"cooling_degree_days": 0,
"days_with_precip_ge_1mm": 5,
"days_with_valid_mean_temp": 29,
"days_with_valid_precip": 29,
"extreme_max_temp_c": 10.6,
"extreme_min_temp_c": -16.9,
"heating_degree_days": 580,
"mean_temp_c": -2,
"month": "2004-02",
"normal_mean_temp_c": null,
"normal_precip_mm": null,
"normal_snowfall_cm": null,
"normal_sunshine_hours": null,
"snow_on_ground_last_day_cm": 14,
"total_precip_mm": 23.9,
"total_snowfall_cm": null
},
{
"bright_sunshine_hours": null,
"cooling_degree_days": 0,
"days_with_precip_ge_1mm": 8,
"days_with_valid_mean_temp": 31,
"days_with_valid_precip": 31,
"extreme_max_temp_c": 18.8,
"extreme_min_temp_c": -9.4,
"heating_degree_days": 459.1,
"mean_temp_c": 3.1903225806451614,
"month": "2004-03",
"normal_mean_temp_c": null,
"normal_precip_mm": null,
"normal_snowfall_cm": null,
"normal_sunshine_hours": null,
"snow_on_ground_last_day_cm": 0,
"total_precip_mm": 46.3,
"total_snowfall_cm": null
},
{
"bright_sunshine_hours": null,
"cooling_degree_days": 0,
"days_with_precip_ge_1mm": 12,
"days_with_valid_mean_temp": 30,
"days_with_valid_precip": 30,
"extreme_max_temp_c": 23.3,
"extreme_min_temp_c": -6.2,
"heating_degree_days": 317.3,
"mean_temp_c": 7.423333333333333,
"month": "2004-04",
"normal_mean_temp_c": null,
"normal_precip_mm": null,
"normal_snowfall_cm": null,
"normal_sunshine_hours": null,
"snow_on_ground_last_day_cm": 0,
"total_precip_mm": 71.2,
"total_snowfall_cm": null
},
{
"bright_sunshine_hours": null,
"cooling_degree_days": 11.7,
"days_with_precip_ge_1mm": 11,
"days_with_valid_mean_temp": 31,
"days_with_valid_precip": 31,
"extreme_max_temp_c": 28,
"extreme_min_temp_c": 0,
"heating_degree_days": 147.5,
"mean_temp_c": 13.619354838709675,
"month": "2004-05",
"normal_mean_temp_c": null,
"normal_precip_mm": null,
"normal_snowfall_cm": null,
"normal_sunshine_hours": null,
"snow_on_ground_last_day_cm": 0,
"total_precip_mm": 89,
"total_snowfall_cm": null
},
{
"bright_sunshine_hours": null,
"cooling_degree_days": 33.3,
"days_with_precip_ge_1mm": 7,
"days_with_valid_mean_temp": 30,
"days_with_valid_precip": 30,
"extreme_max_temp_c": 32.7,
"extreme_min_temp_c": 9.6,
"heating_degree_days": 32.4,
"mean_temp_c": 18.03,
"month": "2004-06",
"normal_mean_temp_c": null,
"normal_precip_mm": null,
"normal_snowfall_cm": null,
"normal_sunshine_hours": null,
"snow_on_ground_last_day_cm": 0,
"total_precip_mm": 44.6,
"total_snowfall_cm": null
},
{
"bright_sunshine_hours": null,
"cooling_degree_days": 98.3,
"days_with_precip_ge_1mm": 9,
"days_with_valid_mean_temp": 31,
"days_with_valid_precip": 31,
"extreme_max_temp_c": 29.9,
"extreme_min_temp_c": 13.2,
"heating_degree_days": 1.2,
"mean_temp_c": 21.13225806451613,
"month": "2004-07",
"normal_mean_temp_c": null,
"normal_precip_mm": null,
"normal_snowfall_cm": null,
"normal_sunshine_hours": null,
"snow_on_ground_last_day_cm": 0,
"total_precip_mm": 70.6,
"total_snowfall_cm": null
},
{
"bright_sunshine_hours": null,
"cooling_degree_days": 70.8,
"days_with_precip_ge_1mm": 7,
"days_with_valid_mean_temp": 31,
"days_with_valid_precip": 31,
"extreme_max_temp_c": 29.5,
"extreme_min_temp_c": 10.7,
"heating_degree_days": 8.5,
"mean_temp_c": 20.009677419354837,
"month": "2004-08",
"normal_mean_temp_c": null,
"normal_precip_mm": null,
"normal_snowfall_cm": null,
"normal_sunshine_hours": null,
"snow_on_ground_last_day_cm": 0,
"total_precip_mm": 49.4,
"total_snowfall_cm": null
},
{
"bright_sunshine_hours": null,
"cooling_degree_days": 50.9,
"days_with_precip_ge_1mm": 3,
"days_with_valid_mean_temp": 30,
"days_with_valid_precip": 30,
"extreme_max_temp_c": 28.3,
"extreme_min_temp_c": 7.5,
"heating_degree_days": 23.8,
"mean_temp_c": 18.903333333333332,
"month": "2004-09",
"normal_mean_temp_c": null,
"normal_precip_mm": null,
"normal_snowfall_cm": null,
"normal_sunshine_hours": null,
"snow_on_ground_last_day_cm": 0,
"total_precip_mm": 33.2,
"total_snowfall_cm": null
},
{
"bright_sunshine_hours": null,
"cooling_degree_days": 0,
"days_with_precip_ge_1mm": 5,
"days_with_valid_mean_temp": 31,
"days_with_valid_precip": 31,
"extreme_max_temp_c": 23.2,
"extreme_min_temp_c": 3.8,
"heating_degree_days": 210.1,
"mean_temp_c": 11.22258064516129,
"month": "2004-10",
"normal_mean_temp_c": null,
"normal_precip_mm": null,
"normal_snowfall_cm": null,
"normal_sunshine_hours": null,
"snow_on_ground_last_day_cm": 0,
"total_precip_mm": 22.8,
"total_snowfall_cm": null
},
{
"bright_sunshine_hours": null,
"cooling_degree_days": 0,
"days_with_precip_ge_1mm": 7,
"days_with_valid_mean_temp": 30,
"days_with_valid_precip": 30,
"extreme_max_temp_c": 15.4,
"extreme_min_temp_c": -3,
"heating_degree_days": 351.8,
"mean_temp_c": 6.273333333333333,
"month": "2004-11",
"normal_mean_temp_c": null,
"normal_precip_mm": null,
"normal_snowfall_cm": null,
"normal_sunshine_hours": null,
"snow_on_ground_last_day_cm": 0,
"total_precip_mm": 59.4,
"total_snowfall_cm": null
},
{
"bright_sunshine_hours": null,
"cooling_degree_days": 0,
"days_with_precip_ge_1mm": 12,
"days_with_valid_mean_temp": 31,
"days_with_valid_precip": 31,
"extreme_max_temp_c": 11.1,
"extreme_min_temp_c": -23.3,
"heating_degree_days": 605.7,
"mean_temp_c": -1.538709677419355,
"month": "2004-12",
"normal_mean_temp_c": null,
"normal_precip_mm": null,
"normal_snowfall_cm": null,
"normal_sunshine_hours": null,
"snow_on_ground_last_day_cm": 0,
"total_precip_mm": 80.4,
"total_snowfall_cm": null
}
],
"observed_at_ms": 1792969237837,
"source_url": "https://api.weather.gc.ca/collections/climate-monthly/items?f=json&CLIMATE_IDENTIFIER=6158355&skipGeometry=true&sortby=LOCAL_DATE&limit=2000&datetime=2004-01%2F2004-12",
"start": "2004-01",
"station": {
"climate_id": "6158355",
"daily_first_date": "2002-06-04",
"daily_last_date": "2026-10-23",
"distance_km": null,
"elevation_m": 112.5,
"first_date": "2002-06-04",
"has_hourly": true,
"has_monthly_summary": true,
"has_normals": false,
"hourly_first_date": "2002-06-04",
"hourly_last_date": "2026-10-23",
"last_date": "2026-10-23",
"latitude": 43.666666666666664,
"longitude": -79.4,
"monthly_first_date": "2003-07-01",
"monthly_last_date": "2006-12-01",
"name": "TORONTO CITY",
"operator": "Environment and Climate Change Canada - Meteorological Service of Canada",
"province": "ON",
"province_name": "ONTARIO",
"station_id": 31688,
"tc_id": "XTO",
"timezone": "EST",
"wmo_id": "71508"
}
}请求规范
- 方法与路径: POST /apis/v1/api-weather-gc-ca/weather/climate-monthly
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/climate-monthly
{
"operationId": "api-weather-gc-ca.weather.climate-monthly",
"method": "POST",
"path": "/apis/v1/api-weather-gc-ca/weather/climate-monthly",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"climate_id": "6158355",
"end": "2004-12",
"start": "2004-01"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"climate_id": {
"description": "ECCC Climate ID of a climate station (7 characters, e.g. 6158355 TORONTO CITY, 6158350 TORONTO, 1108447 VANCOUVER INTL A). Find ids with climate_stations. Pattern: ^[0-9A-Za-z]+$.",
"type": "string"
},
"end": {
"description": "Last month, YYYY-MM. Pattern: ^[0-9]{4}-[0-9]{2}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"lang": {
"default": "en",
"description": "Language of names and texts: en (English) or fr (French). Numbers are the same in both.\n\nProvider reference: allowed values [\"en\", \"fr\"]; default \"en\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"en",
"fr"
]
}
},
"start": {
"description": "First month, YYYY-MM. Pattern: ^[0-9]{4}-[0-9]{2}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
}
},
"required": [
"climate_id"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
按实际用量收费。 默认请求预估费用:$0.0005 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
请求体
application/json
响应
Monthly climate summaries of one ECCC climate station: mean and extreme temperatures, total precipitation and snowfall, days with precipitation, sunshine, degree days and the station's monthly normals where ECCC lists them. start/end (YYYY-MM) bound the months; without them the whole record. An unknown climate_id is not_found.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
attribution | string | Attribution the ECCC Data Servers End-use Licence requires when the data is republished. |
count | number | |
end | string | |
lang | string | Language of the texts. |
licence_url | string | The ECCC Data Servers End-use Licence. |
months | object[] | Months in order. |
observed_at_ms | number | When this program read the source, epoch milliseconds. |
source_url | string | The api.weather.gc.ca request this answer was read from. |
start | string | |
station | object |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.