Search series
curl --request POST \
--url https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/search-series \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "overnight rate"
}
'import requests
url = "https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/search-series"
payload = { "query": "overnight rate" }
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({query: 'overnight rate'})
};
fetch('https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/search-series', 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/search-series",
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([
'query' => 'overnight rate'
]),
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/search-series"
payload := strings.NewReader("{\n \"query\": \"overnight rate\"\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/search-series")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"overnight rate\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/search-series")
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 \"query\": \"overnight rate\"\n}"
response = http.request(request)
puts response.read_body{
"attribution": "Source: Bank of Canada",
"kind": "all",
"match_count": 43,
"observed_at_ms": 1792968779529,
"query": "overnight rate",
"results": [
{
"description": "Also called the policy interest rate, the average rate that the Bank of Canada wants to see in the market for overnight money market financing.",
"kind": "series",
"label": "Target for the overnight rate (end of month)",
"name": "STATIC_ATABLE_V39079",
"observations_url": "https://www.bankofcanada.ca/valet/observations/STATIC_ATABLE_V39079/json",
"valet_url": "https://www.bankofcanada.ca/valet/series/STATIC_ATABLE_V39079/json"
},
{
"description": "Also called the policy interest rate, the average rate that the Bank of Canada wants to see in the market for overnight money market financing. (V39079)",
"kind": "series",
"label": "Target for the overnight rate (business daily)",
"name": "V39079",
"observations_url": "https://www.bankofcanada.ca/valet/observations/V39079/json",
"valet_url": "https://www.bankofcanada.ca/valet/series/V39079/json"
},
{
"description": "The rate at which major participants in the money market borrow and lend one-day funds to each other.",
"kind": "series",
"label": "Overnight rate",
"name": "V122514",
"observations_url": "https://www.bankofcanada.ca/valet/observations/V122514/json",
"valet_url": "https://www.bankofcanada.ca/valet/series/V122514/json"
},
{
"description": "This file contains data based on the Bank of Canada research paper described above. The data is not an official statistical release by the Bank of Canada, and it is provided on a voluntary basis by the author(s). The Bank and the author(s) are not responsible for errors in this file and do not guarantee that the series will be updated in the future.\nSources:\nBloomberg Finance L.P., Bloomberg Finance L.P./Bank of America Merrill Lynch, Haver Analytics, Board of Governors of the Federal Reserve System and Bank of Canada calculations.\nNote from the author(s):\nDates for Chart 2 are arbitrary and not associated with any particular time period. It displays a hypothetical shock in 2018 and its associated responses over 3 subsequent years.",
"kind": "group",
"label": "Overnight rate",
"name": "SAN_LEBM180118_CHART2F",
"observations_url": "https://www.bankofcanada.ca/valet/observations/group/SAN_LEBM180118_CHART2F/json",
"valet_url": "https://www.bankofcanada.ca/valet/groups/SAN_LEBM180118_CHART2F/json"
},
{
"description": null,
"kind": "series",
"label": "Bank of Canada (BoC) overnight rate (left scale)",
"name": "SAN_FONT20250113_C4_S1",
"observations_url": "https://www.bankofcanada.ca/valet/observations/SAN_FONT20250113_C4_S1/json",
"valet_url": "https://www.bankofcanada.ca/valet/series/SAN_FONT20250113_C4_S1/json"
}
],
"returned": 5,
"source_url": "https://www.bankofcanada.ca/valet/lists/series/json",
"terms_url": "https://www.bankofcanada.ca/terms/",
"total_groups": 2579,
"total_series": 16237
}Bank of Canada (Valet API and press feeds)
Search series
Finding the Valet series or group name for a statistic (e.g. CORRA, prime rate, CPI, commodity prices, mortgage rates, auction results) before calling observations.
POST
https://api.aisa.one
/
apis
/
v1
/
bankofcanada-ca
/
economic-data
/
search-series
Search series
curl --request POST \
--url https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/search-series \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "overnight rate"
}
'import requests
url = "https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/search-series"
payload = { "query": "overnight rate" }
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({query: 'overnight rate'})
};
fetch('https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/search-series', 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/search-series",
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([
'query' => 'overnight rate'
]),
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/search-series"
payload := strings.NewReader("{\n \"query\": \"overnight rate\"\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/search-series")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"overnight rate\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/search-series")
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 \"query\": \"overnight rate\"\n}"
response = http.request(request)
puts response.read_body{
"attribution": "Source: Bank of Canada",
"kind": "all",
"match_count": 43,
"observed_at_ms": 1792968779529,
"query": "overnight rate",
"results": [
{
"description": "Also called the policy interest rate, the average rate that the Bank of Canada wants to see in the market for overnight money market financing.",
"kind": "series",
"label": "Target for the overnight rate (end of month)",
"name": "STATIC_ATABLE_V39079",
"observations_url": "https://www.bankofcanada.ca/valet/observations/STATIC_ATABLE_V39079/json",
"valet_url": "https://www.bankofcanada.ca/valet/series/STATIC_ATABLE_V39079/json"
},
{
"description": "Also called the policy interest rate, the average rate that the Bank of Canada wants to see in the market for overnight money market financing. (V39079)",
"kind": "series",
"label": "Target for the overnight rate (business daily)",
"name": "V39079",
"observations_url": "https://www.bankofcanada.ca/valet/observations/V39079/json",
"valet_url": "https://www.bankofcanada.ca/valet/series/V39079/json"
},
{
"description": "The rate at which major participants in the money market borrow and lend one-day funds to each other.",
"kind": "series",
"label": "Overnight rate",
"name": "V122514",
"observations_url": "https://www.bankofcanada.ca/valet/observations/V122514/json",
"valet_url": "https://www.bankofcanada.ca/valet/series/V122514/json"
},
{
"description": "This file contains data based on the Bank of Canada research paper described above. The data is not an official statistical release by the Bank of Canada, and it is provided on a voluntary basis by the author(s). The Bank and the author(s) are not responsible for errors in this file and do not guarantee that the series will be updated in the future.\nSources:\nBloomberg Finance L.P., Bloomberg Finance L.P./Bank of America Merrill Lynch, Haver Analytics, Board of Governors of the Federal Reserve System and Bank of Canada calculations.\nNote from the author(s):\nDates for Chart 2 are arbitrary and not associated with any particular time period. It displays a hypothetical shock in 2018 and its associated responses over 3 subsequent years.",
"kind": "group",
"label": "Overnight rate",
"name": "SAN_LEBM180118_CHART2F",
"observations_url": "https://www.bankofcanada.ca/valet/observations/group/SAN_LEBM180118_CHART2F/json",
"valet_url": "https://www.bankofcanada.ca/valet/groups/SAN_LEBM180118_CHART2F/json"
},
{
"description": null,
"kind": "series",
"label": "Bank of Canada (BoC) overnight rate (left scale)",
"name": "SAN_FONT20250113_C4_S1",
"observations_url": "https://www.bankofcanada.ca/valet/observations/SAN_FONT20250113_C4_S1/json",
"valet_url": "https://www.bankofcanada.ca/valet/series/SAN_FONT20250113_C4_S1/json"
}
],
"returned": 5,
"source_url": "https://www.bankofcanada.ca/valet/lists/series/json",
"terms_url": "https://www.bankofcanada.ca/terms/",
"total_groups": 2579,
"total_series": 16237
}Request contract
- Method and path: POST /apis/v1/bankofcanada-ca/economic-data/search-series
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/search-series
{
"operationId": "bankofcanada-ca.economic-data.search-series",
"method": "POST",
"path": "/apis/v1/bankofcanada-ca/economic-data/search-series",
"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": {
"limit": 5,
"query": "overnight rate"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"kind": {
"description": "Default all.\n\nProvider reference: allowed values [\"series\", \"groups\", \"all\"].",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"series",
"groups",
"all"
]
}
},
"limit": {
"description": "Default 20.\n\nProvider reference: minimum 1; maximum 100.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 100,
"min": 1
}
},
"query": {
"description": "Words that must all appear, e.g. \"overnight rate\" or \"10-year bond\".",
"type": "string"
}
},
"required": [
"query"
],
"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
application/json
Response
Search the Bank of Canada Valet catalogue (about 16,000 series and 2,600 groups) by words in the name, label and description, best matches first, with each result's details and observations URLs.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
attribution | string | Required attribution under the Bank of Canada terms of use. |
kind | string | |
match_count | number | |
observed_at_ms | number | |
query | string | |
results | object[] | A query matching nothing is a valid empty result. |
returned | number | |
source_url | string | The Bank of Canada URL that answered (the first page for multi-page scans). |
terms_url | string | |
total_groups | number | |
total_series | number |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.