curl --request POST \
--url https://api.aisa.one/apis/v1/cer-rec-gc-ca/energy-data/energy-statistics \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dataset": "crude_oil_exports_annual"
}
'import requests
url = "https://api.aisa.one/apis/v1/cer-rec-gc-ca/energy-data/energy-statistics"
payload = { "dataset": "crude_oil_exports_annual" }
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({dataset: 'crude_oil_exports_annual'})
};
fetch('https://api.aisa.one/apis/v1/cer-rec-gc-ca/energy-data/energy-statistics', 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/cer-rec-gc-ca/energy-data/energy-statistics",
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([
'dataset' => 'crude_oil_exports_annual'
]),
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/cer-rec-gc-ca/energy-data/energy-statistics"
payload := strings.NewReader("{\n \"dataset\": \"crude_oil_exports_annual\"\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/cer-rec-gc-ca/energy-data/energy-statistics")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"dataset\": \"crude_oil_exports_annual\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/cer-rec-gc-ca/energy-data/energy-statistics")
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 \"dataset\": \"crude_oil_exports_annual\"\n}"
response = http.request(request)
puts response.read_body{
"columns": [
"Year",
"PADD",
"Volume (m3/d)",
"Volume (bbl/d)"
],
"dataset": "crude_oil_exports_annual",
"facets": {
"PADD": [
"PADD I",
"PADD II",
"PADD III",
"PADD IV",
"PADD V",
"Other",
"Total"
]
},
"filters": {
"PADD": "PADD II"
},
"frequency": "annual",
"latest_period": "2025",
"license": {
"attribution": "Contains information licensed under the Open Government Licence - Canada (Canada Energy Regulator).",
"name": "Open Government Licence - Canada 2.0",
"url": "https://open.canada.ca/en/open-government-licence-canada"
},
"limit": 100,
"next_offset": null,
"observed_at_ms": 1792969574194,
"offset": 0,
"period_column": "Year",
"rows": [
{
"period": "2020",
"values": {
"PADD": "PADD II",
"Volume (bbl/d)": 2147730.2,
"Volume (m3/d)": 341296.5
}
},
{
"period": "2019",
"values": {
"PADD": "PADD II",
"Volume (bbl/d)": 2149728.1,
"Volume (m3/d)": 341614
}
},
{
"period": "2018",
"values": {
"PADD": "PADD II",
"Volume (bbl/d)": 2110391.5,
"Volume (m3/d)": 335363
}
},
{
"period": "2017",
"values": {
"PADD": "PADD II",
"Volume (bbl/d)": 2095034.9,
"Volume (m3/d)": 332922.7
}
},
{
"period": "2016",
"values": {
"PADD": "PADD II",
"Volume (bbl/d)": 1983510.4,
"Volume (m3/d)": 315200.3
}
},
{
"period": "2015",
"values": {
"PADD": "PADD II",
"Volume (bbl/d)": 1923540.1,
"Volume (m3/d)": 305670.4
}
}
],
"source": {
"last_modified": "Thu, 01 Oct 2026 10:02:31 GMT",
"url": "https://www.cer-rec.gc.ca/open/imports-exports/crude-oil-exports-by-destination-annual.csv"
},
"title": "Crude oil exports by destination (US PADD), annual",
"total_count": 6,
"window": {
"from": "2015-01-01",
"to": "2020-12-31"
}
}Energy statistics
Questions like “Canadian crude exports to PADD II in 2024”, “Quebec electricity exports to New York last month and the price”, “Alberta crude production by type”, “LNG cargoes from Canada”.
curl --request POST \
--url https://api.aisa.one/apis/v1/cer-rec-gc-ca/energy-data/energy-statistics \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dataset": "crude_oil_exports_annual"
}
'import requests
url = "https://api.aisa.one/apis/v1/cer-rec-gc-ca/energy-data/energy-statistics"
payload = { "dataset": "crude_oil_exports_annual" }
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({dataset: 'crude_oil_exports_annual'})
};
fetch('https://api.aisa.one/apis/v1/cer-rec-gc-ca/energy-data/energy-statistics', 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/cer-rec-gc-ca/energy-data/energy-statistics",
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([
'dataset' => 'crude_oil_exports_annual'
]),
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/cer-rec-gc-ca/energy-data/energy-statistics"
payload := strings.NewReader("{\n \"dataset\": \"crude_oil_exports_annual\"\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/cer-rec-gc-ca/energy-data/energy-statistics")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"dataset\": \"crude_oil_exports_annual\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/cer-rec-gc-ca/energy-data/energy-statistics")
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 \"dataset\": \"crude_oil_exports_annual\"\n}"
response = http.request(request)
puts response.read_body{
"columns": [
"Year",
"PADD",
"Volume (m3/d)",
"Volume (bbl/d)"
],
"dataset": "crude_oil_exports_annual",
"facets": {
"PADD": [
"PADD I",
"PADD II",
"PADD III",
"PADD IV",
"PADD V",
"Other",
"Total"
]
},
"filters": {
"PADD": "PADD II"
},
"frequency": "annual",
"latest_period": "2025",
"license": {
"attribution": "Contains information licensed under the Open Government Licence - Canada (Canada Energy Regulator).",
"name": "Open Government Licence - Canada 2.0",
"url": "https://open.canada.ca/en/open-government-licence-canada"
},
"limit": 100,
"next_offset": null,
"observed_at_ms": 1792969574194,
"offset": 0,
"period_column": "Year",
"rows": [
{
"period": "2020",
"values": {
"PADD": "PADD II",
"Volume (bbl/d)": 2147730.2,
"Volume (m3/d)": 341296.5
}
},
{
"period": "2019",
"values": {
"PADD": "PADD II",
"Volume (bbl/d)": 2149728.1,
"Volume (m3/d)": 341614
}
},
{
"period": "2018",
"values": {
"PADD": "PADD II",
"Volume (bbl/d)": 2110391.5,
"Volume (m3/d)": 335363
}
},
{
"period": "2017",
"values": {
"PADD": "PADD II",
"Volume (bbl/d)": 2095034.9,
"Volume (m3/d)": 332922.7
}
},
{
"period": "2016",
"values": {
"PADD": "PADD II",
"Volume (bbl/d)": 1983510.4,
"Volume (m3/d)": 315200.3
}
},
{
"period": "2015",
"values": {
"PADD": "PADD II",
"Volume (bbl/d)": 1923540.1,
"Volume (m3/d)": 305670.4
}
}
],
"source": {
"last_modified": "Thu, 01 Oct 2026 10:02:31 GMT",
"url": "https://www.cer-rec.gc.ca/open/imports-exports/crude-oil-exports-by-destination-annual.csv"
},
"title": "Crude oil exports by destination (US PADD), annual",
"total_count": 6,
"window": {
"from": "2015-01-01",
"to": "2020-12-31"
}
}Request contract
- Method and path: POST /apis/v1/cer-rec-gc-ca/energy-data/energy-statistics
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/cer-rec-gc-ca/energy-data/energy-statistics
{
"operationId": "cer-rec-gc-ca.energy-data.energy-statistics",
"method": "POST",
"path": "/apis/v1/cer-rec-gc-ca/energy-data/energy-statistics",
"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": {
"dataset": "crude_oil_exports_annual",
"filters": {
"PADD": "PADD II"
},
"from": "2015",
"to": "2020"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"dataset": {
"description": "Statistics dataset.\n\nProvider reference: allowed values [\"crude_oil_exports_monthly\", \"crude_oil_exports_annual\", \"crude_oil_production_monthly\", \"natural_gas_exports_monthly\", \"natural_gas_exports_annual\", \"natural_gas_production_monthly\", \"lng_exports_annual\", \"lng_exports_detail\", \"ngl_exports_monthly\", \"ngl_exports_annual\", \"refined_products_exports_monthly\", \"refined_products_exports_annual\", \"electricity_trade_monthly\", \"electricity_trade_annual\", \"electricity_capacity_annual\", \"refinery_crude_runs_weekly\", \"oil_pipeline_apportionment_monthly\"].",
"type": "string"
},
"filters": {
"additionalProperties": true,
"description": "Column name (as listed in `columns`, case-insensitive) to the value wanted, e.g. `{\"PADD\": \"PADD II\"}`, `{\"Activity\": \"Exports\", \"Source\": \"Quebec\"}`. An exact value (accents ignored) is preferred, otherwise every value containing it.",
"type": "object",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"from": {
"description": "Earliest date: `YYYY`, `YYYY-MM` or `YYYY-MM-DD`. Pattern: ^\\d{4}(-\\d{2}(-\\d{2})?)?$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"limit": {
"default": 100,
"description": "Rows per page.\n\nProvider reference: minimum 1; maximum 1000; default 100.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 1000,
"min": 1
}
},
"offset": {
"default": 0,
"description": "`next_offset` from the previous page; repeat the other inputs with it.\n\nProvider reference: minimum 0; default 0.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"min": 0
}
},
"to": {
"description": "Latest date: `YYYY`, `YYYY-MM` or `YYYY-MM-DD` (a year or month means its last day). Pattern: ^\\d{4}(-\\d{2}(-\\d{2})?)?$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
}
},
"required": [
"dataset"
],
"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
Statistics dataset.
Provider reference: allowed values ["crude_oil_exports_monthly", "crude_oil_exports_annual", "crude_oil_production_monthly", "natural_gas_exports_monthly", "natural_gas_exports_annual", "natural_gas_production_monthly", "lng_exports_annual", "lng_exports_detail", "ngl_exports_monthly", "ngl_exports_annual", "refined_products_exports_monthly", "refined_products_exports_annual", "electricity_trade_monthly", "electricity_trade_annual", "electricity_capacity_annual", "refinery_crude_runs_weekly", "oil_pipeline_apportionment_monthly"].
Response
The CER's energy market and commodity statistics as open data: crude oil exports by US PADD, natural gas exports by port with values and prices, LNG exports by terminal and cargo, NGL and refined product exports, electricity exports and imports by province and US state with prices, estimated crude oil and marketable gas production by province, refinery crude runs, generating capacity and oil pipeline apportionment, monthly, weekly or annual. Filter any column by value (filters) and by period; newest first, paged. Each answer names the columns and lists the values of the categorical ones.
The response contains the tool result directly.
The provider identifies rows as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
period | string | YYYY-MM-DD for dated rows, YYYY for annual ones. |
values | object | The other columns of the row, keyed by the CER column name; numbers parsed, Confidential kept as text. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.