U.S. Energy Information Administration Open Data API — Total Energy

U.S. Energy Information Administration Open Data API — Total Energy. 1 operations. Lead operation: Query total energy time series. Self-contained Naftiko capability covering one Energy Information Administration business surface.

Run with Naftiko Energy Information AdministrationTotal Energy

What You Can Do

GET
Gettotalenergy — Query total energy time series
/v1/total-energy/data

MCP Tools

query-total-energy-time-series

Query total energy time series

read-only idempotent

Capability Spec

open-data-total-energy.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: U.S. Energy Information Administration Open Data API — Total Energy
  description: 'U.S. Energy Information Administration Open Data API — Total Energy. 1 operations. Lead operation: Query total
    energy time series. Self-contained Naftiko capability covering one Energy Information Administration business surface.'
  tags:
  - Energy Information Administration
  - Total Energy
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ENERGY_INFORMATION_ADMINISTRATION_API_KEY: ENERGY_INFORMATION_ADMINISTRATION_API_KEY
capability:
  consumes:
  - type: http
    namespace: open-data-total-energy
    baseUri: https://api.eia.gov/v2
    description: U.S. Energy Information Administration Open Data API — Total Energy business capability. Self-contained,
      no shared references.
    resources:
    - name: total-energy-data
      path: /total-energy/data
      operations:
      - name: gettotalenergy
        method: GET
        description: Query total energy time series
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: api_key
      value: '{{env.ENERGY_INFORMATION_ADMINISTRATION_API_KEY}}'
      placement: query
  exposes:
  - type: rest
    namespace: open-data-total-energy-rest
    port: 8080
    description: REST adapter for U.S. Energy Information Administration Open Data API — Total Energy. One Spectral-compliant
      resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/total-energy/data
      name: total-energy-data
      description: REST surface for total-energy-data.
      operations:
      - method: GET
        name: gettotalenergy
        description: Query total energy time series
        call: open-data-total-energy.gettotalenergy
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: open-data-total-energy-mcp
    port: 9090
    transport: http
    description: MCP adapter for U.S. Energy Information Administration Open Data API — Total Energy. One tool per consumed
      operation, routed inline through this capability's consumes block.
    tools:
    - name: query-total-energy-time-series
      description: Query total energy time series
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: open-data-total-energy.gettotalenergy
      outputParameters:
      - type: object
        mapping: $.