Department of Energy IEO API

Access to International Energy Outlook Data

GitHub OpenAPI

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v2/ieo/{route1} Get the AEO IEO route · EIA\API\Controllers\Dataset\Aeo Ieo\Ieo controller:: construct #
Ask an LLM
“What does the AEO IEO route mean for one of the decided values?”
“Can I find out which IEO route is available for a given year?”
Tell an agent
Get the AEO IEO route {route1}.
Show IEO route {route1}.
GET /v2/ieo/{route1}/facet List facets of an IEO route · EIA\API\Controllers\Dataset\Aeo Ieo\Ieo controller::route facet #
Ask an LLM
“What facets does an IEO data route support?”
“Can I see the facet names for a year's IEO route?”
Tell an agent
List the facets of IEO route {route1}.
Show the facet names for {route1}.
GET /v2/ieo/{route1}/facet/{facet_id} Get one facet of an IEO route · EIA\API\Controllers\Dataset\Aeo Ieo\Ieo controller::route facet id #
Ask an LLM
“What does a single facet of an IEO route contain?”
“Can I fetch one IEO facet by its ID?”
Tell an agent
Get facet {facet_id} of IEO route {route1}.
Show the values in IEO facet {facet_id} for {route1}.
GET /v2/ieo/{route1}/data Query IEO data with GET · EIA\API\Controllers\Dataset\Aeo Ieo\Ieo controller::get data #
Ask an LLM
“How do I pull IEO data for a frequency and date range?”
“Can I sort and limit IEO data returned by GET?”
Tell an agent
Get IEO data for {route1} from {start} to {end}.
Query {route1} IEO data sorted by {sort} with facets {facets}.
POST /v2/ieo/{route1}/data Query IEO data with POST · Return IEO Data #
Ask an LLM
“Can I send IEO query filters in a POST body?”
“Is there a POST endpoint for IEO data with a frequency?”
Tell an agent
POST IEO data filters {data} to {route1}.
Send a POST request to {route1} for {frequency} IEO data.
GET /v2/ieo List all IEO data routes · EIA\API\Controllers\Dataset\Aeo Ieo\Ieo controller::ieo #
Ask an LLM
“Which IEO data routes exist across all years?”
“What is the root IEO endpoint for energy outlooks?”
Tell an agent
List all IEO data routes.
Show the root IEO endpoint for energy outlook data.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/doe:doe-ieo-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

doe-ieo-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: EIA APIv2 IEO API
  description: Swagger UI interface for EIA's APIv2. You can also explore EIA's API using the Opendata Query Browser. For this UI, you must use your EIA `api key` to apply filters and return data. You can register for an API Key at https://www.eia.gov/opendata/
  version: 2.1.0
servers:
- url: https://api.eia.gov
security:
- api_key: []
tags:
- name: IEO
  description: Access to International Energy Outlook Data
paths:
  /v2/ieo/{route1}:
    parameters:
    - $ref: '#/components/parameters/route1'
    get:
      tags:
      - IEO
      operationId: EIA\API\Controllers\Dataset\AeoIeo\IeoController::__construct
      parameters:
      - name: route1
        in: path
        description: Available AEO year data route
        required: true
        schema:
          type: string
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/responses/final-route'
      summary: 'EIA\API\Controllers\Dataset\Aeo Ieo\Ieo controller:: construct'
      x-summary-source: derived
  /v2/ieo/{route1}/facet:
    parameters:
    - $ref: '#/components/parameters/route1'
    get:
      tags:
      - IEO
      operationId: EIA\API\Controllers\Dataset\AeoIeo\IeoController::route_facet
      parameters:
      - name: route1
        in: path
        description: Available AEO year data route
        required: true
        schema:
          type: string
      responses:
        '400':
          description: Invalid input
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/responses/facets'
      summary: EIA\API\Controllers\Dataset\Aeo Ieo\Ieo controller::route facet
      x-summary-source: derived
  /v2/ieo/{route1}/facet/{facet_id}:
    parameters:
    - $ref: '#/components/parameters/route1'
    - $ref: '#/components/parameters/facetId'
    get:
      tags:
      - IEO
      operationId: EIA\API\Controllers\Dataset\AeoIeo\IeoController::route_facetId
      responses:
        '400':
          description: Invalid input
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/responses/facet'
      summary: EIA\API\Controllers\Dataset\Aeo Ieo\Ieo controller::route facet id
      x-summary-source: derived
  /v2/ieo/{route1}/data:
    parameters:
    - $ref: '#/components/parameters/route1'
    get:
      tags:
      - IEO
      description: API data with query params
      operationId: EIA\API\Controllers\Dataset\AeoIeo\IeoController::get_data
      parameters:
      - $ref: '#/components/parameters/data'
      - $ref: '#/components/parameters/facets'
      - $ref: '#/components/parameters/frequency'
      - $ref: '#/components/parameters/start'
      - $ref: '#/components/parameters/end'
      - $ref: '#/components/parameters/sort'
      - $ref: '#/components/parameters/length'
      - $ref: '#/components/parameters/offset'
      responses:
        '400':
          description: Invalid input
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/responses/data'
      summary: EIA\API\Controllers\Dataset\Aeo Ieo\Ieo controller::get data
      x-summary-source: derived
    post:
      tags:
      - IEO
      summary: Return IEO Data
      operationId: EIA\API\Controllers\Dataset\AeoIeo\IeoController::post_data
      requestBody:
        $ref: '#/components/requestBodies/dataParams'
      responses:
        '400':
          description: Invalid input
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/responses/data'
  /v2/ieo:
    get:
      tags:
      - IEO
      operationId: EIA\API\Controllers\Dataset\AeoIeo\IeoController::ieo
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/responses/route'
      summary: EIA\API\Controllers\Dataset\Aeo Ieo\Ieo controller::ieo
      x-summary-source: derived
components:
  schemas:
    DataResponseContainer:
      properties:
        apiVersion:
          type: string
        request:
          $ref: '#/components/schemas/RouteRequest'
        response:
          $ref: '#/components/schemas/DataResponse'
      type: object
    Frequency:
      properties:
        id:
          type: string
        description:
          type: string
        format:
          type: string
        query:
          type: string
      type: object
    FacetOptionListContainer:
      properties:
        apiVersion:
          type: string
        request:
          $ref: '#/components/schemas/RouteRequest'
        response:
          $ref: '#/components/schemas/FacetOptionList'
      type: object
    Sort:
      properties:
        column:
          type: string
        direction:
          type: string
      type: object
    FinalRoute:
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
        frequency:
          type: array
          items:
            $ref: '#/components/schemas/Frequency'
        facets:
          type: array
          items:
            $ref: '#/components/schemas/FacetMetaData'
        data: {}
        startPeriod:
          type: string
        endPeriod:
          type: string
        defaultDateFormat:
          type: string
        defaultFrequency:
          type: string
      type: object
    Facet:
      properties:
        id:
          type: string
        name:
          type: string
        alias:
          type: string
      type: object
    FacetDetailsContainer:
      properties:
        apiVersion:
          type: string
        request:
          $ref: '#/components/schemas/RouteRequest'
        response:
          $ref: '#/components/schemas/FacetDetails'
      type: object
    FinalRouteResponse:
      properties:
        response:
          $ref: '#/components/schemas/FinalRoute'
        request:
          $ref: '#/components/schemas/RouteRequest'
      type: object
    RouteRequest:
      properties:
        command:
          type: array
          items:
            type: string
        params: {}
      type: object
    FacetDetails:
      properties:
        totalFacets:
          type: integer
        facets:
          type: array
          items:
            $ref: '#/components/schemas/Facet'
      type: object
    FinalRouteResponseContainer:
      properties:
        apiVersion:
          type: string
        request:
          $ref: '#/components/schemas/RouteRequest'
        response:
          $ref: '#/components/schemas/FinalRouteResponse'
      type: object
    DataResponse:
      properties:
        data: {}
        dateFormat:
          type: string
        description:
          type: string
        frequency:
          type: string
        total:
          type: integer
      type: object
    FacetMetaData:
      properties:
        id:
          type: string
        description:
          type: string
      type: object
    FacetOptionList:
      properties:
        totalFacetOptions:
          type: integer
        facetOptions:
          type: array
          items:
            type: string
      type: object
    Routes:
      properties:
        routes:
          type: array
          items:
            type: string
        id:
          type: string
        name:
          type: string
        description:
          type: string
      type: object
    DataParams:
      properties:
        data:
          type: array
          items:
            type: string
        facets:
          type: object
        frequency:
          type: string
        start:
          type: string
        end:
          type: string
        sort:
          type: array
          items:
            $ref: '#/components/schemas/Sort'
        length:
          type: integer
        offset:
          type: integer
      type: object
    RouteResponseContainer:
      properties:
        apiVersion:
          type: string
        request:
          $ref: '#/components/schemas/RouteRequest'
        response:
          $ref: '#/components/schemas/RouteResponse'
      type: object
    RouteResponse:
      properties:
        response:
          $ref: '#/components/schemas/Routes'
        request:
          $ref: '#/components/schemas/RouteRequest'
      type: object
  responses:
    final-route:
      description: List of API data sets
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/FinalRouteResponseContainer'
    facets:
      description: List of facet options
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/FacetOptionListContainer'
    route:
      description: List of API data sets
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RouteResponseContainer'
    data:
      description: API Data
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/DataResponseContainer'
    facet:
      description: Facet details
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/FacetDetailsContainer'
  parameters:
    start:
      name: start
      in: query
      description: Start date to filter by
      required: false
      schema:
        type: string
    sort:
      name: sort
      in: query
      description: How to sort returned data
      required: false
      schema:
        $ref: '#/components/schemas/Sort'
    route1:
      name: route1
      in: path
      description: First level Sub route
      required: true
      schema:
        type: string
    facets:
      name: facets
      in: query
      description: Facets to filter by
      required: false
      schema:
        type: object
    frequency:
      name: frequency
      in: query
      description: Frequency to filter by
      required: false
      schema:
        type: string
    data:
      name: data
      in: query
      description: Data columns to filter by
      required: false
      schema:
        type: array
        items:
          type: string
    length:
      name: length
      in: query
      description: Max length of returned data
      required: false
      schema:
        type: integer
    facetId:
      name: facet_id
      in: path
      description: Facet ID
      required: true
      schema:
        type: string
    end:
      name: end
      in: query
      description: End date to filter by
      required: false
      schema:
        type: string
    offset:
      name: offset
      in: query
      description: Offset of returned data
      required: false
      schema:
        type: integer
  requestBodies:
    dataParams:
      description: Parameters for data call
      required: true
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/DataParams'
  securitySchemes:
    api_key:
      type: apiKey
      name: api_key
      in: query
externalDocs:
  description: EIA's API Technical Documentation
  url: https://www.eia.gov/opendata/documentation.php