curl --request POST \
--url https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/daily-release \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://www150.statcan.gc.ca/n1/daily-quotidien/261021/dq261021a-eng.htm"
}
'import requests
url = "https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/daily-release"
payload = { "url": "https://www150.statcan.gc.ca/n1/daily-quotidien/261021/dq261021a-eng.htm" }
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({
url: 'https://www150.statcan.gc.ca/n1/daily-quotidien/261021/dq261021a-eng.htm'
})
};
fetch('https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/daily-release', 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/daily-release",
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([
'url' => 'https://www150.statcan.gc.ca/n1/daily-quotidien/261021/dq261021a-eng.htm'
]),
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/daily-release"
payload := strings.NewReader("{\n \"url\": \"https://www150.statcan.gc.ca/n1/daily-quotidien/261021/dq261021a-eng.htm\"\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/daily-release")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://www150.statcan.gc.ca/n1/daily-quotidien/261021/dq261021a-eng.htm\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/daily-release")
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 \"url\": \"https://www150.statcan.gc.ca/n1/daily-quotidien/261021/dq261021a-eng.htm\"\n}"
response = http.request(request)
puts response.read_bodyDaily release
To read or cite a StatCan release (CPI, Labour Force Survey, GDP) as published, and to find the tables behind it.
curl --request POST \
--url https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/daily-release \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://www150.statcan.gc.ca/n1/daily-quotidien/261021/dq261021a-eng.htm"
}
'import requests
url = "https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/daily-release"
payload = { "url": "https://www150.statcan.gc.ca/n1/daily-quotidien/261021/dq261021a-eng.htm" }
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({
url: 'https://www150.statcan.gc.ca/n1/daily-quotidien/261021/dq261021a-eng.htm'
})
};
fetch('https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/daily-release', 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/daily-release",
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([
'url' => 'https://www150.statcan.gc.ca/n1/daily-quotidien/261021/dq261021a-eng.htm'
]),
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/daily-release"
payload := strings.NewReader("{\n \"url\": \"https://www150.statcan.gc.ca/n1/daily-quotidien/261021/dq261021a-eng.htm\"\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/daily-release")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://www150.statcan.gc.ca/n1/daily-quotidien/261021/dq261021a-eng.htm\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/daily-release")
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 \"url\": \"https://www150.statcan.gc.ca/n1/daily-quotidien/261021/dq261021a-eng.htm\"\n}"
response = http.request(request)
puts response.read_bodyRequest contract
- Method and path: POST /apis/v1/statcan-gc-ca/economic-statistics/daily-release
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/daily-release
{
"operationId": "statcan-gc-ca.economic-statistics.daily-release",
"method": "POST",
"path": "/apis/v1/statcan-gc-ca/economic-statistics/daily-release",
"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": {
"url": "https://www150.statcan.gc.ca/n1/daily-quotidien/261021/dq261021a-eng.htm"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"date": {
"description": "Release day, YYYY-MM-DD, instead of url. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"letter": {
"default": "a",
"description": "Which release of that day (a is the first). Pattern: ^[a-zA-Z]$.\n\nProvider reference: default \"a\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"url": {
"description": "A Daily article URL, e.g. https://www150.statcan.gc.ca/n1/daily-quotidien/261021/dq261021a-eng.htm.",
"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 Daily article URL, e.g. https://www150.statcan.gc.ca/n1/daily-quotidien/261021/dq261021a-eng.htm.
Response
One article of The Daily, Statistics Canada's official release bulletin, by URL or by release date and letter (a, b, c... in publication order that day): title, release date, the headline indicator boxes (label, value, reference period, change and its basis, source tables), the article text (headings marked ##, chart and navigation panels left out, notes to readers kept), every table it cites with its viewer URL, and the links to its tables page, PDF and previous release. An article that does not exist is not_found.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
attribution | string | |
indicators | object[] | |
observed_at_ms | number | |
pdf_url | string | |
previous_release_url | string | |
release_date | string | |
source_url | string | |
tables | object[] | |
tables_page_url | string | |
text | string | |
title | 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.