curl --request POST \
--url https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/table-metadata \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"member_query": "alberta",
"table": "18-10-0004-01"
}
'import requests
url = "https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/table-metadata"
payload = {
"member_query": "alberta",
"table": "18-10-0004-01"
}
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({member_query: 'alberta', table: '18-10-0004-01'})
};
fetch('https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/table-metadata', 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/table-metadata",
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([
'member_query' => 'alberta',
'table' => '18-10-0004-01'
]),
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/table-metadata"
payload := strings.NewReader("{\n \"member_query\": \"alberta\",\n \"table\": \"18-10-0004-01\"\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/table-metadata")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"member_query\": \"alberta\",\n \"table\": \"18-10-0004-01\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/table-metadata")
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 \"member_query\": \"alberta\",\n \"table\": \"18-10-0004-01\"\n}"
response = http.request(request)
puts response.read_body{
"archive_status": "CURRENT - a cube available to the public and that is current",
"archived": false,
"attribution": "Source: Statistics Canada. Reproduced and distributed on an \"as is\" basis under the Statistics Canada Open Licence.",
"cansim_id": "326-0020",
"datapoint_count": 1154918,
"dimensions": [
{
"has_unit": false,
"matching_count": 3,
"member_count": 30,
"members": [
{
"classification_code": "48",
"geo_level": 2,
"member_id": 23,
"name_en": "Alberta",
"name_fr": "Alberta",
"parent_member_id": 2,
"terminated": false,
"unit": null
},
{
"classification_code": "835",
"geo_level": 503,
"member_id": 24,
"name_en": "Edmonton, Alberta",
"name_fr": "Edmonton, Alberta",
"parent_member_id": 23,
"terminated": false,
"unit": null
},
{
"classification_code": "825",
"geo_level": 503,
"member_id": 25,
"name_en": "Calgary, Alberta",
"name_fr": "Calgary, Alberta",
"parent_member_id": 23,
"terminated": false,
"unit": null
}
],
"members_truncated": false,
"name_en": "Geography",
"name_fr": "Géographie",
"position": 1
},
{
"has_unit": true,
"matching_count": 0,
"member_count": 359,
"members": [],
"members_truncated": false,
"name_en": "Products and product groups",
"name_fr": "Produits et groupes de produits",
"position": 2
}
],
"end_date": "2026-09-01",
"footnote_count": 79,
"footnotes": null,
"frequency": "Monthly",
"member_query": "alberta",
"observed_at_ms": 1792968985032,
"product_id": 18100004,
"release_time": "2026-10-19T08:30",
"series_count": 2139,
"source_url": "https://www150.statcan.gc.ca/t1/wds/rest/getCubeMetadata",
"start_date": "1914-01-01",
"subject_codes": [
"1802",
"451003"
],
"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"
}Table metadata
After search_tables, to see a table’s dimensions and member names before calling table_data; or to resolve a table number pasted from a page.
curl --request POST \
--url https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/table-metadata \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"member_query": "alberta",
"table": "18-10-0004-01"
}
'import requests
url = "https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/table-metadata"
payload = {
"member_query": "alberta",
"table": "18-10-0004-01"
}
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({member_query: 'alberta', table: '18-10-0004-01'})
};
fetch('https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/table-metadata', 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/table-metadata",
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([
'member_query' => 'alberta',
'table' => '18-10-0004-01'
]),
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/table-metadata"
payload := strings.NewReader("{\n \"member_query\": \"alberta\",\n \"table\": \"18-10-0004-01\"\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/table-metadata")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"member_query\": \"alberta\",\n \"table\": \"18-10-0004-01\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/table-metadata")
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 \"member_query\": \"alberta\",\n \"table\": \"18-10-0004-01\"\n}"
response = http.request(request)
puts response.read_body{
"archive_status": "CURRENT - a cube available to the public and that is current",
"archived": false,
"attribution": "Source: Statistics Canada. Reproduced and distributed on an \"as is\" basis under the Statistics Canada Open Licence.",
"cansim_id": "326-0020",
"datapoint_count": 1154918,
"dimensions": [
{
"has_unit": false,
"matching_count": 3,
"member_count": 30,
"members": [
{
"classification_code": "48",
"geo_level": 2,
"member_id": 23,
"name_en": "Alberta",
"name_fr": "Alberta",
"parent_member_id": 2,
"terminated": false,
"unit": null
},
{
"classification_code": "835",
"geo_level": 503,
"member_id": 24,
"name_en": "Edmonton, Alberta",
"name_fr": "Edmonton, Alberta",
"parent_member_id": 23,
"terminated": false,
"unit": null
},
{
"classification_code": "825",
"geo_level": 503,
"member_id": 25,
"name_en": "Calgary, Alberta",
"name_fr": "Calgary, Alberta",
"parent_member_id": 23,
"terminated": false,
"unit": null
}
],
"members_truncated": false,
"name_en": "Geography",
"name_fr": "Géographie",
"position": 1
},
{
"has_unit": true,
"matching_count": 0,
"member_count": 359,
"members": [],
"members_truncated": false,
"name_en": "Products and product groups",
"name_fr": "Produits et groupes de produits",
"position": 2
}
],
"end_date": "2026-09-01",
"footnote_count": 79,
"footnotes": null,
"frequency": "Monthly",
"member_query": "alberta",
"observed_at_ms": 1792968985032,
"product_id": 18100004,
"release_time": "2026-10-19T08:30",
"series_count": 2139,
"source_url": "https://www150.statcan.gc.ca/t1/wds/rest/getCubeMetadata",
"start_date": "1914-01-01",
"subject_codes": [
"1802",
"451003"
],
"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"
}Request contract
- Method and path: POST /apis/v1/statcan-gc-ca/economic-statistics/table-metadata
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/table-metadata
{
"operationId": "statcan-gc-ca.economic-statistics.table-metadata",
"method": "POST",
"path": "/apis/v1/statcan-gc-ca/economic-statistics/table-metadata",
"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": {
"member_query": "alberta",
"table": "18-10-0004-01"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"include_footnotes": {
"description": "include_footnotes",
"type": "boolean",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"max_members": {
"default": 200,
"description": "Members listed per dimension at most.\n\nProvider reference: minimum 1; maximum 5000; default 200.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 5000,
"min": 1
}
},
"member_query": {
"description": "Only members whose English or French name contains this text.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"table": {
"description": "Table id in any StatCan spelling: 18100004, 1810000401, 18-10-0004-01 or 18-10-0004.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"url": {
"description": "A StatCan table-viewer URL (https://www150.statcan.gc.ca/t1/tbl1/en/tv.action?pid=1810000401), instead of table.",
"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
A StatCan table-viewer URL (https://www150.statcan.gc.ca/t1/tbl1/en/tv.action?pid=1810000401), instead of table.
Response
Describe one Statistics Canada table: title, frequency, coverage dates, last release, archive status, series and data-point counts, and every dimension with its members (member_id, parent, English and French names, geographic classification code, unit). This is how to find the member names or ids table_data takes (e.g. Geography = Edmonton, Alberta; Products and product groups = All-items). member_query keeps only members whose name contains the text (case and accents ignored), and max_members caps each dimension's list (members_truncated says when). Footnotes are counted and returned with include_footnotes. WDS getCubeMetadata plus getCodeSets for unit names. An unknown table id is not_found.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
archive_status | string | |
archived | boolean | |
attribution | string | |
cansim_id | string | |
datapoint_count | number | |
dimensions | object[] | |
end_date | string | |
footnote_count | number | |
footnotes | object[] | Null unless include_footnotes. |
frequency | string | |
member_query | string | |
observed_at_ms | number | |
product_id | number | |
release_time | string | |
series_count | number | |
source_url | string | |
start_date | string | |
subject_codes | string[] | |
survey_codes | string[] | |
table_id | string | |
title_en | string | |
title_fr | string | |
url | string |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.