cURL
curl --request GET \ --url https://api.example.com/api/economic/v1/get-energy-prices
{ "prices": [ { "commodity": "<string>", "name": "<string>", "price": 123, "unit": "<string>", "change": 123, "priceAt": 123 } ] }
GetEnergyPrices retrieves current energy commodity prices from EIA.
Optional commodity filter. Empty returns all tracked commodities.
Successful response
GetEnergyPricesResponse contains energy price data.
Show child attributes
Was this page helpful?