curl --request POST \
--url https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/city-weather \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"city_id": "on-143"
}
'import requests
url = "https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/city-weather"
payload = { "city_id": "on-143" }
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({city_id: 'on-143'})
};
fetch('https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/city-weather', 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/city-weather",
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([
'city_id' => 'on-143'
]),
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/city-weather"
payload := strings.NewReader("{\n \"city_id\": \"on-143\"\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/city-weather")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"city_id\": \"on-143\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/city-weather")
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 \"city_id\": \"on-143\"\n}"
response = http.request(request)
puts response.read_body{
"attribution": "Data Source: Environment and Climate Change Canada",
"city": {
"id": "on-143",
"latitude": 43.65,
"longitude": -79.38,
"name": "Toronto",
"province": "ON",
"region": "City of Toronto",
"url": "https://weather.gc.ca/en/location/index.html?coords=43.65,-79.38"
},
"current": {
"condition": "Mostly Cloudy",
"dewpoint_c": 6.5,
"humidex": null,
"icon_code": 3,
"observed_at": "2026-10-25T22:00:00Z",
"pressure_change_kpa": 0.19,
"pressure_kpa": 102.9,
"pressure_tendency": "falling",
"relative_humidity_pct": 55,
"station": {
"code": "yyz",
"latitude": 43.68,
"longitude": -79.63,
"name": "Toronto Pearson Int'l Airport"
},
"temperature_c": 15.6,
"visibility_km": null,
"wind_bearing_deg": 152,
"wind_chill": -3,
"wind_direction": "SSE",
"wind_gust_kmh": 29,
"wind_speed_kmh": 9
},
"distance_km": null,
"forecast_issued_at": "2026-10-25T19:30:00Z",
"forecasts": [
{
"cloud_precip": "Partly cloudy.",
"frost_summary": null,
"humidex_summary": null,
"icon_code": 32,
"period": "Tonight",
"period_label": "Sunday night",
"precipitation_accumulation": null,
"precipitation_summary": null,
"relative_humidity_pct": 95,
"short_summary": "Partly cloudy",
"snow_level_summary": null,
"summary": "Partly cloudy. Low 10.",
"temperature_c": 10,
"temperature_class": "low",
"temperature_summary": "Low 10.",
"uv_category": null,
"uv_index": null,
"visibility_summary": null,
"wind_chill_summary": null,
"wind_summary": null
},
{
"cloud_precip": "Increasing cloudiness early in the morning. 30 percent chance of showers late in the morning and early afternoon.",
"frost_summary": null,
"humidex_summary": null,
"icon_code": 6,
"period": "Monday",
"period_label": "Monday",
"precipitation_accumulation": null,
"precipitation_summary": null,
"relative_humidity_pct": 50,
"short_summary": "Chance of showers",
"snow_level_summary": null,
"summary": "Increasing cloudiness early in the morning. 30 percent chance of showers late in the morning and early afternoon. Wind becoming north 20 km/h gusting to 40 in the morning. High 16. UV index 3 or moderate.",
"temperature_c": 16,
"temperature_class": "high",
"temperature_summary": "High 16.",
"uv_category": "moderate",
"uv_index": 3,
"visibility_summary": null,
"wind_chill_summary": null,
"wind_summary": "Wind becoming north 20 km/h gusting to 40 in the morning."
},
{
"cloud_precip": "Clearing in the evening.",
"frost_summary": "risk of frost.",
"humidex_summary": null,
"icon_code": 35,
"period": "Monday night",
"period_label": "Monday night",
"precipitation_accumulation": null,
"precipitation_summary": null,
"relative_humidity_pct": 65,
"short_summary": "Clearing",
"snow_level_summary": null,
"summary": "Clearing in the evening. Wind north 20 km/h gusting to 40. Low plus 2 with risk of frost.",
"temperature_c": 2,
"temperature_class": "low",
"temperature_summary": "Low plus 2 with risk of frost.",
"uv_category": null,
"uv_index": null,
"visibility_summary": null,
"wind_chill_summary": null,
"wind_summary": "Wind north 20 km/h gusting to 40."
},
{
"cloud_precip": "Sunny.",
"frost_summary": null,
"humidex_summary": null,
"icon_code": 0,
"period": "Tuesday",
"period_label": "Tuesday",
"precipitation_accumulation": null,
"precipitation_summary": null,
"relative_humidity_pct": 60,
"short_summary": "Sunny",
"snow_level_summary": null,
"summary": "Sunny. High 11.",
"temperature_c": 11,
"temperature_class": "high",
"temperature_summary": "High 11.",
"uv_category": null,
"uv_index": null,
"visibility_summary": null,
"wind_chill_summary": null,
"wind_summary": null
},
{
"cloud_precip": "Clear.",
"frost_summary": null,
"humidex_summary": null,
"icon_code": 30,
"period": "Tuesday night",
"period_label": "Tuesday night",
"precipitation_accumulation": null,
"precipitation_summary": null,
"relative_humidity_pct": 95,
"short_summary": "Clear",
"snow_level_summary": null,
"summary": "Clear. Low plus 4.",
"temperature_c": 4,
"temperature_class": "low",
"temperature_summary": "Low plus 4.",
"uv_category": null,
"uv_index": null,
"visibility_summary": null,
"wind_chill_summary": null,
"wind_summary": null
},
{
"cloud_precip": "A mix of sun and cloud.",
"frost_summary": null,
"humidex_summary": null,
"icon_code": 2,
"period": "Wednesday",
"period_label": "Wednesday",
"precipitation_accumulation": null,
"precipitation_summary": null,
"relative_humidity_pct": 60,
"short_summary": "A mix of sun and cloud",
"snow_level_summary": null,
"summary": "A mix of sun and cloud. High 16.",
"temperature_c": 16,
"temperature_class": "high",
"temperature_summary": "High 16.",
"uv_category": null,
"uv_index": null,
"visibility_summary": null,
"wind_chill_summary": null,
"wind_summary": null
},
{
"cloud_precip": "Cloudy periods.",
"frost_summary": null,
"humidex_summary": null,
"icon_code": 32,
"period": "Wednesday night",
"period_label": "Wednesday night",
"precipitation_accumulation": null,
"precipitation_summary": null,
"relative_humidity_pct": 95,
"short_summary": "Cloudy periods",
"snow_level_summary": null,
"summary": "Cloudy periods. Low 8.",
"temperature_c": 8,
"temperature_class": "low",
"temperature_summary": "Low 8.",
"uv_category": null,
"uv_index": null,
"visibility_summary": null,
"wind_chill_summary": null,
"wind_summary": null
},
{
"cloud_precip": "A mix of sun and cloud with 30 percent chance of showers.",
"frost_summary": null,
"humidex_summary": null,
"icon_code": 6,
"period": "Thursday",
"period_label": "Thursday",
"precipitation_accumulation": null,
"precipitation_summary": null,
"relative_humidity_pct": 65,
"short_summary": "Chance of showers",
"snow_level_summary": null,
"summary": "A mix of sun and cloud with 30 percent chance of showers. High 19.",
"temperature_c": 19,
"temperature_class": "high",
"temperature_summary": "High 19.",
"uv_category": null,
"uv_index": null,
"visibility_summary": null,
"wind_chill_summary": null,
"wind_summary": null
},
{
"cloud_precip": "Cloudy with 30 percent chance of showers.",
"frost_summary": null,
"humidex_summary": null,
"icon_code": 12,
"period": "Thursday night",
"period_label": "Thursday night",
"precipitation_accumulation": null,
"precipitation_summary": null,
"relative_humidity_pct": 100,
"short_summary": "Chance of showers",
"snow_level_summary": null,
"summary": "Cloudy with 30 percent chance of showers. Low 10.",
"temperature_c": 10,
"temperature_class": "low",
"temperature_summary": "Low 10.",
"uv_category": null,
"uv_index": null,
"visibility_summary": null,
"wind_chill_summary": null,
"wind_summary": null
},
{
"cloud_precip": "Cloudy.",
"frost_summary": null,
"humidex_summary": null,
"icon_code": 10,
"period": "Friday",
"period_label": "Friday",
"precipitation_accumulation": null,
"precipitation_summary": null,
"relative_humidity_pct": 70,
"short_summary": "Cloudy",
"snow_level_summary": null,
"summary": "Cloudy. High 16.",
"temperature_c": 16,
"temperature_class": "high",
"temperature_summary": "High 16.",
"uv_category": null,
"uv_index": null,
"visibility_summary": null,
"wind_chill_summary": null,
"wind_summary": null
},
{
"cloud_precip": "Cloudy.",
"frost_summary": null,
"humidex_summary": null,
"icon_code": 10,
"period": "Friday night",
"period_label": "Friday night",
"precipitation_accumulation": null,
"precipitation_summary": null,
"relative_humidity_pct": 100,
"short_summary": "Cloudy",
"snow_level_summary": null,
"summary": "Cloudy. Low 9.",
"temperature_c": 9,
"temperature_class": "low",
"temperature_summary": "Low 9.",
"uv_category": null,
"uv_index": null,
"visibility_summary": null,
"wind_chill_summary": null,
"wind_summary": null
},
{
"cloud_precip": "Cloudy.",
"frost_summary": null,
"humidex_summary": null,
"icon_code": 10,
"period": "Saturday",
"period_label": "Saturday",
"precipitation_accumulation": null,
"precipitation_summary": null,
"relative_humidity_pct": 80,
"short_summary": "Cloudy",
"snow_level_summary": null,
"summary": "Cloudy. High 15.",
"temperature_c": 15,
"temperature_class": "high",
"temperature_summary": "High 15.",
"uv_category": null,
"uv_index": null,
"visibility_summary": null,
"wind_chill_summary": null,
"wind_summary": null
}
],
"hourly": [
{
"condition": "Partly cloudy",
"humidex": null,
"icon_code": 32,
"precip_category": "Low",
"precip_probability_pct": 10,
"temperature_c": 15,
"time": "2026-10-25T23:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "VR",
"wind_gust_kmh": null,
"wind_speed_kmh": 5
},
{
"condition": "Partly cloudy",
"humidex": null,
"icon_code": 32,
"precip_category": "Low",
"precip_probability_pct": 10,
"temperature_c": 14,
"time": "2026-10-26T00:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "VR",
"wind_gust_kmh": null,
"wind_speed_kmh": 5
},
{
"condition": "Partly cloudy",
"humidex": null,
"icon_code": 32,
"precip_category": "Low",
"precip_probability_pct": 10,
"temperature_c": 14,
"time": "2026-10-26T01:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "VR",
"wind_gust_kmh": null,
"wind_speed_kmh": 5
},
{
"condition": "Partly cloudy",
"humidex": null,
"icon_code": 32,
"precip_category": "Low",
"precip_probability_pct": 10,
"temperature_c": 14,
"time": "2026-10-26T02:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "VR",
"wind_gust_kmh": null,
"wind_speed_kmh": 5
},
{
"condition": "Partly cloudy",
"humidex": null,
"icon_code": 32,
"precip_category": "Low",
"precip_probability_pct": 10,
"temperature_c": 14,
"time": "2026-10-26T03:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "VR",
"wind_gust_kmh": null,
"wind_speed_kmh": 5
},
{
"condition": "A few clouds",
"humidex": null,
"icon_code": 31,
"precip_category": "Low",
"precip_probability_pct": 10,
"temperature_c": 13,
"time": "2026-10-26T04:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "VR",
"wind_gust_kmh": null,
"wind_speed_kmh": 5
},
{
"condition": "A few clouds",
"humidex": null,
"icon_code": 31,
"precip_category": "Low",
"precip_probability_pct": 10,
"temperature_c": 12,
"time": "2026-10-26T05:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "VR",
"wind_gust_kmh": null,
"wind_speed_kmh": 5
},
{
"condition": "A few clouds",
"humidex": null,
"icon_code": 31,
"precip_category": "Low",
"precip_probability_pct": 10,
"temperature_c": 11,
"time": "2026-10-26T06:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "VR",
"wind_gust_kmh": null,
"wind_speed_kmh": 5
},
{
"condition": "A few clouds",
"humidex": null,
"icon_code": 31,
"precip_category": "Low",
"precip_probability_pct": 10,
"temperature_c": 11,
"time": "2026-10-26T07:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "VR",
"wind_gust_kmh": null,
"wind_speed_kmh": 5
},
{
"condition": "A few clouds",
"humidex": null,
"icon_code": 31,
"precip_category": "Low",
"precip_probability_pct": 10,
"temperature_c": 10,
"time": "2026-10-26T08:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "VR",
"wind_gust_kmh": null,
"wind_speed_kmh": 5
},
{
"condition": "A few clouds",
"humidex": null,
"icon_code": 31,
"precip_category": "Low",
"precip_probability_pct": 10,
"temperature_c": 10,
"time": "2026-10-26T09:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "VR",
"wind_gust_kmh": null,
"wind_speed_kmh": 5
},
{
"condition": "A few clouds",
"humidex": null,
"icon_code": 31,
"precip_category": "Low",
"precip_probability_pct": 20,
"temperature_c": 10,
"time": "2026-10-26T10:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "VR",
"wind_gust_kmh": null,
"wind_speed_kmh": 5
},
{
"condition": "A few clouds",
"humidex": null,
"icon_code": 31,
"precip_category": "Low",
"precip_probability_pct": 20,
"temperature_c": 10,
"time": "2026-10-26T11:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "VR",
"wind_gust_kmh": null,
"wind_speed_kmh": 5
},
{
"condition": "A mix of sun and cloud",
"humidex": null,
"icon_code": 2,
"precip_category": "Low",
"precip_probability_pct": 20,
"temperature_c": 10,
"time": "2026-10-26T12:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "NW",
"wind_gust_kmh": null,
"wind_speed_kmh": 20
},
{
"condition": "A mix of sun and cloud",
"humidex": null,
"icon_code": 2,
"precip_category": "Low",
"precip_probability_pct": 20,
"temperature_c": 11,
"time": "2026-10-26T13:00:00Z",
"uv_index": 1,
"wind_chill": null,
"wind_direction": "NW",
"wind_gust_kmh": null,
"wind_speed_kmh": 20
},
{
"condition": "Chance of showers",
"humidex": null,
"icon_code": 6,
"precip_category": "Low",
"precip_probability_pct": 30,
"temperature_c": 12,
"time": "2026-10-26T14:00:00Z",
"uv_index": 2,
"wind_chill": null,
"wind_direction": "NW",
"wind_gust_kmh": null,
"wind_speed_kmh": 20
},
{
"condition": "Chance of showers",
"humidex": null,
"icon_code": 6,
"precip_category": "Low",
"precip_probability_pct": 30,
"temperature_c": 13,
"time": "2026-10-26T15:00:00Z",
"uv_index": 3,
"wind_chill": null,
"wind_direction": "NW",
"wind_gust_kmh": null,
"wind_speed_kmh": 20
},
{
"condition": "Chance of showers",
"humidex": null,
"icon_code": 6,
"precip_category": "Low",
"precip_probability_pct": 30,
"temperature_c": 14,
"time": "2026-10-26T16:00:00Z",
"uv_index": 3,
"wind_chill": null,
"wind_direction": "NW",
"wind_gust_kmh": null,
"wind_speed_kmh": 20
},
{
"condition": "Chance of showers",
"humidex": null,
"icon_code": 6,
"precip_category": "Low",
"precip_probability_pct": 30,
"temperature_c": 15,
"time": "2026-10-26T17:00:00Z",
"uv_index": 3,
"wind_chill": null,
"wind_direction": "NW",
"wind_gust_kmh": null,
"wind_speed_kmh": 20
},
{
"condition": "Chance of showers",
"humidex": null,
"icon_code": 6,
"precip_category": "Low",
"precip_probability_pct": 30,
"temperature_c": 16,
"time": "2026-10-26T18:00:00Z",
"uv_index": 2,
"wind_chill": null,
"wind_direction": "NW",
"wind_gust_kmh": null,
"wind_speed_kmh": 20
},
{
"condition": "Mainly cloudy",
"humidex": null,
"icon_code": 3,
"precip_category": "Low",
"precip_probability_pct": 20,
"temperature_c": 15,
"time": "2026-10-26T19:00:00Z",
"uv_index": 1,
"wind_chill": null,
"wind_direction": "N",
"wind_gust_kmh": 40,
"wind_speed_kmh": 20
},
{
"condition": "Mainly cloudy",
"humidex": null,
"icon_code": 3,
"precip_category": "Low",
"precip_probability_pct": 20,
"temperature_c": 15,
"time": "2026-10-26T20:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "N",
"wind_gust_kmh": 40,
"wind_speed_kmh": 20
},
{
"condition": "Mainly cloudy",
"humidex": null,
"icon_code": 3,
"precip_category": "Low",
"precip_probability_pct": 20,
"temperature_c": 14,
"time": "2026-10-26T21:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "N",
"wind_gust_kmh": 40,
"wind_speed_kmh": 20
},
{
"condition": "Mainly cloudy",
"humidex": null,
"icon_code": 33,
"precip_category": "Low",
"precip_probability_pct": 10,
"temperature_c": 13,
"time": "2026-10-26T22:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "N",
"wind_gust_kmh": 40,
"wind_speed_kmh": 20
}
],
"hourly_issued_at": "2026-10-25T15:30:00Z",
"lang": "en",
"last_updated": "2026-10-25T22:01:13Z",
"licence_url": "https://eccc-msc.github.io/open-data/licence/readme_en/",
"matched_by": "city_id",
"observed_at_ms": 1792969236960,
"regional_normals": {
"high_c": 11,
"low_c": 4,
"summary": "Low plus 4. High 11."
},
"source_url": "https://api.weather.gc.ca/collections/citypageweather-realtime/items/on-143?f=json",
"sunrise": "2026-10-25T11:44:00Z",
"sunset": "2026-10-25T22:19:00Z",
"warnings": []
}City weather
Weather now and the forecast for a Canadian city or a coordinate in Canada. For alerts beyond the city page use weather_alerts; for past weather use climate_daily.
curl --request POST \
--url https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/city-weather \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"city_id": "on-143"
}
'import requests
url = "https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/city-weather"
payload = { "city_id": "on-143" }
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({city_id: 'on-143'})
};
fetch('https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/city-weather', 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/city-weather",
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([
'city_id' => 'on-143'
]),
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/city-weather"
payload := strings.NewReader("{\n \"city_id\": \"on-143\"\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/city-weather")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"city_id\": \"on-143\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/city-weather")
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 \"city_id\": \"on-143\"\n}"
response = http.request(request)
puts response.read_body{
"attribution": "Data Source: Environment and Climate Change Canada",
"city": {
"id": "on-143",
"latitude": 43.65,
"longitude": -79.38,
"name": "Toronto",
"province": "ON",
"region": "City of Toronto",
"url": "https://weather.gc.ca/en/location/index.html?coords=43.65,-79.38"
},
"current": {
"condition": "Mostly Cloudy",
"dewpoint_c": 6.5,
"humidex": null,
"icon_code": 3,
"observed_at": "2026-10-25T22:00:00Z",
"pressure_change_kpa": 0.19,
"pressure_kpa": 102.9,
"pressure_tendency": "falling",
"relative_humidity_pct": 55,
"station": {
"code": "yyz",
"latitude": 43.68,
"longitude": -79.63,
"name": "Toronto Pearson Int'l Airport"
},
"temperature_c": 15.6,
"visibility_km": null,
"wind_bearing_deg": 152,
"wind_chill": -3,
"wind_direction": "SSE",
"wind_gust_kmh": 29,
"wind_speed_kmh": 9
},
"distance_km": null,
"forecast_issued_at": "2026-10-25T19:30:00Z",
"forecasts": [
{
"cloud_precip": "Partly cloudy.",
"frost_summary": null,
"humidex_summary": null,
"icon_code": 32,
"period": "Tonight",
"period_label": "Sunday night",
"precipitation_accumulation": null,
"precipitation_summary": null,
"relative_humidity_pct": 95,
"short_summary": "Partly cloudy",
"snow_level_summary": null,
"summary": "Partly cloudy. Low 10.",
"temperature_c": 10,
"temperature_class": "low",
"temperature_summary": "Low 10.",
"uv_category": null,
"uv_index": null,
"visibility_summary": null,
"wind_chill_summary": null,
"wind_summary": null
},
{
"cloud_precip": "Increasing cloudiness early in the morning. 30 percent chance of showers late in the morning and early afternoon.",
"frost_summary": null,
"humidex_summary": null,
"icon_code": 6,
"period": "Monday",
"period_label": "Monday",
"precipitation_accumulation": null,
"precipitation_summary": null,
"relative_humidity_pct": 50,
"short_summary": "Chance of showers",
"snow_level_summary": null,
"summary": "Increasing cloudiness early in the morning. 30 percent chance of showers late in the morning and early afternoon. Wind becoming north 20 km/h gusting to 40 in the morning. High 16. UV index 3 or moderate.",
"temperature_c": 16,
"temperature_class": "high",
"temperature_summary": "High 16.",
"uv_category": "moderate",
"uv_index": 3,
"visibility_summary": null,
"wind_chill_summary": null,
"wind_summary": "Wind becoming north 20 km/h gusting to 40 in the morning."
},
{
"cloud_precip": "Clearing in the evening.",
"frost_summary": "risk of frost.",
"humidex_summary": null,
"icon_code": 35,
"period": "Monday night",
"period_label": "Monday night",
"precipitation_accumulation": null,
"precipitation_summary": null,
"relative_humidity_pct": 65,
"short_summary": "Clearing",
"snow_level_summary": null,
"summary": "Clearing in the evening. Wind north 20 km/h gusting to 40. Low plus 2 with risk of frost.",
"temperature_c": 2,
"temperature_class": "low",
"temperature_summary": "Low plus 2 with risk of frost.",
"uv_category": null,
"uv_index": null,
"visibility_summary": null,
"wind_chill_summary": null,
"wind_summary": "Wind north 20 km/h gusting to 40."
},
{
"cloud_precip": "Sunny.",
"frost_summary": null,
"humidex_summary": null,
"icon_code": 0,
"period": "Tuesday",
"period_label": "Tuesday",
"precipitation_accumulation": null,
"precipitation_summary": null,
"relative_humidity_pct": 60,
"short_summary": "Sunny",
"snow_level_summary": null,
"summary": "Sunny. High 11.",
"temperature_c": 11,
"temperature_class": "high",
"temperature_summary": "High 11.",
"uv_category": null,
"uv_index": null,
"visibility_summary": null,
"wind_chill_summary": null,
"wind_summary": null
},
{
"cloud_precip": "Clear.",
"frost_summary": null,
"humidex_summary": null,
"icon_code": 30,
"period": "Tuesday night",
"period_label": "Tuesday night",
"precipitation_accumulation": null,
"precipitation_summary": null,
"relative_humidity_pct": 95,
"short_summary": "Clear",
"snow_level_summary": null,
"summary": "Clear. Low plus 4.",
"temperature_c": 4,
"temperature_class": "low",
"temperature_summary": "Low plus 4.",
"uv_category": null,
"uv_index": null,
"visibility_summary": null,
"wind_chill_summary": null,
"wind_summary": null
},
{
"cloud_precip": "A mix of sun and cloud.",
"frost_summary": null,
"humidex_summary": null,
"icon_code": 2,
"period": "Wednesday",
"period_label": "Wednesday",
"precipitation_accumulation": null,
"precipitation_summary": null,
"relative_humidity_pct": 60,
"short_summary": "A mix of sun and cloud",
"snow_level_summary": null,
"summary": "A mix of sun and cloud. High 16.",
"temperature_c": 16,
"temperature_class": "high",
"temperature_summary": "High 16.",
"uv_category": null,
"uv_index": null,
"visibility_summary": null,
"wind_chill_summary": null,
"wind_summary": null
},
{
"cloud_precip": "Cloudy periods.",
"frost_summary": null,
"humidex_summary": null,
"icon_code": 32,
"period": "Wednesday night",
"period_label": "Wednesday night",
"precipitation_accumulation": null,
"precipitation_summary": null,
"relative_humidity_pct": 95,
"short_summary": "Cloudy periods",
"snow_level_summary": null,
"summary": "Cloudy periods. Low 8.",
"temperature_c": 8,
"temperature_class": "low",
"temperature_summary": "Low 8.",
"uv_category": null,
"uv_index": null,
"visibility_summary": null,
"wind_chill_summary": null,
"wind_summary": null
},
{
"cloud_precip": "A mix of sun and cloud with 30 percent chance of showers.",
"frost_summary": null,
"humidex_summary": null,
"icon_code": 6,
"period": "Thursday",
"period_label": "Thursday",
"precipitation_accumulation": null,
"precipitation_summary": null,
"relative_humidity_pct": 65,
"short_summary": "Chance of showers",
"snow_level_summary": null,
"summary": "A mix of sun and cloud with 30 percent chance of showers. High 19.",
"temperature_c": 19,
"temperature_class": "high",
"temperature_summary": "High 19.",
"uv_category": null,
"uv_index": null,
"visibility_summary": null,
"wind_chill_summary": null,
"wind_summary": null
},
{
"cloud_precip": "Cloudy with 30 percent chance of showers.",
"frost_summary": null,
"humidex_summary": null,
"icon_code": 12,
"period": "Thursday night",
"period_label": "Thursday night",
"precipitation_accumulation": null,
"precipitation_summary": null,
"relative_humidity_pct": 100,
"short_summary": "Chance of showers",
"snow_level_summary": null,
"summary": "Cloudy with 30 percent chance of showers. Low 10.",
"temperature_c": 10,
"temperature_class": "low",
"temperature_summary": "Low 10.",
"uv_category": null,
"uv_index": null,
"visibility_summary": null,
"wind_chill_summary": null,
"wind_summary": null
},
{
"cloud_precip": "Cloudy.",
"frost_summary": null,
"humidex_summary": null,
"icon_code": 10,
"period": "Friday",
"period_label": "Friday",
"precipitation_accumulation": null,
"precipitation_summary": null,
"relative_humidity_pct": 70,
"short_summary": "Cloudy",
"snow_level_summary": null,
"summary": "Cloudy. High 16.",
"temperature_c": 16,
"temperature_class": "high",
"temperature_summary": "High 16.",
"uv_category": null,
"uv_index": null,
"visibility_summary": null,
"wind_chill_summary": null,
"wind_summary": null
},
{
"cloud_precip": "Cloudy.",
"frost_summary": null,
"humidex_summary": null,
"icon_code": 10,
"period": "Friday night",
"period_label": "Friday night",
"precipitation_accumulation": null,
"precipitation_summary": null,
"relative_humidity_pct": 100,
"short_summary": "Cloudy",
"snow_level_summary": null,
"summary": "Cloudy. Low 9.",
"temperature_c": 9,
"temperature_class": "low",
"temperature_summary": "Low 9.",
"uv_category": null,
"uv_index": null,
"visibility_summary": null,
"wind_chill_summary": null,
"wind_summary": null
},
{
"cloud_precip": "Cloudy.",
"frost_summary": null,
"humidex_summary": null,
"icon_code": 10,
"period": "Saturday",
"period_label": "Saturday",
"precipitation_accumulation": null,
"precipitation_summary": null,
"relative_humidity_pct": 80,
"short_summary": "Cloudy",
"snow_level_summary": null,
"summary": "Cloudy. High 15.",
"temperature_c": 15,
"temperature_class": "high",
"temperature_summary": "High 15.",
"uv_category": null,
"uv_index": null,
"visibility_summary": null,
"wind_chill_summary": null,
"wind_summary": null
}
],
"hourly": [
{
"condition": "Partly cloudy",
"humidex": null,
"icon_code": 32,
"precip_category": "Low",
"precip_probability_pct": 10,
"temperature_c": 15,
"time": "2026-10-25T23:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "VR",
"wind_gust_kmh": null,
"wind_speed_kmh": 5
},
{
"condition": "Partly cloudy",
"humidex": null,
"icon_code": 32,
"precip_category": "Low",
"precip_probability_pct": 10,
"temperature_c": 14,
"time": "2026-10-26T00:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "VR",
"wind_gust_kmh": null,
"wind_speed_kmh": 5
},
{
"condition": "Partly cloudy",
"humidex": null,
"icon_code": 32,
"precip_category": "Low",
"precip_probability_pct": 10,
"temperature_c": 14,
"time": "2026-10-26T01:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "VR",
"wind_gust_kmh": null,
"wind_speed_kmh": 5
},
{
"condition": "Partly cloudy",
"humidex": null,
"icon_code": 32,
"precip_category": "Low",
"precip_probability_pct": 10,
"temperature_c": 14,
"time": "2026-10-26T02:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "VR",
"wind_gust_kmh": null,
"wind_speed_kmh": 5
},
{
"condition": "Partly cloudy",
"humidex": null,
"icon_code": 32,
"precip_category": "Low",
"precip_probability_pct": 10,
"temperature_c": 14,
"time": "2026-10-26T03:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "VR",
"wind_gust_kmh": null,
"wind_speed_kmh": 5
},
{
"condition": "A few clouds",
"humidex": null,
"icon_code": 31,
"precip_category": "Low",
"precip_probability_pct": 10,
"temperature_c": 13,
"time": "2026-10-26T04:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "VR",
"wind_gust_kmh": null,
"wind_speed_kmh": 5
},
{
"condition": "A few clouds",
"humidex": null,
"icon_code": 31,
"precip_category": "Low",
"precip_probability_pct": 10,
"temperature_c": 12,
"time": "2026-10-26T05:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "VR",
"wind_gust_kmh": null,
"wind_speed_kmh": 5
},
{
"condition": "A few clouds",
"humidex": null,
"icon_code": 31,
"precip_category": "Low",
"precip_probability_pct": 10,
"temperature_c": 11,
"time": "2026-10-26T06:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "VR",
"wind_gust_kmh": null,
"wind_speed_kmh": 5
},
{
"condition": "A few clouds",
"humidex": null,
"icon_code": 31,
"precip_category": "Low",
"precip_probability_pct": 10,
"temperature_c": 11,
"time": "2026-10-26T07:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "VR",
"wind_gust_kmh": null,
"wind_speed_kmh": 5
},
{
"condition": "A few clouds",
"humidex": null,
"icon_code": 31,
"precip_category": "Low",
"precip_probability_pct": 10,
"temperature_c": 10,
"time": "2026-10-26T08:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "VR",
"wind_gust_kmh": null,
"wind_speed_kmh": 5
},
{
"condition": "A few clouds",
"humidex": null,
"icon_code": 31,
"precip_category": "Low",
"precip_probability_pct": 10,
"temperature_c": 10,
"time": "2026-10-26T09:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "VR",
"wind_gust_kmh": null,
"wind_speed_kmh": 5
},
{
"condition": "A few clouds",
"humidex": null,
"icon_code": 31,
"precip_category": "Low",
"precip_probability_pct": 20,
"temperature_c": 10,
"time": "2026-10-26T10:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "VR",
"wind_gust_kmh": null,
"wind_speed_kmh": 5
},
{
"condition": "A few clouds",
"humidex": null,
"icon_code": 31,
"precip_category": "Low",
"precip_probability_pct": 20,
"temperature_c": 10,
"time": "2026-10-26T11:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "VR",
"wind_gust_kmh": null,
"wind_speed_kmh": 5
},
{
"condition": "A mix of sun and cloud",
"humidex": null,
"icon_code": 2,
"precip_category": "Low",
"precip_probability_pct": 20,
"temperature_c": 10,
"time": "2026-10-26T12:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "NW",
"wind_gust_kmh": null,
"wind_speed_kmh": 20
},
{
"condition": "A mix of sun and cloud",
"humidex": null,
"icon_code": 2,
"precip_category": "Low",
"precip_probability_pct": 20,
"temperature_c": 11,
"time": "2026-10-26T13:00:00Z",
"uv_index": 1,
"wind_chill": null,
"wind_direction": "NW",
"wind_gust_kmh": null,
"wind_speed_kmh": 20
},
{
"condition": "Chance of showers",
"humidex": null,
"icon_code": 6,
"precip_category": "Low",
"precip_probability_pct": 30,
"temperature_c": 12,
"time": "2026-10-26T14:00:00Z",
"uv_index": 2,
"wind_chill": null,
"wind_direction": "NW",
"wind_gust_kmh": null,
"wind_speed_kmh": 20
},
{
"condition": "Chance of showers",
"humidex": null,
"icon_code": 6,
"precip_category": "Low",
"precip_probability_pct": 30,
"temperature_c": 13,
"time": "2026-10-26T15:00:00Z",
"uv_index": 3,
"wind_chill": null,
"wind_direction": "NW",
"wind_gust_kmh": null,
"wind_speed_kmh": 20
},
{
"condition": "Chance of showers",
"humidex": null,
"icon_code": 6,
"precip_category": "Low",
"precip_probability_pct": 30,
"temperature_c": 14,
"time": "2026-10-26T16:00:00Z",
"uv_index": 3,
"wind_chill": null,
"wind_direction": "NW",
"wind_gust_kmh": null,
"wind_speed_kmh": 20
},
{
"condition": "Chance of showers",
"humidex": null,
"icon_code": 6,
"precip_category": "Low",
"precip_probability_pct": 30,
"temperature_c": 15,
"time": "2026-10-26T17:00:00Z",
"uv_index": 3,
"wind_chill": null,
"wind_direction": "NW",
"wind_gust_kmh": null,
"wind_speed_kmh": 20
},
{
"condition": "Chance of showers",
"humidex": null,
"icon_code": 6,
"precip_category": "Low",
"precip_probability_pct": 30,
"temperature_c": 16,
"time": "2026-10-26T18:00:00Z",
"uv_index": 2,
"wind_chill": null,
"wind_direction": "NW",
"wind_gust_kmh": null,
"wind_speed_kmh": 20
},
{
"condition": "Mainly cloudy",
"humidex": null,
"icon_code": 3,
"precip_category": "Low",
"precip_probability_pct": 20,
"temperature_c": 15,
"time": "2026-10-26T19:00:00Z",
"uv_index": 1,
"wind_chill": null,
"wind_direction": "N",
"wind_gust_kmh": 40,
"wind_speed_kmh": 20
},
{
"condition": "Mainly cloudy",
"humidex": null,
"icon_code": 3,
"precip_category": "Low",
"precip_probability_pct": 20,
"temperature_c": 15,
"time": "2026-10-26T20:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "N",
"wind_gust_kmh": 40,
"wind_speed_kmh": 20
},
{
"condition": "Mainly cloudy",
"humidex": null,
"icon_code": 3,
"precip_category": "Low",
"precip_probability_pct": 20,
"temperature_c": 14,
"time": "2026-10-26T21:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "N",
"wind_gust_kmh": 40,
"wind_speed_kmh": 20
},
{
"condition": "Mainly cloudy",
"humidex": null,
"icon_code": 33,
"precip_category": "Low",
"precip_probability_pct": 10,
"temperature_c": 13,
"time": "2026-10-26T22:00:00Z",
"uv_index": null,
"wind_chill": null,
"wind_direction": "N",
"wind_gust_kmh": 40,
"wind_speed_kmh": 20
}
],
"hourly_issued_at": "2026-10-25T15:30:00Z",
"lang": "en",
"last_updated": "2026-10-25T22:01:13Z",
"licence_url": "https://eccc-msc.github.io/open-data/licence/readme_en/",
"matched_by": "city_id",
"observed_at_ms": 1792969236960,
"regional_normals": {
"high_c": 11,
"low_c": 4,
"summary": "Low plus 4. High 11."
},
"source_url": "https://api.weather.gc.ca/collections/citypageweather-realtime/items/on-143?f=json",
"sunrise": "2026-10-25T11:44:00Z",
"sunset": "2026-10-25T22:19:00Z",
"warnings": []
}请求规范
- 方法与路径: POST /apis/v1/api-weather-gc-ca/weather/city-weather
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/city-weather
{
"operationId": "api-weather-gc-ca.weather.city-weather",
"method": "POST",
"path": "/apis/v1/api-weather-gc-ca/weather/city-weather",
"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": {
"city_id": "on-143"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"city_id": {
"description": "ECCC city page id, province code plus number: on-143 Toronto, qc-147 Montreal, bc-74 Vancouver, ab-52 Calgary, ns-19 Halifax. Find ids with find_cities. Pattern: ^[A-Za-z]{2}-[0-9A-Za-z]+$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"include_hourly": {
"description": "Include the hourly forecast (24 hours).",
"type": "boolean",
"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"
]
}
},
"lat": {
"description": "Latitude in decimal degrees (Canada spans about 41 to 84). Give with lon.\n\nProvider reference: minimum -90; maximum 90.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 90,
"min": -90
}
},
"lon": {
"description": "Longitude in decimal degrees, west negative (Canada spans about -142 to -52). Give with lat.\n\nProvider reference: minimum -180; maximum 180.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 180,
"min": -180
}
},
"query": {
"description": "City or place name, English or French, accents optional (Toronto, Montreal, Quebec, St. John's).",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
}
},
"type": "object"
}
}
},
"required": false
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
按实际用量收费。 默认请求预估费用:$0.0005 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
请求体
响应
Current conditions, the 6-to-7-day public forecast, the 24-hour hourly forecast, active warnings, regional normals and sunrise/sunset for one ECCC city forecast location (the data behind weather.gc.ca/en/location and the city pages), in English or French. Choose the location by city_id, by lat/lon (nearest of the ~840 ECCC forecast locations) or by name query (best match: exact name, prefix, contains, then region). An unknown city_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. |
city | object | |
current | object | Latest hourly observation; null when the page has none. |
distance_km | number | Distance from lat/lon to the city location; null otherwise. |
forecast_issued_at | string | |
forecasts | object[] | Forecast periods in order (day and night). |
hourly | object[] | Hourly forecast; empty when include_hourly is false. |
hourly_issued_at | string | |
lang | string | Language of the texts. |
last_updated | string | |
licence_url | string | The ECCC Data Servers End-use Licence. |
matched_by | string | |
observed_at_ms | number | When this program read the source, epoch milliseconds. |
regional_normals | object | Normal high and low for the date. |
source_url | string | The api.weather.gc.ca request this answer was read from. |
sunrise | string | |
sunset | string | |
warnings | object[] | Warnings, watches and statements in effect for the location; empty when none. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.