Describe EIA Route
eia_describe_routeReturns metadata for a leaf route: available facets with their valid values, data column names and units, frequency options, and date range. Call this before eia_query_route to discover valid facet IDs, facet values, column IDs, and frequency codes. Each facet returns a capped window of its values with value_count and values_truncated alongside; pass facet and values_offset to page through the rest of one facet. A values_offset past the last value of a facet returns an empty window for it and a notice naming the count to page against. Facet values are fetched from separate EIA endpoints and merged — results are cached per-route for the process lifetime to minimize API calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| facet | No | Restrict the response to one facet by ID (e.g. "stateid"). Use with values_offset to page a facet whose values were truncated. Omit to get every facet. | |
| route | Yes | Leaf route path (e.g. "electricity/retail-sales", "steo"). Discoverable via eia_browse_routes or eia_search_routes. Leading, trailing, and doubled slashes are stripped, so an EIA-doc spelling like "/electricity/retail-sales/" resolves to the same route. | |
| values_offset | No | Index of the first facet value to return, applied to every facet in the response. Use the value named in a truncation hint to continue past the cap. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. Absent on success. | |
| route | No | The route path described. | |
| facets | No | Filterable dimensions. Each facet has an ID and a window of its valid values. Restricted to one entry when the facet input is set. | |
| notice | No | Guidance when values_offset lands past the last value of one or more facets — names each emptied facet, its value_count, and its last valid offset. Absent when every facet returned values. | |
| date_range | No | Available date range for this route. | |
| description | No | Human-readable description of the dataset. | |
| frequencies | No | Valid frequency options for eia_query_route. | |
| data_columns | No | Data columns available for this route. | |
| values_offset | No | Index of the first facet value returned, echoing the requested offset. | |
| default_frequency | No | Default frequency ID used when none is specified. | |
| default_date_format | No | Period format for the default frequency (e.g. "YYYY-MM"). |