Air quality
curl --request POST \
--url https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/air-quality \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"location_id": "FEUZB"
}
'import requests
url = "https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/air-quality"
payload = { "location_id": "FEUZB" }
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({location_id: 'FEUZB'})
};
fetch('https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/air-quality', 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/air-quality",
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([
'location_id' => 'FEUZB'
]),
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/air-quality"
payload := strings.NewReader("{\n \"location_id\": \"FEUZB\"\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/air-quality")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"location_id\": \"FEUZB\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/air-quality")
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 \"location_id\": \"FEUZB\"\n}"
response = http.request(request)
puts response.read_body{
"attribution": "Data Source: Environment and Climate Change Canada",
"forecast": {
"hourly": [
{
"aqhi": 3,
"forecast_at": "2026-10-25T21:00:00Z",
"forecast_at_text": "5:00 PM EDT Sunday 25 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-25T22:00:00Z",
"forecast_at_text": "6:00 PM EDT Sunday 25 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-25T23:00:00Z",
"forecast_at_text": "7:00 PM EDT Sunday 25 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T00:00:00Z",
"forecast_at_text": "8:00 PM EDT Sunday 25 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T01:00:00Z",
"forecast_at_text": "9:00 PM EDT Sunday 25 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T02:00:00Z",
"forecast_at_text": "10:00 PM EDT Sunday 25 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T03:00:00Z",
"forecast_at_text": "11:00 PM EDT Sunday 25 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T04:00:00Z",
"forecast_at_text": "12:00 AM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T05:00:00Z",
"forecast_at_text": "1:00 AM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T06:00:00Z",
"forecast_at_text": "2:00 AM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T07:00:00Z",
"forecast_at_text": "3:00 AM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T08:00:00Z",
"forecast_at_text": "4:00 AM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T09:00:00Z",
"forecast_at_text": "5:00 AM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T10:00:00Z",
"forecast_at_text": "6:00 AM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T11:00:00Z",
"forecast_at_text": "7:00 AM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T12:00:00Z",
"forecast_at_text": "8:00 AM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T13:00:00Z",
"forecast_at_text": "9:00 AM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T14:00:00Z",
"forecast_at_text": "10:00 AM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T15:00:00Z",
"forecast_at_text": "11:00 AM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T16:00:00Z",
"forecast_at_text": "12:00 PM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T17:00:00Z",
"forecast_at_text": "1:00 PM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T18:00:00Z",
"forecast_at_text": "2:00 PM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T19:00:00Z",
"forecast_at_text": "3:00 PM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T20:00:00Z",
"forecast_at_text": "4:00 PM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T21:00:00Z",
"forecast_at_text": "5:00 PM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T22:00:00Z",
"forecast_at_text": "6:00 PM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 2,
"forecast_at": "2026-10-26T23:00:00Z",
"forecast_at_text": "7:00 PM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 2,
"forecast_at": "2026-10-27T00:00:00Z",
"forecast_at_text": "8:00 PM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 2,
"forecast_at": "2026-10-27T01:00:00Z",
"forecast_at_text": "9:00 PM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 2,
"forecast_at": "2026-10-27T02:00:00Z",
"forecast_at_text": "10:00 PM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 2,
"forecast_at": "2026-10-27T03:00:00Z",
"forecast_at_text": "11:00 PM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 2,
"forecast_at": "2026-10-27T04:00:00Z",
"forecast_at_text": "12:00 AM EDT Tuesday 27 October 2026",
"risk": "low"
},
{
"aqhi": 2,
"forecast_at": "2026-10-27T05:00:00Z",
"forecast_at_text": "1:00 AM EDT Tuesday 27 October 2026",
"risk": "low"
},
{
"aqhi": 2,
"forecast_at": "2026-10-27T06:00:00Z",
"forecast_at_text": "2:00 AM EDT Tuesday 27 October 2026",
"risk": "low"
},
{
"aqhi": 2,
"forecast_at": "2026-10-27T07:00:00Z",
"forecast_at_text": "3:00 AM EDT Tuesday 27 October 2026",
"risk": "low"
},
{
"aqhi": 2,
"forecast_at": "2026-10-27T08:00:00Z",
"forecast_at_text": "4:00 AM EDT Tuesday 27 October 2026",
"risk": "low"
},
{
"aqhi": 2,
"forecast_at": "2026-10-27T09:00:00Z",
"forecast_at_text": "5:00 AM EDT Tuesday 27 October 2026",
"risk": "low"
}
],
"periods": [
{
"aqhi": 3,
"aqhi_in_smoke": null,
"name": "Tonight",
"risk": "low"
},
{
"aqhi": 3,
"aqhi_in_smoke": null,
"name": "Tomorrow",
"risk": "low"
},
{
"aqhi": 3,
"aqhi_in_smoke": null,
"name": "Tomorrow Night",
"risk": "low"
},
{
"aqhi": 2,
"aqhi_in_smoke": null,
"name": "Day 3",
"risk": "low"
}
],
"published_at": "2026-10-25T21:00:00Z"
},
"forecast_url": "https://api.weather.gc.ca/collections/aqhi-forecasts-realtime/items?f=json&location_id=FEUZB&sortby=-publication_datetime&limit=100&skipGeometry=true",
"lang": "en",
"licence_url": "https://eccc-msc.github.io/open-data/licence/readme_en/",
"location": {
"distance_km": null,
"latitude": 43.7416666666667,
"location_id": "FEUZB",
"longitude": -79.3733333333333,
"name": "Toronto",
"zone": "ont",
"zone_name": "Ontario"
},
"observation": {
"aqhi": 2.97,
"aqhi_rounded": 3,
"observed_at": "2026-10-25T22:00:00Z",
"observed_at_text": "6:00 PM EDT Sunday 25 October 2026",
"risk": "low",
"special_notes": null
},
"observed_at_ms": 1792969238543,
"source_url": "https://api.weather.gc.ca/collections/aqhi-observations-realtime/items?f=json&location_id=FEUZB&latest=true&skipGeometry=true"
}Environment and Climate Change Canada weather and climate (api.weather.gc.ca)
Air quality
Is the air quality safe today in a Canadian city, wildfire smoke, AQHI forecast.
POST
https://api.aisa.one
/
apis
/
v1
/
api-weather-gc-ca
/
weather
/
air-quality
Air quality
curl --request POST \
--url https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/air-quality \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"location_id": "FEUZB"
}
'import requests
url = "https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/air-quality"
payload = { "location_id": "FEUZB" }
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({location_id: 'FEUZB'})
};
fetch('https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/air-quality', 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/air-quality",
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([
'location_id' => 'FEUZB'
]),
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/air-quality"
payload := strings.NewReader("{\n \"location_id\": \"FEUZB\"\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/air-quality")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"location_id\": \"FEUZB\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/air-quality")
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 \"location_id\": \"FEUZB\"\n}"
response = http.request(request)
puts response.read_body{
"attribution": "Data Source: Environment and Climate Change Canada",
"forecast": {
"hourly": [
{
"aqhi": 3,
"forecast_at": "2026-10-25T21:00:00Z",
"forecast_at_text": "5:00 PM EDT Sunday 25 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-25T22:00:00Z",
"forecast_at_text": "6:00 PM EDT Sunday 25 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-25T23:00:00Z",
"forecast_at_text": "7:00 PM EDT Sunday 25 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T00:00:00Z",
"forecast_at_text": "8:00 PM EDT Sunday 25 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T01:00:00Z",
"forecast_at_text": "9:00 PM EDT Sunday 25 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T02:00:00Z",
"forecast_at_text": "10:00 PM EDT Sunday 25 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T03:00:00Z",
"forecast_at_text": "11:00 PM EDT Sunday 25 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T04:00:00Z",
"forecast_at_text": "12:00 AM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T05:00:00Z",
"forecast_at_text": "1:00 AM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T06:00:00Z",
"forecast_at_text": "2:00 AM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T07:00:00Z",
"forecast_at_text": "3:00 AM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T08:00:00Z",
"forecast_at_text": "4:00 AM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T09:00:00Z",
"forecast_at_text": "5:00 AM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T10:00:00Z",
"forecast_at_text": "6:00 AM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T11:00:00Z",
"forecast_at_text": "7:00 AM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T12:00:00Z",
"forecast_at_text": "8:00 AM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T13:00:00Z",
"forecast_at_text": "9:00 AM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T14:00:00Z",
"forecast_at_text": "10:00 AM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T15:00:00Z",
"forecast_at_text": "11:00 AM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T16:00:00Z",
"forecast_at_text": "12:00 PM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T17:00:00Z",
"forecast_at_text": "1:00 PM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T18:00:00Z",
"forecast_at_text": "2:00 PM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T19:00:00Z",
"forecast_at_text": "3:00 PM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T20:00:00Z",
"forecast_at_text": "4:00 PM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T21:00:00Z",
"forecast_at_text": "5:00 PM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 3,
"forecast_at": "2026-10-26T22:00:00Z",
"forecast_at_text": "6:00 PM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 2,
"forecast_at": "2026-10-26T23:00:00Z",
"forecast_at_text": "7:00 PM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 2,
"forecast_at": "2026-10-27T00:00:00Z",
"forecast_at_text": "8:00 PM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 2,
"forecast_at": "2026-10-27T01:00:00Z",
"forecast_at_text": "9:00 PM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 2,
"forecast_at": "2026-10-27T02:00:00Z",
"forecast_at_text": "10:00 PM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 2,
"forecast_at": "2026-10-27T03:00:00Z",
"forecast_at_text": "11:00 PM EDT Monday 26 October 2026",
"risk": "low"
},
{
"aqhi": 2,
"forecast_at": "2026-10-27T04:00:00Z",
"forecast_at_text": "12:00 AM EDT Tuesday 27 October 2026",
"risk": "low"
},
{
"aqhi": 2,
"forecast_at": "2026-10-27T05:00:00Z",
"forecast_at_text": "1:00 AM EDT Tuesday 27 October 2026",
"risk": "low"
},
{
"aqhi": 2,
"forecast_at": "2026-10-27T06:00:00Z",
"forecast_at_text": "2:00 AM EDT Tuesday 27 October 2026",
"risk": "low"
},
{
"aqhi": 2,
"forecast_at": "2026-10-27T07:00:00Z",
"forecast_at_text": "3:00 AM EDT Tuesday 27 October 2026",
"risk": "low"
},
{
"aqhi": 2,
"forecast_at": "2026-10-27T08:00:00Z",
"forecast_at_text": "4:00 AM EDT Tuesday 27 October 2026",
"risk": "low"
},
{
"aqhi": 2,
"forecast_at": "2026-10-27T09:00:00Z",
"forecast_at_text": "5:00 AM EDT Tuesday 27 October 2026",
"risk": "low"
}
],
"periods": [
{
"aqhi": 3,
"aqhi_in_smoke": null,
"name": "Tonight",
"risk": "low"
},
{
"aqhi": 3,
"aqhi_in_smoke": null,
"name": "Tomorrow",
"risk": "low"
},
{
"aqhi": 3,
"aqhi_in_smoke": null,
"name": "Tomorrow Night",
"risk": "low"
},
{
"aqhi": 2,
"aqhi_in_smoke": null,
"name": "Day 3",
"risk": "low"
}
],
"published_at": "2026-10-25T21:00:00Z"
},
"forecast_url": "https://api.weather.gc.ca/collections/aqhi-forecasts-realtime/items?f=json&location_id=FEUZB&sortby=-publication_datetime&limit=100&skipGeometry=true",
"lang": "en",
"licence_url": "https://eccc-msc.github.io/open-data/licence/readme_en/",
"location": {
"distance_km": null,
"latitude": 43.7416666666667,
"location_id": "FEUZB",
"longitude": -79.3733333333333,
"name": "Toronto",
"zone": "ont",
"zone_name": "Ontario"
},
"observation": {
"aqhi": 2.97,
"aqhi_rounded": 3,
"observed_at": "2026-10-25T22:00:00Z",
"observed_at_text": "6:00 PM EDT Sunday 25 October 2026",
"risk": "low",
"special_notes": null
},
"observed_at_ms": 1792969238543,
"source_url": "https://api.weather.gc.ca/collections/aqhi-observations-realtime/items?f=json&location_id=FEUZB&latest=true&skipGeometry=true"
}Request contract
- Method and path: POST /apis/v1/api-weather-gc-ca/weather/air-quality
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/air-quality
{
"operationId": "api-weather-gc-ca.weather.air-quality",
"method": "POST",
"path": "/apis/v1/api-weather-gc-ca/weather/air-quality",
"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": {
"location_id": "FEUZB"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"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
}
},
"location_id": {
"description": "AQHI location code, e.g. FEUZB Toronto, FTPFT Montreal, EAZBA Vancouver; or use lat/lon. Pattern: ^[A-Za-z0-9]+$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"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
}
}
},
"type": "object"
}
}
},
"required": false
},
"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
application/json
Response
Air Quality Health Index (AQHI, weather.gc.ca/airquality) for one ECCC AQHI location: the latest hourly observation with its risk category and special notes, and the newest hourly forecast publication. Choose by location_id or by lat/lon (nearest AQHI location). An unknown location_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. |
forecast | object | Newest forecast publication; null when none. |
forecast_url | string | |
lang | string | Language of the texts. |
licence_url | string | The ECCC Data Servers End-use Licence. |
location | object | |
observation | object | Latest observation; null when the location has none. |
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. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.