curl --request POST \
--url https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/search-tables \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "consumer price index monthly"
}
'import requests
url = "https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/search-tables"
payload = { "query": "consumer price index monthly" }
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: 'consumer price index monthly'})
};
fetch('https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/search-tables', 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/statcan-gc-ca/economic-statistics/search-tables",
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' => 'consumer price index monthly'
]),
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/statcan-gc-ca/economic-statistics/search-tables"
payload := strings.NewReader("{\n \"query\": \"consumer price index monthly\"\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/statcan-gc-ca/economic-statistics/search-tables")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"consumer price index monthly\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/search-tables")
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\": \"consumer price index monthly\"\n}"
response = http.request(request)
puts response.read_body{
"attribution": "Source: Statistics Canada. Reproduced and distributed on an \"as is\" basis under the Statistics Canada Open Licence.",
"count": 2,
"frequency": null,
"include_archived": false,
"limit": 20,
"next_offset": null,
"observed_at_ms": 1792968984749,
"offset": 0,
"query": "consumer price index monthly",
"source_url": "https://www150.statcan.gc.ca/t1/wds/rest/getAllCubesListLite",
"tables": [
{
"archived": false,
"cansim_id": "326-0022",
"end_date": "2026-09-01",
"frequency": "Monthly",
"product_id": 18100006,
"release_time": "2026-10-19T12:30:00Z",
"start_date": "1992-01-01",
"subject_codes": [
"18"
],
"survey_codes": [
"2301"
],
"table_id": "18-10-0006-01",
"title_en": "Consumer Price Index, monthly, seasonally adjusted",
"title_fr": "Indice des prix à la consommation, mensuel, désaisonnalisé",
"url": "https://www150.statcan.gc.ca/t1/tbl1/en/tv.action?pid=1810000601"
},
{
"archived": false,
"cansim_id": "326-0020",
"end_date": "2026-09-01",
"frequency": "Monthly",
"product_id": 18100004,
"release_time": "2026-10-19T12:30:00Z",
"start_date": "1914-01-01",
"subject_codes": [
"18"
],
"survey_codes": [
"2301"
],
"table_id": "18-10-0004-01",
"title_en": "Consumer Price Index, monthly, not seasonally adjusted",
"title_fr": "Indice des prix à la consommation mensuel, non désaisonnalisé",
"url": "https://www150.statcan.gc.ca/t1/tbl1/en/tv.action?pid=1810000401"
}
],
"total_matches": 2,
"total_tables": 8279
}Search tables
Start here to find the table for a topic (CPI, population estimates, labour force, farm cash receipts) or to resolve a table number; then call table_metadata for its dimensions or table_data for values.
curl --request POST \
--url https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/search-tables \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "consumer price index monthly"
}
'import requests
url = "https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/search-tables"
payload = { "query": "consumer price index monthly" }
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: 'consumer price index monthly'})
};
fetch('https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/search-tables', 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/statcan-gc-ca/economic-statistics/search-tables",
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' => 'consumer price index monthly'
]),
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/statcan-gc-ca/economic-statistics/search-tables"
payload := strings.NewReader("{\n \"query\": \"consumer price index monthly\"\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/statcan-gc-ca/economic-statistics/search-tables")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"consumer price index monthly\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/search-tables")
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\": \"consumer price index monthly\"\n}"
response = http.request(request)
puts response.read_body{
"attribution": "Source: Statistics Canada. Reproduced and distributed on an \"as is\" basis under the Statistics Canada Open Licence.",
"count": 2,
"frequency": null,
"include_archived": false,
"limit": 20,
"next_offset": null,
"observed_at_ms": 1792968984749,
"offset": 0,
"query": "consumer price index monthly",
"source_url": "https://www150.statcan.gc.ca/t1/wds/rest/getAllCubesListLite",
"tables": [
{
"archived": false,
"cansim_id": "326-0022",
"end_date": "2026-09-01",
"frequency": "Monthly",
"product_id": 18100006,
"release_time": "2026-10-19T12:30:00Z",
"start_date": "1992-01-01",
"subject_codes": [
"18"
],
"survey_codes": [
"2301"
],
"table_id": "18-10-0006-01",
"title_en": "Consumer Price Index, monthly, seasonally adjusted",
"title_fr": "Indice des prix à la consommation, mensuel, désaisonnalisé",
"url": "https://www150.statcan.gc.ca/t1/tbl1/en/tv.action?pid=1810000601"
},
{
"archived": false,
"cansim_id": "326-0020",
"end_date": "2026-09-01",
"frequency": "Monthly",
"product_id": 18100004,
"release_time": "2026-10-19T12:30:00Z",
"start_date": "1914-01-01",
"subject_codes": [
"18"
],
"survey_codes": [
"2301"
],
"table_id": "18-10-0004-01",
"title_en": "Consumer Price Index, monthly, not seasonally adjusted",
"title_fr": "Indice des prix à la consommation mensuel, non désaisonnalisé",
"url": "https://www150.statcan.gc.ca/t1/tbl1/en/tv.action?pid=1810000401"
}
],
"total_matches": 2,
"total_tables": 8279
}Request contract
- Method and path: POST /apis/v1/statcan-gc-ca/economic-statistics/search-tables
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/search-tables
{
"operationId": "statcan-gc-ca.economic-statistics.search-tables",
"method": "POST",
"path": "/apis/v1/statcan-gc-ca/economic-statistics/search-tables",
"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": {
"query": "consumer price index monthly"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"frequency": {
"description": "Only tables published at this frequency.\n\nProvider reference: allowed values [\"Daily\", \"Weekly\", \"Biweekly\", \"Monthly\", \"Bimonthly\", \"Quarterly\", \"Semi-annual\", \"Annual\", \"Every 2 years\", \"Every 3 years\", \"Every 4 years\", \"Every 5 years\", \"Every 10 years\", \"Occasional\", \"Occasional Quarterly\", \"Occasional Monthly\", \"Occasional Daily\"].",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"Daily",
"Weekly",
"Biweekly",
"Monthly",
"Bimonthly",
"Quarterly",
"Semi-annual",
"Annual",
"Every 2 years",
"Every 3 years",
"Every 4 years",
"Every 5 years",
"Every 10 years",
"Occasional",
"Occasional Quarterly",
"Occasional Monthly",
"Occasional Daily"
]
}
},
"include_archived": {
"description": "Also return archived tables that are no longer updated.",
"type": "boolean",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"limit": {
"default": 20,
"description": "limit\n\nProvider reference: minimum 1; maximum 100; default 20.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 100,
"min": 1
}
},
"offset": {
"default": 0,
"description": "Rows to skip; the previous page's next_offset.\n\nProvider reference: minimum 0; default 0.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"min": 0
}
},
"query": {
"description": "Words to find in the table title (all must match, any order), or a table / CANSIM id.",
"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
Only tables published at this frequency.
Provider reference: allowed values ["Daily", "Weekly", "Biweekly", "Monthly", "Bimonthly", "Quarterly", "Semi-annual", "Annual", "Every 2 years", "Every 3 years", "Every 4 years", "Every 5 years", "Every 10 years", "Occasional", "Occasional Quarterly", "Occasional Monthly", "Occasional Daily"].
Response
Find Statistics Canada data tables by words or id. Downloads the WDS table list (getAllCubesListLite, every one of ~8,300 tables, ~5 MB) and filters it client-side: every word of the query must appear in the English or French title (case and accents ignored), or the query is a table id in any spelling (18100004, 1810000401, 18-10-0004-01) or a CANSIM id (326-0020). Exact-phrase hits rank first, then current tables, then shorter titles. Archived tables are excluded unless include_archived; frequency narrows to one cadence. Each row carries the product_id that table_metadata and table_data take, the printed table number, dates, last release time and the table-viewer URL. Paged with limit/offset; no match is a valid empty result.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
attribution | string | |
count | number | |
frequency | string | |
include_archived | boolean | |
limit | number | |
next_offset | number | |
observed_at_ms | number | |
offset | number | |
query | string | |
source_url | string | |
tables | object[] | |
total_matches | number | |
total_tables | number |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.