curl --request POST \
--url https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/vector-data \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"vectors": [
"v41690973"
]
}
'import requests
url = "https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/vector-data"
payload = { "vectors": ["v41690973"] }
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({vectors: ['v41690973']})
};
fetch('https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/vector-data', 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/vector-data",
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([
'vectors' => [
'v41690973'
]
]),
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/vector-data"
payload := strings.NewReader("{\n \"vectors\": [\n \"v41690973\"\n ]\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/vector-data")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"vectors\": [\n \"v41690973\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/vector-data")
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 \"vectors\": [\n \"v41690973\"\n ]\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.",
"end_period": null,
"latest_n": 3,
"legend": {
"confidential": "suppressed to meet the confidentiality requirements of the Statistics Act (x)",
"status": {
"..": "not available for a specific reference period",
"...": "not applicable",
"0s": "value rounded to 0 where there is a meaningful distinction between true zero and the rounded value",
"<LOD": "less than the limit of detection",
"A": "data quality: excellent",
"B": "data quality: very good",
"C": "data quality: good",
"D": "data quality: acceptable",
"E": "use with caution",
"F": "too unreliable to be published"
},
"symbol": {
"p": "preliminary",
"r": "revised"
}
},
"missing": [],
"observed_at_ms": 1792968968432,
"series": [
{
"coordinate": "2.2.0.0.0.0.0.0.0.0",
"decimals": 1,
"frequency": "Monthly",
"point_count": 3,
"points": [
{
"confidential": false,
"ref_period": "2026-07-01",
"ref_period_end": null,
"release_time": "2026-08-17T08:30",
"status": null,
"symbol": null,
"value": 169.9
},
{
"confidential": false,
"ref_period": "2026-08-01",
"ref_period_end": null,
"release_time": "2026-09-14T08:30",
"status": null,
"symbol": null,
"value": 169.8
},
{
"confidential": false,
"ref_period": "2026-09-01",
"ref_period_end": null,
"release_time": "2026-10-19T08:30",
"status": null,
"symbol": null,
"value": 170
}
],
"product_id": 18100004,
"scalar_factor": "units",
"table_id": "18-10-0004-01",
"terminated": false,
"title_en": "Canada;All-items",
"title_fr": "Canada;Ensemble",
"unit": "2002=100",
"vector": "v41690973",
"vector_id": 41690973
}
],
"series_count": 1,
"source_url": "https://www150.statcan.gc.ca/t1/wds/rest/getDataFromVectorsAndLatestNPeriods",
"start_period": null
}Vector data
When a vector id is already known (from table_data, a StatCan page or a citation), e.g. v41690973 for the all-items CPI in Canada.
curl --request POST \
--url https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/vector-data \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"vectors": [
"v41690973"
]
}
'import requests
url = "https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/vector-data"
payload = { "vectors": ["v41690973"] }
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({vectors: ['v41690973']})
};
fetch('https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/vector-data', 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/vector-data",
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([
'vectors' => [
'v41690973'
]
]),
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/vector-data"
payload := strings.NewReader("{\n \"vectors\": [\n \"v41690973\"\n ]\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/vector-data")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"vectors\": [\n \"v41690973\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/vector-data")
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 \"vectors\": [\n \"v41690973\"\n ]\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.",
"end_period": null,
"latest_n": 3,
"legend": {
"confidential": "suppressed to meet the confidentiality requirements of the Statistics Act (x)",
"status": {
"..": "not available for a specific reference period",
"...": "not applicable",
"0s": "value rounded to 0 where there is a meaningful distinction between true zero and the rounded value",
"<LOD": "less than the limit of detection",
"A": "data quality: excellent",
"B": "data quality: very good",
"C": "data quality: good",
"D": "data quality: acceptable",
"E": "use with caution",
"F": "too unreliable to be published"
},
"symbol": {
"p": "preliminary",
"r": "revised"
}
},
"missing": [],
"observed_at_ms": 1792968968432,
"series": [
{
"coordinate": "2.2.0.0.0.0.0.0.0.0",
"decimals": 1,
"frequency": "Monthly",
"point_count": 3,
"points": [
{
"confidential": false,
"ref_period": "2026-07-01",
"ref_period_end": null,
"release_time": "2026-08-17T08:30",
"status": null,
"symbol": null,
"value": 169.9
},
{
"confidential": false,
"ref_period": "2026-08-01",
"ref_period_end": null,
"release_time": "2026-09-14T08:30",
"status": null,
"symbol": null,
"value": 169.8
},
{
"confidential": false,
"ref_period": "2026-09-01",
"ref_period_end": null,
"release_time": "2026-10-19T08:30",
"status": null,
"symbol": null,
"value": 170
}
],
"product_id": 18100004,
"scalar_factor": "units",
"table_id": "18-10-0004-01",
"terminated": false,
"title_en": "Canada;All-items",
"title_fr": "Canada;Ensemble",
"unit": "2002=100",
"vector": "v41690973",
"vector_id": 41690973
}
],
"series_count": 1,
"source_url": "https://www150.statcan.gc.ca/t1/wds/rest/getDataFromVectorsAndLatestNPeriods",
"start_period": null
}Request contract
- Method and path: POST /apis/v1/statcan-gc-ca/economic-statistics/vector-data
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/vector-data
{
"operationId": "statcan-gc-ca.economic-statistics.vector-data",
"method": "POST",
"path": "/apis/v1/statcan-gc-ca/economic-statistics/vector-data",
"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": {
"latest_n": 3,
"vectors": [
"v41690973"
]
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"end_period": {
"description": "Range end, YYYY, YYYY-MM or YYYY-MM-DD; defaults to the latest period.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"latest_n": {
"description": "The latest N reference periods of each series (default 12 when no range is given).\n\nProvider reference: minimum 1; maximum 1000.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 1000,
"min": 1
}
},
"start_period": {
"description": "Range start, YYYY, YYYY-MM or YYYY-MM-DD (reference period). Use instead of latest_n.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"vectors": {
"description": "Vector ids, e.g. v41690973.",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"vectors"
],
"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
Response
Values of Statistics Canada series by vector id (v41690973 or 41690973; up to 50 per call): each series' table, coordinate, title, unit, scale and decimals with its latest_n periods (default 12) or a start_period/end_period range of data points. Unknown vectors are listed in missing; when none exist the call is not_found. WDS getSeriesInfoFromVector and getDataFromVectorsAndLatestNPeriods / getDataFromVectorByReferencePeriodRange.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
attribution | string | |
end_period | string | |
latest_n | number | |
legend | object | Meaning of the symbol, status and confidential flags on data points. |
missing | string[] | |
observed_at_ms | number | |
series | object[] | |
series_count | number | |
source_url | string | |
start_period | string |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.