Electricity Latest API: Spain Prices as JSON
An electricity latest API returns the newest print for active power-market symbols. On Energy-API the product path is GET https://energy-api.com/api/v1/electricity/latest with query api_key and optional country=ES. Same envelope as GET /api/v1/latest. Official latest mix dated 2026-06-11 prints OMIE_ES_DA = 82.30 EUR/MWh.
Starter is $19.99/mo (5,000 calls, 5 symbols, trial 7 days / 50 calls). Do not send base=USD if you need EUR rows. There is no MCP. This is the day-ahead wholesale symbol, not hourly PVPC (/electricity/pvpc?date=2026-06-18). Docs: energy-api.com/docs.
Request: Spain filter
curl "https://energy-api.com/api/v1/electricity/latest?country=ES&api_key=YOUR_API_KEY"
Response: official latest mix (11 Jun 2026)
{
"success": true,
"date": "2026-06-11",
"base": "MIXED",
"rates": {
"BRENT_CRUDE": 74.82,
"TTF_GAS": 38.15,
"EUA_CO2": 67.40,
"OMIE_ES_DA": 82.30
}
}
The published fixture is the generic latest mix. A country=ES call keeps electricity symbols for Spain (including OMIE_ES_DA) and drops oil/gas/carbon unless you use /latest without a category filter. Copy the live rates object from your key.
Nearby paths
GET /api/v1/electricity/hourly?symbol=OMIE_ES_DA&date=2026-06-18— intraday curve.GET /api/v1/electricity/pvpc?date=2026-06-18— retail PVPC hours.GET /api/v1/latest?symbols=OMIE_ES_DA— one symbol, no country filter.
Go live
1. Register — 7-day trial.
2. Copy api_key.
3. GET /electricity/latest?country=ES.
4. Read rates.OMIE_ES_DA.
Ready to get started?
Get your API key and start querying energy commodity prices in minutes.
Get API KeyRelated posts
Discover how Energy API enables real-time monitoring and orchestration of DERs to relieve distribution grid co...
Read more →
Discover how the Energy API streamlines the reconciliation of green hydrogen guarantees, enhancing ESG reporti...
Read more →
Discover how to leverage Energy API for backtesting renewable hedging strategies. Simulate volatility and opti...
Read more →
Discover how to detect and investigate smart-meter tampering at scale using Energy API and graph analytics to...
Read more →
Discover how to enhance your intraday market-making with a Finance API. Learn effective risk limits, inventory...
Read more →
Discover how to streamline petabyte-scale meter data with Energy API and Apache Iceberg. Learn effective strea...
Read more →