curl --request POST \
--url https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/climate-normals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"climate_id": "6158350"
}
'import requests
url = "https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/climate-normals"
payload = { "climate_id": "6158350" }
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: '6158350'})
};
fetch('https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/climate-normals', 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-normals",
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' => '6158350'
]),
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-normals"
payload := strings.NewReader("{\n \"climate_id\": \"6158350\"\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-normals")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"climate_id\": \"6158350\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/climate-normals")
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\": \"6158350\"\n}"
response = http.request(request)
puts response.read_body{
"attribution": "Data Source: Environment and Climate Change Canada",
"count": 65,
"elements": [
{
"annual": 9.39,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
-3.74,
-2.58,
1.4,
7.85,
14.14,
19.36,
22.34,
21.5,
17.2,
10.72,
4.94,
-0.47
],
"name": "Mean daily temperature deg C",
"normal_id": 1,
"years": 23
},
{
"annual": 1.29,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
2.8,
2.23,
1.72,
1.42,
1.84,
1.27,
1.35,
1.34,
1.35,
1.17,
1.42,
2.71
],
"name": "StdDev mean monthly temperature deg C",
"normal_id": 2,
"years": 23
},
{
"annual": 12.9,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
-0.72,
0.44,
4.69,
11.51,
18.35,
23.78,
26.62,
25.51,
20.98,
13.97,
7.53,
2.11
],
"name": "Mean daily max temperature deg C",
"normal_id": 5,
"years": 23
},
{
"annual": 5.85,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
-6.73,
-5.59,
-1.89,
4.14,
9.88,
14.89,
18.01,
17.44,
13.38,
7.41,
2.31,
-3.06
],
"name": "Mean daily min temperature deg C",
"normal_id": 8,
"years": 23
},
{
"annual": 103,
"code": "C",
"date": "04-13",
"first_year": 1981,
"last_year": 2002,
"monthly": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"name": "Mean date last frost in spring",
"normal_id": 13,
"years": 22
},
{
"annual": 307,
"code": "C",
"date": "11-03",
"first_year": 1981,
"last_year": 2002,
"monthly": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"name": "Mean date first frost in fall",
"normal_id": 14,
"years": 22
},
{
"annual": 203,
"code": "C",
"date": "07-22",
"first_year": 1981,
"last_year": 2002,
"monthly": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"name": "Mean length frost-free period in days",
"normal_id": 21,
"years": 22
},
{
"annual": 35.62,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
0,
0,
0,
0.06,
0.41,
4.85,
17.69,
10.65,
1.96,
0,
0,
0
],
"name": "Total degree-days Above 24 deg C",
"normal_id": 22,
"years": 23
},
{
"annual": 374.64,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
0,
0,
0.1,
1.7,
15.3,
66.93,
136.85,
113.59,
38.65,
1.52,
0,
0
],
"name": "Total degree-days Above 18 deg C",
"normal_id": 23,
"years": 23
},
{
"annual": 711.79,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
0,
0,
0.68,
5.2,
41.17,
136.86,
227.53,
202.1,
88.78,
9.39,
0.08,
0
],
"name": "Total degree-days Above 15 deg C",
"normal_id": 24,
"years": 23
},
{
"annual": 1480.18,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
0.04,
0,
5.3,
29.75,
136.6,
280.8,
382.47,
356.5,
217.73,
62.37,
7.57,
1.05
],
"name": "Total degree-days Above 10 deg C",
"normal_id": 25,
"years": 23
},
{
"annual": 2506.36,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
2.38,
3.47,
24.93,
106.93,
283.39,
430.75,
537.47,
511.5,
366.14,
180.03,
49.97,
9.4
],
"name": "Total degree-days Above 5 deg C",
"normal_id": 26,
"years": 23
},
{
"annual": 3824.07,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
24.59,
31.45,
91.36,
237.83,
438.33,
580.75,
692.47,
666.5,
516.14,
332.26,
155.52,
56.87
],
"name": "Total degree-days Above 0 deg C",
"normal_id": 27,
"years": 23
},
{
"annual": 373.72,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
140.5,
104.13,
47.9,
2.46,
0,
0,
0,
0,
0,
0,
7.23,
71.5
],
"name": "Total degree-days below 0 deg C",
"normal_id": 28,
"years": 23
},
{
"annual": 882.08,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
273.29,
217.24,
136.47,
21.55,
0.07,
0,
0,
0,
0,
2.77,
51.67,
179.02
],
"name": "Total degree-days below 5 deg C",
"normal_id": 29,
"years": 23
},
{
"annual": 1682,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
425.95,
354.86,
271.84,
94.37,
8.27,
0.06,
0,
0,
1.59,
40.11,
159.27,
325.68
],
"name": "Total degree-days below 10 deg C",
"normal_id": 30,
"years": 23
},
{
"annual": 2739.69,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
580.91,
495.94,
422.22,
219.82,
67.84,
6.11,
0.06,
0.6,
22.65,
142.13,
301.78,
479.63
],
"name": "Total degree-days below 15 deg C",
"normal_id": 31,
"years": 23
},
{
"annual": 3498.22,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
673.91,
580.6,
514.64,
306.32,
134.98,
26.18,
2.38,
5.1,
62.52,
227.26,
391.7,
572.63
],
"name": "Total degree-days below 18 deg C",
"normal_id": 32,
"years": 23
},
{
"annual": 45.87,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
15.57,
12.52,
6.7,
0.39,
0,
0,
0,
0,
0,
0,
1.14,
9.55
],
"name": "Days with daily max temperature LE 0 deg C",
"normal_id": 33,
"years": 23
},
{
"annual": 319.35,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
15.43,
15.7,
24.3,
29.61,
31,
30,
31,
31,
30,
31,
28.86,
21.45
],
"name": "Days with daily max temperature GT 0 deg C",
"normal_id": 34,
"years": 23
},
{
"annual": 211.09,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
0.7,
0.65,
5.17,
17.3,
30,
30,
31,
31,
29.95,
25.05,
8.59,
1.68
],
"name": "Days with daily max temperature GT 10 deg C",
"normal_id": 35,
"years": 23
},
{
"annual": 117.23,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
0,
0,
0.48,
2.3,
10.48,
23.65,
30.23,
29.45,
17.32,
3.18,
0.14,
0
],
"name": "Days with daily max temperature GT 20 deg C",
"normal_id": 36,
"years": 23
},
{
"annual": 11.82,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
0,
0,
0,
0.09,
0.43,
2.52,
5.41,
2.73,
0.64,
0,
0,
0
],
"name": "Days with daily max temperature GT 30 deg C",
"normal_id": 37,
"years": 23
},
{
"annual": 0.72,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
0,
0,
0,
0,
0,
0.13,
0.45,
0.14,
0,
0,
0,
0
],
"name": "Days with daily max temperature GT 35 deg C",
"normal_id": 38,
"years": 23
},
{
"annual": 264.39,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
4.57,
5.96,
12.52,
25.57,
31,
30,
31,
31,
30,
30.27,
21.64,
10.86
],
"name": "Days with daily min temperature GT 0 deg C",
"normal_id": 39,
"years": 23
},
{
"annual": 131.16,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
29.04,
25.91,
23.96,
9.39,
0.22,
0,
0,
0,
0,
2.55,
14.23,
25.86
],
"name": "Days with daily min temperature LE 2 deg C",
"normal_id": 40,
"years": 23
},
{
"annual": 100.83,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
26.43,
22.26,
18.48,
4.43,
0,
0,
0,
0,
0,
0.73,
8.36,
20.14
],
"name": "Days with daily min temperature LE 0 deg C",
"normal_id": 41,
"years": 23
},
{
"annual": 78.18,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
22.78,
19.26,
14.26,
1.74,
0,
0,
0,
0,
0,
0.05,
4.23,
15.86
],
"name": "Days with daily min temperature LT -2 deg C",
"normal_id": 42,
"years": 23
},
{
"annual": 21.86,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
9.09,
6.61,
2.35,
0.04,
0,
0,
0,
0,
0,
0,
0.09,
3.68
],
"name": "Days with daily min temperature LT -10 deg C",
"normal_id": 43,
"years": 23
},
{
"annual": 1.22,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
0.96,
0.13,
0.04,
0,
0,
0,
0,
0,
0,
0,
0,
0.09
],
"name": "Days with daily min temperature LT -20 deg C",
"normal_id": 44,
"years": 23
},
{
"annual": 0,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"name": "Days with daily min temperature LT -30 deg C",
"normal_id": 45,
"years": 23
},
{
"annual": 714.02,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
29.08,
29.66,
33.64,
61.1,
81.98,
70.87,
63.94,
81.06,
84.71,
64.32,
75.42,
38.24
],
"name": "Total rainfall mm",
"normal_id": 52,
"years": 26
},
{
"annual": 30.97,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
26.92,
20.92,
23.51,
27.78,
27.02,
37.1,
26.21,
44.49,
46.54,
33.89,
32.71,
24.6
],
"name": "StdDev total rainfall mm",
"normal_id": 53,
"years": 26
},
{
"annual": 121.51,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
37.18,
27.02,
19.8,
4.99,
0,
0,
0,
0,
0,
0.06,
8.34,
24.12
],
"name": "Total snowfall cm",
"normal_id": 54,
"years": 26
},
{
"annual": 6.95,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
25.91,
15.37,
11.1,
5.28,
0,
0,
0,
0,
0,
0.25,
9.65,
15.89
],
"name": "StdDev total snowfall cm",
"normal_id": 55,
"years": 26
},
{
"annual": 831.11,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
61.51,
55.39,
53.67,
68.04,
81.98,
70.87,
63.94,
81.06,
84.71,
64.39,
84.06,
61.49
],
"name": "Total precipitation mm",
"normal_id": 56,
"years": 26
},
{
"annual": 32.46,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
31.05,
26.09,
26.71,
28.15,
27.02,
37.1,
26.21,
44.49,
46.54,
33.84,
34.76,
27.59
],
"name": "StdDev total precipitation mm",
"normal_id": 57,
"years": 26
},
{
"annual": 114.08,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
5.35,
4.77,
7.92,
11.17,
12.74,
10.96,
10.36,
10.23,
11.05,
11.65,
10.92,
6.96
],
"name": "Days with rainfall GE 0.2 mm",
"normal_id": 61,
"years": 26
},
{
"annual": 43.9,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
1.73,
1.69,
2.23,
4.17,
5.09,
4.35,
4.27,
4.32,
4.73,
4.48,
4.42,
2.42
],
"name": "Days with rainfall GE 5 mm",
"normal_id": 62,
"years": 26
},
{
"annual": 24.01,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
1,
1.08,
0.96,
1.91,
2.78,
2.39,
2.41,
2.5,
2.86,
2,
2.81,
1.31
],
"name": "Days with rainfall GE 10 mm",
"normal_id": 63,
"years": 26
},
{
"annual": 4.39,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
0.19,
0.15,
0.04,
0.22,
0.57,
0.52,
0.32,
0.91,
0.68,
0.17,
0.5,
0.12
],
"name": "Days with rainfall GE 25 mm",
"normal_id": 64,
"years": 26
},
{
"annual": 40.89,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
11.96,
8.65,
6.5,
2.23,
0,
0,
0,
0,
0,
0.08,
3.12,
8.35
],
"name": "Days with snowfall GE 0.2 cm",
"normal_id": 65,
"years": 26
},
{
"annual": 7.74,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
2.46,
1.62,
1.23,
0.35,
0,
0,
0,
0,
0,
0,
0.46,
1.62
],
"name": "Days with snowfall GE 5 cm",
"normal_id": 66,
"years": 26
},
{
"annual": 2.65,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
0.81,
0.73,
0.38,
0.12,
0,
0,
0,
0,
0,
0,
0.15,
0.46
],
"name": "Days with snowfall GE 10 cm",
"normal_id": 67,
"years": 26
},
{
"annual": 0.08,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
0.08,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"name": "Days with snowfall GE 25 cm",
"normal_id": 68,
"years": 26
},
{
"annual": 145.49,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
15.42,
11.58,
12.62,
12.61,
12.74,
10.96,
10.36,
10.23,
11.05,
11.65,
13.04,
13.23
],
"name": "Days with precipitation GE 0.2 mm",
"normal_id": 69,
"years": 26
},
{
"annual": 51.39,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
3.96,
3.19,
3.5,
4.61,
5.09,
4.35,
4.27,
4.32,
4.73,
4.48,
5.04,
3.85
],
"name": "Days with precipitation GE 5 mm",
"normal_id": 70,
"years": 26
},
{
"annual": 26.99,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
1.69,
1.73,
1.5,
2.13,
2.78,
2.39,
2.41,
2.5,
2.86,
2,
3.08,
1.92
],
"name": "Days with precipitation GE 10 mm",
"normal_id": 71,
"years": 26
},
{
"annual": 4.7,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
0.23,
0.27,
0.08,
0.26,
0.57,
0.52,
0.32,
0.91,
0.68,
0.17,
0.54,
0.15
],
"name": "Days with precipitation GE 25 mm",
"normal_id": 72,
"years": 26
},
{
"annual": 1.61,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
6.79,
6.43,
3.13,
0.16,
0,
0,
0,
0,
0,
0,
0.37,
2.49
],
"name": "Mean Daily Snow Depth cm",
"normal_id": 73,
"years": 26
},
{
"annual": 1.32,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
6.27,
5.71,
2.15,
0,
0,
0,
0,
0,
0,
0,
0,
1.73
],
"name": "Median Daily Snow Depth cm",
"normal_id": 74,
"years": 26
},
{
"annual": 64.5,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
19.96,
19.4,
11.42,
1.15,
0,
0,
0,
0,
0,
0,
1.88,
10.69
],
"name": "Days with snow depth GE 1 cm",
"normal_id": 76,
"years": 25
},
{
"annual": 43.31,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
15,
14.12,
7.23,
0.38,
0,
0,
0,
0,
0,
0,
0.77,
5.81
],
"name": "Days with snow depth GE 5 cm",
"normal_id": 77,
"years": 25
},
{
"annual": 24.47,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
9.8,
7.24,
4.12,
0.08,
0,
0,
0,
0,
0,
0,
0.46,
2.77
],
"name": "Days with snow depth GE 10 cm",
"normal_id": 78,
"years": 25
},
{
"annual": 5.17,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
1.88,
1.56,
0.81,
0,
0,
0,
0,
0,
0,
0,
0.04,
0.88
],
"name": "Days with snow depth GE 20 cm",
"normal_id": 79,
"years": 25
},
{
"annual": 0.2,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
0.2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"name": "Days with snow depth GE 50 cm",
"normal_id": 80,
"years": 25
},
{
"annual": 0,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"name": "Days with snow depth GE 100 cm",
"normal_id": 81,
"years": 25
},
{
"annual": 1.32,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
6.81,
4.88,
0.5,
0,
0,
0,
0,
0,
0,
0,
0,
3.62
],
"name": "Mean month end snow depth cm",
"normal_id": 82,
"years": 26
},
{
"annual": 3.45,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
1.27,
0.92,
0.5,
0.23,
0,
0,
0,
0,
0,
0,
0.15,
0.38
],
"name": "Days with freezing rain or freezing drizzle",
"normal_id": 83,
"years": 26
},
{
"annual": 20.96,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
0.31,
0.23,
0.5,
1.69,
2.83,
3.78,
4.14,
3.23,
2.59,
0.85,
0.5,
0.31
],
"name": "Days with thunderstorms",
"normal_id": 84,
"years": 26
},
{
"annual": 0.3,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
0,
0,
0,
0.08,
0.09,
0.09,
0,
0,
0,
0.04,
0,
0
],
"name": "Days with hail",
"normal_id": 85,
"years": 26
},
{
"annual": 2066.26,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2001,
"monthly": [
85.85,
111.29,
161.02,
179.98,
227.69,
259.57,
279.63,
245.55,
194.38,
154.3,
88.92,
78.08
],
"name": "Total hours bright sunshine",
"normal_id": 102,
"years": 21
},
{
"annual": 304.8,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2001,
"monthly": [
21.19,
21.29,
25.14,
26.42,
28.26,
28.2,
30.05,
29.45,
27.15,
27.4,
20.55,
19.7
],
"name": "Days with measurable bright sunshine",
"normal_id": 103,
"years": 21
},
{
"annual": 44.47,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2001,
"monthly": [
29.67,
37.68,
43.63,
44.75,
49.96,
56.26,
59.81,
56.68,
51.67,
45.06,
30.51,
27.99
],
"name": "Percent of daylight hours based on civil sunrise/sunset",
"normal_id": 105,
"years": 21
},
{
"annual": 4720.22,
"code": "D",
"date": null,
"first_year": 1981,
"last_year": 2000,
"monthly": [
150.42,
227.18,
382.5,
472.66,
604.56,
651.05,
674.56,
577.31,
421.73,
286.21,
150.57,
121.47
],
"name": "Total hourly global solar radiation RF1 mJ/m^2",
"normal_id": 106,
"years": 17
}
],
"lang": "en",
"licence_url": "https://eccc-msc.github.io/open-data/licence/readme_en/",
"observed_at_ms": 1792969238103,
"period": "1981-2010",
"source_url": "https://api.weather.gc.ca/collections/climate-normals/items?f=json&CLIMATE_IDENTIFIER=6158350&skipGeometry=true&limit=3000",
"station": {
"climate_id": "6158350",
"daily_first_date": "1840-03-01",
"daily_last_date": "2017-04-27",
"distance_km": null,
"elevation_m": 112.5,
"first_date": "1840-01-01",
"has_hourly": true,
"has_monthly_summary": true,
"has_normals": true,
"hourly_first_date": "1953-01-01",
"hourly_last_date": "1969-05-31",
"last_date": "2017-04-27",
"latitude": 43.666666666666664,
"longitude": -79.4,
"monthly_first_date": "1840-01-01",
"monthly_last_date": "2006-12-01",
"name": "TORONTO",
"operator": "Co-operative Climate Network",
"province": "ON",
"province_name": "ONTARIO",
"station_id": 5051,
"tc_id": null,
"timezone": "EST",
"wmo_id": "71266"
}
}Climate normals
Typical climate of a place by month: normal January temperature, average annual snowfall, frost-free period.
curl --request POST \
--url https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/climate-normals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"climate_id": "6158350"
}
'import requests
url = "https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/climate-normals"
payload = { "climate_id": "6158350" }
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: '6158350'})
};
fetch('https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/climate-normals', 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-normals",
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' => '6158350'
]),
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-normals"
payload := strings.NewReader("{\n \"climate_id\": \"6158350\"\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-normals")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"climate_id\": \"6158350\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/climate-normals")
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\": \"6158350\"\n}"
response = http.request(request)
puts response.read_body{
"attribution": "Data Source: Environment and Climate Change Canada",
"count": 65,
"elements": [
{
"annual": 9.39,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
-3.74,
-2.58,
1.4,
7.85,
14.14,
19.36,
22.34,
21.5,
17.2,
10.72,
4.94,
-0.47
],
"name": "Mean daily temperature deg C",
"normal_id": 1,
"years": 23
},
{
"annual": 1.29,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
2.8,
2.23,
1.72,
1.42,
1.84,
1.27,
1.35,
1.34,
1.35,
1.17,
1.42,
2.71
],
"name": "StdDev mean monthly temperature deg C",
"normal_id": 2,
"years": 23
},
{
"annual": 12.9,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
-0.72,
0.44,
4.69,
11.51,
18.35,
23.78,
26.62,
25.51,
20.98,
13.97,
7.53,
2.11
],
"name": "Mean daily max temperature deg C",
"normal_id": 5,
"years": 23
},
{
"annual": 5.85,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
-6.73,
-5.59,
-1.89,
4.14,
9.88,
14.89,
18.01,
17.44,
13.38,
7.41,
2.31,
-3.06
],
"name": "Mean daily min temperature deg C",
"normal_id": 8,
"years": 23
},
{
"annual": 103,
"code": "C",
"date": "04-13",
"first_year": 1981,
"last_year": 2002,
"monthly": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"name": "Mean date last frost in spring",
"normal_id": 13,
"years": 22
},
{
"annual": 307,
"code": "C",
"date": "11-03",
"first_year": 1981,
"last_year": 2002,
"monthly": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"name": "Mean date first frost in fall",
"normal_id": 14,
"years": 22
},
{
"annual": 203,
"code": "C",
"date": "07-22",
"first_year": 1981,
"last_year": 2002,
"monthly": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"name": "Mean length frost-free period in days",
"normal_id": 21,
"years": 22
},
{
"annual": 35.62,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
0,
0,
0,
0.06,
0.41,
4.85,
17.69,
10.65,
1.96,
0,
0,
0
],
"name": "Total degree-days Above 24 deg C",
"normal_id": 22,
"years": 23
},
{
"annual": 374.64,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
0,
0,
0.1,
1.7,
15.3,
66.93,
136.85,
113.59,
38.65,
1.52,
0,
0
],
"name": "Total degree-days Above 18 deg C",
"normal_id": 23,
"years": 23
},
{
"annual": 711.79,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
0,
0,
0.68,
5.2,
41.17,
136.86,
227.53,
202.1,
88.78,
9.39,
0.08,
0
],
"name": "Total degree-days Above 15 deg C",
"normal_id": 24,
"years": 23
},
{
"annual": 1480.18,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
0.04,
0,
5.3,
29.75,
136.6,
280.8,
382.47,
356.5,
217.73,
62.37,
7.57,
1.05
],
"name": "Total degree-days Above 10 deg C",
"normal_id": 25,
"years": 23
},
{
"annual": 2506.36,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
2.38,
3.47,
24.93,
106.93,
283.39,
430.75,
537.47,
511.5,
366.14,
180.03,
49.97,
9.4
],
"name": "Total degree-days Above 5 deg C",
"normal_id": 26,
"years": 23
},
{
"annual": 3824.07,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
24.59,
31.45,
91.36,
237.83,
438.33,
580.75,
692.47,
666.5,
516.14,
332.26,
155.52,
56.87
],
"name": "Total degree-days Above 0 deg C",
"normal_id": 27,
"years": 23
},
{
"annual": 373.72,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
140.5,
104.13,
47.9,
2.46,
0,
0,
0,
0,
0,
0,
7.23,
71.5
],
"name": "Total degree-days below 0 deg C",
"normal_id": 28,
"years": 23
},
{
"annual": 882.08,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
273.29,
217.24,
136.47,
21.55,
0.07,
0,
0,
0,
0,
2.77,
51.67,
179.02
],
"name": "Total degree-days below 5 deg C",
"normal_id": 29,
"years": 23
},
{
"annual": 1682,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
425.95,
354.86,
271.84,
94.37,
8.27,
0.06,
0,
0,
1.59,
40.11,
159.27,
325.68
],
"name": "Total degree-days below 10 deg C",
"normal_id": 30,
"years": 23
},
{
"annual": 2739.69,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
580.91,
495.94,
422.22,
219.82,
67.84,
6.11,
0.06,
0.6,
22.65,
142.13,
301.78,
479.63
],
"name": "Total degree-days below 15 deg C",
"normal_id": 31,
"years": 23
},
{
"annual": 3498.22,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
673.91,
580.6,
514.64,
306.32,
134.98,
26.18,
2.38,
5.1,
62.52,
227.26,
391.7,
572.63
],
"name": "Total degree-days below 18 deg C",
"normal_id": 32,
"years": 23
},
{
"annual": 45.87,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
15.57,
12.52,
6.7,
0.39,
0,
0,
0,
0,
0,
0,
1.14,
9.55
],
"name": "Days with daily max temperature LE 0 deg C",
"normal_id": 33,
"years": 23
},
{
"annual": 319.35,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
15.43,
15.7,
24.3,
29.61,
31,
30,
31,
31,
30,
31,
28.86,
21.45
],
"name": "Days with daily max temperature GT 0 deg C",
"normal_id": 34,
"years": 23
},
{
"annual": 211.09,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
0.7,
0.65,
5.17,
17.3,
30,
30,
31,
31,
29.95,
25.05,
8.59,
1.68
],
"name": "Days with daily max temperature GT 10 deg C",
"normal_id": 35,
"years": 23
},
{
"annual": 117.23,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
0,
0,
0.48,
2.3,
10.48,
23.65,
30.23,
29.45,
17.32,
3.18,
0.14,
0
],
"name": "Days with daily max temperature GT 20 deg C",
"normal_id": 36,
"years": 23
},
{
"annual": 11.82,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
0,
0,
0,
0.09,
0.43,
2.52,
5.41,
2.73,
0.64,
0,
0,
0
],
"name": "Days with daily max temperature GT 30 deg C",
"normal_id": 37,
"years": 23
},
{
"annual": 0.72,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
0,
0,
0,
0,
0,
0.13,
0.45,
0.14,
0,
0,
0,
0
],
"name": "Days with daily max temperature GT 35 deg C",
"normal_id": 38,
"years": 23
},
{
"annual": 264.39,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
4.57,
5.96,
12.52,
25.57,
31,
30,
31,
31,
30,
30.27,
21.64,
10.86
],
"name": "Days with daily min temperature GT 0 deg C",
"normal_id": 39,
"years": 23
},
{
"annual": 131.16,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
29.04,
25.91,
23.96,
9.39,
0.22,
0,
0,
0,
0,
2.55,
14.23,
25.86
],
"name": "Days with daily min temperature LE 2 deg C",
"normal_id": 40,
"years": 23
},
{
"annual": 100.83,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
26.43,
22.26,
18.48,
4.43,
0,
0,
0,
0,
0,
0.73,
8.36,
20.14
],
"name": "Days with daily min temperature LE 0 deg C",
"normal_id": 41,
"years": 23
},
{
"annual": 78.18,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
22.78,
19.26,
14.26,
1.74,
0,
0,
0,
0,
0,
0.05,
4.23,
15.86
],
"name": "Days with daily min temperature LT -2 deg C",
"normal_id": 42,
"years": 23
},
{
"annual": 21.86,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
9.09,
6.61,
2.35,
0.04,
0,
0,
0,
0,
0,
0,
0.09,
3.68
],
"name": "Days with daily min temperature LT -10 deg C",
"normal_id": 43,
"years": 23
},
{
"annual": 1.22,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
0.96,
0.13,
0.04,
0,
0,
0,
0,
0,
0,
0,
0,
0.09
],
"name": "Days with daily min temperature LT -20 deg C",
"normal_id": 44,
"years": 23
},
{
"annual": 0,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2003,
"monthly": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"name": "Days with daily min temperature LT -30 deg C",
"normal_id": 45,
"years": 23
},
{
"annual": 714.02,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
29.08,
29.66,
33.64,
61.1,
81.98,
70.87,
63.94,
81.06,
84.71,
64.32,
75.42,
38.24
],
"name": "Total rainfall mm",
"normal_id": 52,
"years": 26
},
{
"annual": 30.97,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
26.92,
20.92,
23.51,
27.78,
27.02,
37.1,
26.21,
44.49,
46.54,
33.89,
32.71,
24.6
],
"name": "StdDev total rainfall mm",
"normal_id": 53,
"years": 26
},
{
"annual": 121.51,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
37.18,
27.02,
19.8,
4.99,
0,
0,
0,
0,
0,
0.06,
8.34,
24.12
],
"name": "Total snowfall cm",
"normal_id": 54,
"years": 26
},
{
"annual": 6.95,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
25.91,
15.37,
11.1,
5.28,
0,
0,
0,
0,
0,
0.25,
9.65,
15.89
],
"name": "StdDev total snowfall cm",
"normal_id": 55,
"years": 26
},
{
"annual": 831.11,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
61.51,
55.39,
53.67,
68.04,
81.98,
70.87,
63.94,
81.06,
84.71,
64.39,
84.06,
61.49
],
"name": "Total precipitation mm",
"normal_id": 56,
"years": 26
},
{
"annual": 32.46,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
31.05,
26.09,
26.71,
28.15,
27.02,
37.1,
26.21,
44.49,
46.54,
33.84,
34.76,
27.59
],
"name": "StdDev total precipitation mm",
"normal_id": 57,
"years": 26
},
{
"annual": 114.08,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
5.35,
4.77,
7.92,
11.17,
12.74,
10.96,
10.36,
10.23,
11.05,
11.65,
10.92,
6.96
],
"name": "Days with rainfall GE 0.2 mm",
"normal_id": 61,
"years": 26
},
{
"annual": 43.9,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
1.73,
1.69,
2.23,
4.17,
5.09,
4.35,
4.27,
4.32,
4.73,
4.48,
4.42,
2.42
],
"name": "Days with rainfall GE 5 mm",
"normal_id": 62,
"years": 26
},
{
"annual": 24.01,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
1,
1.08,
0.96,
1.91,
2.78,
2.39,
2.41,
2.5,
2.86,
2,
2.81,
1.31
],
"name": "Days with rainfall GE 10 mm",
"normal_id": 63,
"years": 26
},
{
"annual": 4.39,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
0.19,
0.15,
0.04,
0.22,
0.57,
0.52,
0.32,
0.91,
0.68,
0.17,
0.5,
0.12
],
"name": "Days with rainfall GE 25 mm",
"normal_id": 64,
"years": 26
},
{
"annual": 40.89,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
11.96,
8.65,
6.5,
2.23,
0,
0,
0,
0,
0,
0.08,
3.12,
8.35
],
"name": "Days with snowfall GE 0.2 cm",
"normal_id": 65,
"years": 26
},
{
"annual": 7.74,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
2.46,
1.62,
1.23,
0.35,
0,
0,
0,
0,
0,
0,
0.46,
1.62
],
"name": "Days with snowfall GE 5 cm",
"normal_id": 66,
"years": 26
},
{
"annual": 2.65,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
0.81,
0.73,
0.38,
0.12,
0,
0,
0,
0,
0,
0,
0.15,
0.46
],
"name": "Days with snowfall GE 10 cm",
"normal_id": 67,
"years": 26
},
{
"annual": 0.08,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
0.08,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"name": "Days with snowfall GE 25 cm",
"normal_id": 68,
"years": 26
},
{
"annual": 145.49,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
15.42,
11.58,
12.62,
12.61,
12.74,
10.96,
10.36,
10.23,
11.05,
11.65,
13.04,
13.23
],
"name": "Days with precipitation GE 0.2 mm",
"normal_id": 69,
"years": 26
},
{
"annual": 51.39,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
3.96,
3.19,
3.5,
4.61,
5.09,
4.35,
4.27,
4.32,
4.73,
4.48,
5.04,
3.85
],
"name": "Days with precipitation GE 5 mm",
"normal_id": 70,
"years": 26
},
{
"annual": 26.99,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
1.69,
1.73,
1.5,
2.13,
2.78,
2.39,
2.41,
2.5,
2.86,
2,
3.08,
1.92
],
"name": "Days with precipitation GE 10 mm",
"normal_id": 71,
"years": 26
},
{
"annual": 4.7,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
0.23,
0.27,
0.08,
0.26,
0.57,
0.52,
0.32,
0.91,
0.68,
0.17,
0.54,
0.15
],
"name": "Days with precipitation GE 25 mm",
"normal_id": 72,
"years": 26
},
{
"annual": 1.61,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
6.79,
6.43,
3.13,
0.16,
0,
0,
0,
0,
0,
0,
0.37,
2.49
],
"name": "Mean Daily Snow Depth cm",
"normal_id": 73,
"years": 26
},
{
"annual": 1.32,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
6.27,
5.71,
2.15,
0,
0,
0,
0,
0,
0,
0,
0,
1.73
],
"name": "Median Daily Snow Depth cm",
"normal_id": 74,
"years": 26
},
{
"annual": 64.5,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
19.96,
19.4,
11.42,
1.15,
0,
0,
0,
0,
0,
0,
1.88,
10.69
],
"name": "Days with snow depth GE 1 cm",
"normal_id": 76,
"years": 25
},
{
"annual": 43.31,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
15,
14.12,
7.23,
0.38,
0,
0,
0,
0,
0,
0,
0.77,
5.81
],
"name": "Days with snow depth GE 5 cm",
"normal_id": 77,
"years": 25
},
{
"annual": 24.47,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
9.8,
7.24,
4.12,
0.08,
0,
0,
0,
0,
0,
0,
0.46,
2.77
],
"name": "Days with snow depth GE 10 cm",
"normal_id": 78,
"years": 25
},
{
"annual": 5.17,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
1.88,
1.56,
0.81,
0,
0,
0,
0,
0,
0,
0,
0.04,
0.88
],
"name": "Days with snow depth GE 20 cm",
"normal_id": 79,
"years": 25
},
{
"annual": 0.2,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
0.2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"name": "Days with snow depth GE 50 cm",
"normal_id": 80,
"years": 25
},
{
"annual": 0,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"name": "Days with snow depth GE 100 cm",
"normal_id": 81,
"years": 25
},
{
"annual": 1.32,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
6.81,
4.88,
0.5,
0,
0,
0,
0,
0,
0,
0,
0,
3.62
],
"name": "Mean month end snow depth cm",
"normal_id": 82,
"years": 26
},
{
"annual": 3.45,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
1.27,
0.92,
0.5,
0.23,
0,
0,
0,
0,
0,
0,
0.15,
0.38
],
"name": "Days with freezing rain or freezing drizzle",
"normal_id": 83,
"years": 26
},
{
"annual": 20.96,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
0.31,
0.23,
0.5,
1.69,
2.83,
3.78,
4.14,
3.23,
2.59,
0.85,
0.5,
0.31
],
"name": "Days with thunderstorms",
"normal_id": 84,
"years": 26
},
{
"annual": 0.3,
"code": "A",
"date": null,
"first_year": 1981,
"last_year": 2006,
"monthly": [
0,
0,
0,
0.08,
0.09,
0.09,
0,
0,
0,
0.04,
0,
0
],
"name": "Days with hail",
"normal_id": 85,
"years": 26
},
{
"annual": 2066.26,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2001,
"monthly": [
85.85,
111.29,
161.02,
179.98,
227.69,
259.57,
279.63,
245.55,
194.38,
154.3,
88.92,
78.08
],
"name": "Total hours bright sunshine",
"normal_id": 102,
"years": 21
},
{
"annual": 304.8,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2001,
"monthly": [
21.19,
21.29,
25.14,
26.42,
28.26,
28.2,
30.05,
29.45,
27.15,
27.4,
20.55,
19.7
],
"name": "Days with measurable bright sunshine",
"normal_id": 103,
"years": 21
},
{
"annual": 44.47,
"code": "C",
"date": null,
"first_year": 1981,
"last_year": 2001,
"monthly": [
29.67,
37.68,
43.63,
44.75,
49.96,
56.26,
59.81,
56.68,
51.67,
45.06,
30.51,
27.99
],
"name": "Percent of daylight hours based on civil sunrise/sunset",
"normal_id": 105,
"years": 21
},
{
"annual": 4720.22,
"code": "D",
"date": null,
"first_year": 1981,
"last_year": 2000,
"monthly": [
150.42,
227.18,
382.5,
472.66,
604.56,
651.05,
674.56,
577.31,
421.73,
286.21,
150.57,
121.47
],
"name": "Total hourly global solar radiation RF1 mJ/m^2",
"normal_id": 106,
"years": 17
}
],
"lang": "en",
"licence_url": "https://eccc-msc.github.io/open-data/licence/readme_en/",
"observed_at_ms": 1792969238103,
"period": "1981-2010",
"source_url": "https://api.weather.gc.ca/collections/climate-normals/items?f=json&CLIMATE_IDENTIFIER=6158350&skipGeometry=true&limit=3000",
"station": {
"climate_id": "6158350",
"daily_first_date": "1840-03-01",
"daily_last_date": "2017-04-27",
"distance_km": null,
"elevation_m": 112.5,
"first_date": "1840-01-01",
"has_hourly": true,
"has_monthly_summary": true,
"has_normals": true,
"hourly_first_date": "1953-01-01",
"hourly_last_date": "1969-05-31",
"last_date": "2017-04-27",
"latitude": 43.666666666666664,
"longitude": -79.4,
"monthly_first_date": "1840-01-01",
"monthly_last_date": "2006-12-01",
"name": "TORONTO",
"operator": "Co-operative Climate Network",
"province": "ON",
"province_name": "ONTARIO",
"station_id": 5051,
"tc_id": null,
"timezone": "EST",
"wmo_id": "71266"
}
}Request contract
- Method and path: POST /apis/v1/api-weather-gc-ca/weather/climate-normals
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/climate-normals
{
"operationId": "api-weather-gc-ca.weather.climate-normals",
"method": "POST",
"path": "/apis/v1/api-weather-gc-ca/weather/climate-normals",
"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": "6158350"
}
}
},
"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"
},
"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"
]
}
}
},
"required": [
"climate_id"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
Response
Canadian Climate Normals 1981-2010 of one ECCC climate station, the normals period GeoMet publishes: every element (temperatures, degree days, days above or below thresholds, rain, snow, precipitation, snow depth, sunshine, frost dates...) with its 12 monthly values, annual value and quality code. The 1991-2020 normals are not on the open API. A station without normals answers an empty element list; 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 | |
elements | object[] | Elements ordered by ECCC normal id. |
lang | string | Language of the texts. |
licence_url | string | The ECCC Data Servers End-use Licence. |
observed_at_ms | number | When this program read the source, epoch milliseconds. |
period | string | Normals period, 1981-2010. |
source_url | string | The api.weather.gc.ca request this answer was read from. |
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.