cURL
curl --request GET \ --url https://api.example.com/api/economic/v1/get-energy-capacity
{ "series": [ { "energySource": "<string>", "name": "<string>", "data": [ { "year": 123, "capacityMw": 123 } ] } ] }
GetEnergyCapacity retrieves installed capacity data (solar, wind, coal) from EIA.
Energy source codes to query (e.g., "SUN", "WND", "COL"). Empty returns all tracked sources (SUN, WND, COL).
Number of years of historical data. Default 20 if not set.
Successful response
Show child attributes
Was this page helpful?