progrunners.comenergy & technology
progrunners / Spanish market data

Spanish market data lives behind indicator numbers

Spain publishes generously, but through an API whose entire structure is a catalogue of numbered indicators. Once you know which number you want, everything is easy. Finding the number is the work.

Written for developers integrating Iberian market data. Verified September 2026.
On this page
  1. Who is who in the Spanish market
  2. Two doors from the same operator
  3. Getting an ESIOS token
  4. The Iberian peculiarities
  5. Practical notes

Who is who in the Spanish market

Red Eléctrica (REE) is the transmission system operator and runs ESIOS, the data system. OMIE is the market operator for the Iberian day-ahead and intraday markets, covering Spain and Portugal together as MIBEL.

Almost everything operational comes from Red Eléctrica; prices and matched volumes come from OMIE.

The same guide in Spanish, with operator names and report titles as they appear in the original documentation: API de ESIOS y datos del mercado eléctrico español.

Two doors from the same operator

SourceAccessBest for
ESIOS
api.esios.ree.es
Personal token, requested by e-mailThe full catalogue — thousands of indicators covering prices, balancing, capacity, demand, restrictions.
apidatos
apidatos.ree.es
Open, no tokenClean aggregated series — demand, generation mix, emissions, exchanges. What you want for dashboards.
OMIE
omie.es
Open file downloadsDay-ahead and intraday market results for Spain and Portugal, including aggregate supply and demand curves.

Start with apidatos. Move to ESIOS when you hit something it does not carry — which happens as soon as you need balancing or settlement detail.

Getting an ESIOS token

Access is free but manual: you e-mail consultasios@ree.es asking for a personal token, and it arrives by reply. There is no self-service signup. The token goes in a header, not a query parameter.

GET https://api.esios.ree.es/indicators/600
    ?start_date=2026-09-15T00:00&end_date=2026-09-16T00:00
Accept: application/json; application/vnd.esios-api-v1+json
x-api-key: {TOKEN}
The whole API is indicator ids. There is no semantic path like /prices/day-ahead — you request /indicators/{id}. Fetch /indicators once, store the catalogue locally and search it by name. Without that, you will be guessing numbers from forum posts.

The Iberian peculiarities

MIBEL is two countries

Spain and Portugal form a coupled market, MIBEL, operated by OMIE. Prices are usually identical across the border and diverge only when the interconnection is constrained. If you model Spain alone and ignore Portugal, most of the time you are right — and the times you are wrong are exactly the interesting ones.

Technical restrictions

After the day-ahead market clears, REE runs a restrictions process that redispatches units for grid reasons, and the result changes who actually generates. Market-clearing schedules and final programmes differ, and both are published. Use the final programme (P48) when you want what happened; use the market result when you want what cleared.

Solar dominates the shape

The Spanish duck curve is the deepest in Europe. Midday prices reach zero or negative regularly, and the evening ramp is steep. Any model trained on northern European shapes will be wrong here in both directions.

Practical notes

Frequently asked questions

How do I get an ESIOS API token?
By e-mailing consultasios@ree.es and asking for one. It is free, but there is no self-service registration — a person sends it to you.
What is the difference between ESIOS and apidatos?
ESIOS is the full indicator catalogue and needs a token. apidatos is open and carries clean aggregated series — demand, mix, emissions, exchanges. Use apidatos unless you need detail it lacks.
Where do I find the indicator id I need?
Request the /indicators endpoint once and store the catalogue locally, then search it by name. The API has no semantic paths — everything is a numbered indicator.
Are Spanish and Portuguese prices the same?
Usually. They form the coupled MIBEL market and prices separate only when the interconnection binds.
Do the Canary Islands appear in Spanish market data?
They are separate systems with their own prices and no link to the peninsula. Filter to peninsular Spain unless you specifically want them.

Explore the rest of the site

Iberian data without the guesswork

Indicator catalogues, token handling, island filtering, MIBEL coupling — we have built Spanish market integrations and know where the traps are. If you need this data flowing reliably, talk to us.

Get in touch