curl --request POST \
--url https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/observations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"end_date": "2026-10-09",
"series": [
"V39079",
"FXUSDCAD"
],
"start_date": "2026-10-05"
}
'import requests
url = "https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/observations"
payload = {
"end_date": "2026-10-09",
"series": ["V39079", "FXUSDCAD"],
"start_date": "2026-10-05"
}
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({
end_date: '2026-10-09',
series: ['V39079', 'FXUSDCAD'],
start_date: '2026-10-05'
})
};
fetch('https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/observations', 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/bankofcanada-ca/economic-data/observations",
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([
'end_date' => '2026-10-09',
'series' => [
'V39079',
'FXUSDCAD'
],
'start_date' => '2026-10-05'
]),
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/bankofcanada-ca/economic-data/observations"
payload := strings.NewReader("{\n \"end_date\": \"2026-10-09\",\n \"series\": [\n \"V39079\",\n \"FXUSDCAD\"\n ],\n \"start_date\": \"2026-10-05\"\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/bankofcanada-ca/economic-data/observations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"end_date\": \"2026-10-09\",\n \"series\": [\n \"V39079\",\n \"FXUSDCAD\"\n ],\n \"start_date\": \"2026-10-05\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/observations")
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 \"end_date\": \"2026-10-09\",\n \"series\": [\n \"V39079\",\n \"FXUSDCAD\"\n ],\n \"start_date\": \"2026-10-05\"\n}"
response = http.request(request)
puts response.read_bodyObservations
Any Bank of Canada statistic not covered by policy_rate, fx_rates or bond_yields, or a Valet observations URL someone pasted; find names with search_series.
curl --request POST \
--url https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/observations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"end_date": "2026-10-09",
"series": [
"V39079",
"FXUSDCAD"
],
"start_date": "2026-10-05"
}
'import requests
url = "https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/observations"
payload = {
"end_date": "2026-10-09",
"series": ["V39079", "FXUSDCAD"],
"start_date": "2026-10-05"
}
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({
end_date: '2026-10-09',
series: ['V39079', 'FXUSDCAD'],
start_date: '2026-10-05'
})
};
fetch('https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/observations', 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/bankofcanada-ca/economic-data/observations",
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([
'end_date' => '2026-10-09',
'series' => [
'V39079',
'FXUSDCAD'
],
'start_date' => '2026-10-05'
]),
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/bankofcanada-ca/economic-data/observations"
payload := strings.NewReader("{\n \"end_date\": \"2026-10-09\",\n \"series\": [\n \"V39079\",\n \"FXUSDCAD\"\n ],\n \"start_date\": \"2026-10-05\"\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/bankofcanada-ca/economic-data/observations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"end_date\": \"2026-10-09\",\n \"series\": [\n \"V39079\",\n \"FXUSDCAD\"\n ],\n \"start_date\": \"2026-10-05\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/observations")
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 \"end_date\": \"2026-10-09\",\n \"series\": [\n \"V39079\",\n \"FXUSDCAD\"\n ],\n \"start_date\": \"2026-10-05\"\n}"
response = http.request(request)
puts response.read_bodyRequest contract
- Method and path: POST /apis/v1/bankofcanada-ca/economic-data/observations
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/observations
{
"operationId": "bankofcanada-ca.economic-data.observations",
"method": "POST",
"path": "/apis/v1/bankofcanada-ca/economic-data/observations",
"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": {
"end_date": "2026-10-09",
"series": [
"V39079",
"FXUSDCAD"
],
"start_date": "2026-10-05"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"end_date": {
"description": "Range end, YYYY-MM-DD. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"group": {
"description": "One Valet group name. Exclusive with series. Pattern: ^[A-Za-z0-9._-]+$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"max_observations": {
"description": "Cap on returned values (default 2000); more is reported as partial coverage.\n\nProvider reference: minimum 1; maximum 20000.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 20000,
"min": 1
}
},
"order": {
"description": "Row order by period key. Default desc (newest first).\n\nProvider reference: allowed values [\"asc\", \"desc\"].",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"asc",
"desc"
]
}
},
"recent": {
"description": "The latest N observations per series instead of a date or range.\n\nProvider reference: minimum 1; maximum 10000.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 10000,
"min": 1
}
},
"recent_months": {
"description": "recent_months\n\nProvider reference: minimum 1; maximum 10000.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 10000,
"min": 1
}
},
"recent_weeks": {
"description": "recent_weeks\n\nProvider reference: minimum 1; maximum 10000.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 10000,
"min": 1
}
},
"recent_years": {
"description": "recent_years\n\nProvider reference: minimum 1; maximum 10000.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 10000,
"min": 1
}
},
"series": {
"description": "Valet series names. Exclusive with group.",
"items": {
"type": "string"
},
"type": "array",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"start_date": {
"description": "Range start, YYYY-MM-DD. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
}
},
"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
Response
Observations of any Bank of Canada Valet series (up to 20, e.g. V39079, FXUSDCAD, BD.CDN.10YR.DQ.YLD, CPI and commodity price indexes) or of one series group (e.g. CORRA, bond_yields_all, chartered_bank_interest, AUC_BOND_RESULTS auction results), for a date range, the latest N observations or the last N weeks, months or years, as one row per period and series with the raw value and its number.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
attribution | string | Required attribution under the Bank of Canada terms of use. |
dimension | object | |
group | object | Group details; null for a series request. |
observation_count | number | |
observations | object[] | A window with no observations is a valid empty result. |
observed_at_ms | number | |
period_count | number | |
series | object[] | |
source_url | string | The Bank of Canada URL that answered (the first page for multi-page scans). |
target | object | |
terms_url | string | |
truncated | boolean |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.