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

U.S. Energy Information Administration Open Data API — Discovery. 7 operations. Lead operation: List top-level data categories. Self-contained Naftiko capability covering one Energy Information Administration business surface.

Run with Naftiko Energy Information AdministrationDiscovery

What You Can Do

GET
Getroot — List top-level data categories
/v1
GET
Getcoalroutes — List coal child routes
/v1/coal
GET
Getelectricityroutes — List electricity child routes
/v1/electricity
GET
Getinternationalroutes — List international child routes
/v1/international
GET
Getnaturalgasroutes — List natural gas child routes
/v1/natural-gas
GET
Getnuclearoutagesroutes — List nuclear outage child routes
/v1/nuclear-outages
GET
Getpetroleumroutes — List petroleum child routes
/v1/petroleum

MCP Tools

list-top-level-data-categories

List top-level data categories

read-only idempotent
list-coal-child-routes

List coal child routes

read-only idempotent
list-electricity-child-routes

List electricity child routes

read-only idempotent
list-international-child-routes

List international child routes

read-only idempotent
list-natural-gas-child-routes

List natural gas child routes

read-only idempotent
list-nuclear-outage-child-routes

List nuclear outage child routes

read-only idempotent
list-petroleum-child-routes

List petroleum child routes

read-only idempotent

Capability Spec

open-data-discovery.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: U.S. Energy Information Administration Open Data API — Discovery
  description: 'U.S. Energy Information Administration Open Data API — Discovery. 7 operations. Lead operation: List top-level
    data categories. Self-contained Naftiko capability covering one Energy Information Administration business surface.'
  tags:
  - Energy Information Administration
  - Discovery
  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-discovery
    baseUri: https://api.eia.gov/v2
    description: U.S. Energy Information Administration Open Data API — Discovery business capability. Self-contained, no
      shared references.
    resources:
    - name: root
      path: /
      operations:
      - name: getroot
        method: GET
        description: List top-level data categories
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: coal
      path: /coal
      operations:
      - name: getcoalroutes
        method: GET
        description: List coal child routes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: electricity
      path: /electricity
      operations:
      - name: getelectricityroutes
        method: GET
        description: List electricity child routes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: international
      path: /international
      operations:
      - name: getinternationalroutes
        method: GET
        description: List international child routes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: natural-gas
      path: /natural-gas
      operations:
      - name: getnaturalgasroutes
        method: GET
        description: List natural gas child routes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: nuclear-outages
      path: /nuclear-outages
      operations:
      - name: getnuclearoutagesroutes
        method: GET
        description: List nuclear outage child routes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: petroleum
      path: /petroleum
      operations:
      - name: getpetroleumroutes
        method: GET
        description: List petroleum child routes
        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-discovery-rest
    port: 8080
    description: REST adapter for U.S. Energy Information Administration Open Data API — Discovery. One Spectral-compliant
      resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1
      name: root
      description: REST surface for root.
      operations:
      - method: GET
        name: getroot
        description: List top-level data categories
        call: open-data-discovery.getroot
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/coal
      name: coal
      description: REST surface for coal.
      operations:
      - method: GET
        name: getcoalroutes
        description: List coal child routes
        call: open-data-discovery.getcoalroutes
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/electricity
      name: electricity
      description: REST surface for electricity.
      operations:
      - method: GET
        name: getelectricityroutes
        description: List electricity child routes
        call: open-data-discovery.getelectricityroutes
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/international
      name: international
      description: REST surface for international.
      operations:
      - method: GET
        name: getinternationalroutes
        description: List international child routes
        call: open-data-discovery.getinternationalroutes
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/natural-gas
      name: natural-gas
      description: REST surface for natural-gas.
      operations:
      - method: GET
        name: getnaturalgasroutes
        description: List natural gas child routes
        call: open-data-discovery.getnaturalgasroutes
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/nuclear-outages
      name: nuclear-outages
      description: REST surface for nuclear-outages.
      operations:
      - method: GET
        name: getnuclearoutagesroutes
        description: List nuclear outage child routes
        call: open-data-discovery.getnuclearoutagesroutes
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/petroleum
      name: petroleum
      description: REST surface for petroleum.
      operations:
      - method: GET
        name: getpetroleumroutes
        description: List petroleum child routes
        call: open-data-discovery.getpetroleumroutes
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: open-data-discovery-mcp
    port: 9090
    transport: http
    description: MCP adapter for U.S. Energy Information Administration Open Data API — Discovery. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: list-top-level-data-categories
      description: List top-level data categories
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: open-data-discovery.getroot
      outputParameters:
      - type: object
        mapping: $.
    - name: list-coal-child-routes
      description: List coal child routes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: open-data-discovery.getcoalroutes
      outputParameters:
      - type: object
        mapping: $.
    - name: list-electricity-child-routes
      description: List electricity child routes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: open-data-discovery.getelectricityroutes
      outputParameters:
      - type: object
        mapping: $.
    - name: list-international-child-routes
      description: List international child routes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: open-data-discovery.getinternationalroutes
      outputParameters:
      - type: object
        mapping: $.
    - name: list-natural-gas-child-routes
      description: List natural gas child routes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: open-data-discovery.getnaturalgasroutes
      outputParameters:
      - type: object
        mapping: $.
    - name: list-nuclear-outage-child-routes
      description: List nuclear outage child routes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: open-data-discovery.getnuclearoutagesroutes
      outputParameters:
      - type: object
        mapping: $.
    - name: list-petroleum-child-routes
      description: List petroleum child routes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: open-data-discovery.getpetroleumroutes
      outputParameters:
      - type: object
        mapping: $.