curl --request POST \
--url https://api.aisa.one/apis/v1/cer-rec-gc-ca/energy-data/throughput \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"pipeline": "trans-mountain"
}
'import requests
url = "https://api.aisa.one/apis/v1/cer-rec-gc-ca/energy-data/throughput"
payload = { "pipeline": "trans-mountain" }
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({pipeline: 'trans-mountain'})
};
fetch('https://api.aisa.one/apis/v1/cer-rec-gc-ca/energy-data/throughput', 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/throughput",
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([
'pipeline' => 'trans-mountain'
]),
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/throughput"
payload := strings.NewReader("{\n \"pipeline\": \"trans-mountain\"\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/throughput")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"pipeline\": \"trans-mountain\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/cer-rec-gc-ca/energy-data/throughput")
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 \"pipeline\": \"trans-mountain\"\n}"
response = http.request(request)
puts response.read_bodyThroughput
Questions like “how full was Trans Mountain at Westridge in 2025”, “NGTL East Gate daily flows last week”, “Enbridge Mainline throughput vs capacity at Gretna”.
curl --request POST \
--url https://api.aisa.one/apis/v1/cer-rec-gc-ca/energy-data/throughput \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"pipeline": "trans-mountain"
}
'import requests
url = "https://api.aisa.one/apis/v1/cer-rec-gc-ca/energy-data/throughput"
payload = { "pipeline": "trans-mountain" }
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({pipeline: 'trans-mountain'})
};
fetch('https://api.aisa.one/apis/v1/cer-rec-gc-ca/energy-data/throughput', 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/throughput",
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([
'pipeline' => 'trans-mountain'
]),
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/throughput"
payload := strings.NewReader("{\n \"pipeline\": \"trans-mountain\"\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/throughput")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"pipeline\": \"trans-mountain\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/cer-rec-gc-ca/energy-data/throughput")
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 \"pipeline\": \"trans-mountain\"\n}"
response = http.request(request)
puts response.read_bodyRequest contract
- Method and path: POST /apis/v1/cer-rec-gc-ca/energy-data/throughput
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/cer-rec-gc-ca/energy-data/throughput
{
"operationId": "cer-rec-gc-ca.energy-data.throughput",
"method": "POST",
"path": "/apis/v1/cer-rec-gc-ca/energy-data/throughput",
"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": {
"from": "2025-01",
"key_point": "Westridge",
"limit": 12,
"pipeline": "trans-mountain",
"to": "2025-12"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"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"
}
},
"granularity": {
"default": "monthly",
"description": "`monthly` (default; daily gas data averaged per month) or `daily` (gas systems only).\n\nProvider reference: allowed values [\"monthly\", \"daily\"]; default \"monthly\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"monthly",
"daily"
]
}
},
"key_point": {
"description": "Key point name or part of it (`Westridge`, `East Gate`, `Kerrobert`); see `key_points` in any answer.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"limit": {
"default": 100,
"description": "Rows per page.\n\nProvider reference: minimum 1; maximum 500; default 100.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 500,
"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
}
},
"pipeline": {
"description": "Pipeline system: a slug (`trans-mountain`, `ngtl`, `tc-mainline`, `enbridge-mainline`, `keystone`, `westcoast`, `alliance`), the CER name or a common alias (`TMX`, `NOVA`, `TCPL`, `BC Pipeline`). An unknown name fails with not_found listing the systems that have throughput data.",
"type": "string"
},
"product": {
"description": "Oil product class or part of it (`heavy`, `refined`).",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"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"
}
},
"trade_type": {
"description": "`intracanada`, `export` or `import`.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
}
},
"required": [
"pipeline"
],
"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
Pipeline throughput and capacity at a CER-regulated system's key points, from the CER's Pipeline Throughput and Capacity open data (the numbers behind the Pipeline Profiles traffic charts): natural gas systems daily (returned as monthly averages unless granularity is daily), oil systems monthly by product. Each row has throughput and capacity in thousand m3/d, GJ/d for gas, committed and available capacity and the reason for variance for oil, and utilization. Filter by key point, product, trade type and date; newest first, paged. 19 systems: NGTL, TC Canadian Mainline, Westcoast, Alliance, Foothills, M&NP, TQM, Brunswick, Suffield, Trans Mountain, Enbridge Mainline, Line 9, Keystone, Cochin, Trans-Northern, Southern Lights, Norman Wells, Westspur and Montreal.
The response contains the tool result directly.
The provider identifies rows as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
available_capacity_1000m3d | number | Oil: available capacity, thousand m3/d. |
capacity_1000m3d | number | Gas: operational capacity; oil: nameplate capacity, thousand m3/d. |
committed_1000m3d | number | Oil systems with firm service: committed volumes. |
date | string | Day (daily) or first of the month (monthly), ISO. |
days | number | Monthly gas rows: days averaged; null otherwise. |
direction_of_flow | string | |
key_point | string | |
product | string | Oil systems: product class such as domestic heavy; null for gas. |
reason_for_variance | string | Oil: why available capacity is below nameplate. |
throughput_1000m3d | number | Throughput in thousand cubic metres per day (monthly gas rows: the daily average). |
throughput_gj_d | number | Gas: throughput in GJ/d. |
trade_type | string | |
uncommitted_1000m3d | number | |
utilization_pct | number | Throughput over available capacity (else capacity), percent. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.