> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# 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".

## 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`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/cer-rec-gc-ca.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "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.


## OpenAPI

````yaml openapi/cer-rec-gc-ca.json POST /apis/v1/cer-rec-gc-ca/energy-data/energy-statistics
openapi: 3.1.0
info:
  description: ''
  title: Canada Energy Regulator (CER) open data
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    cer-rec-gc-ca:
      description: ''
      title: Canada Energy Regulator (CER) open data
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: dfe498aefc001ad7640ab0b3e374af162ddd24ac2c4d0d9cdf6a1db9b29bce1a
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/cer-rec-gc-ca/energy-data/energy-future
    - /apis/v1/cer-rec-gc-ca/energy-data/energy-statistics
    - /apis/v1/cer-rec-gc-ca/energy-data/incidents
    - /apis/v1/cer-rec-gc-ca/energy-data/pipelines
    - /apis/v1/cer-rec-gc-ca/energy-data/regulatory-instruments
    - /apis/v1/cer-rec-gc-ca/energy-data/throughput
    - /apis/v1/cer-rec-gc-ca/energy-data/tolls
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:fbc459c04761911a8e86b18da9919c8e51841a225ebda3bb4c8b0facac0285bb
    facts_hash: dfe498aefc001ad7640ab0b3e374af162ddd24ac2c4d0d9cdf6a1db9b29bce1a
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: cer-rec-gc-ca
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/cer-rec-gc-ca/energy-data/energy-statistics:
    post:
      tags:
        - Canada Energy Regulator (CER) open data
      summary: Energy statistics
      description: >-
        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".
      operationId: cer-rec-gc-ca.energy-data.energy-statistics
      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.


                    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"].
                  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.

                    Provider 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.


                    Provider 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
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-25.
                  summary: Official provider example
                  value:
                    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'
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            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.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.