Energy Information Administration Discovery API
Browse the API tree to discover available routes, facets, and metadata.
Energy Information Administration Discovery API is one of 10 APIs that Energy Information Administration publishes on the APIs.io network, described by a machine-readable OpenAPI specification.
Tagged areas include Discovery. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.
This API exposes 7 operations across 7 paths, and defines 1 schema. It is described by OpenAPI 3.1.0, at version 2.1.
Requests are made against a single base URL, https://api.eia.gov/v2.
Metadata
The identity and technical contract details declared by the specification.
Authentication & Security 1
Energy Information Administration Discovery API declares
1 security scheme
for authenticating requests.
An API key is passed in the query as api_key (apiKeyQuery).
By default, every request must be authenticated.
apiKeyQuery— Free API key obtained at https://www.eia.gov/opendata/register.php. Must be supplied on every request as the apikey URL parameter.
Paths & Operations 7
Across 7 paths, the API surfaces 7 operations — 7 GET. Each is listed below with its method, path, parameters, and response codes.
Browse the API tree to discover available routes, facets, and metadata.
Schemas 1
The contract defines 1 schema that model the data the API accepts and returns. The most detailed is RouteMetadata (3 properties). Each schema is shown below with its type and property counts.
Specification
The full machine-readable OpenAPI contract behind this narrative.
Source
More from Energy Information Administration 9
Other APIs Energy Information Administration publishes across the network.