{"api":{"id":"api_53422645227187c2a40067db","slug":"spain-electricity-market","name":"Spain Electricity Prices & Demand API","description":"Spanish electricity market series from Red Electrica: PVPC and spot prices, national demand and the generation mix by technology, as one typed row per series and time step.","kind":"ready_made","visibility":"public","domain":"apidatos.ree.es","source_url":"https://apidatos.ree.es/en/datos/mercados/precios-mercados-tiempo-real","category":"public_data","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":6,"created_at":"2026-12-06T04:45:48.400Z","updated_at":"2026-12-06T04:45:48.400Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"series","type":"string","description":"Series name, such as PVPC, Spot market price, Demand, Wind or Nuclear.","required":true,"coverage":1,"example":"PVPC"},{"name":"datetime","type":"datetime","description":"Start of the time step (UTC).","required":true,"coverage":1,"example":"2026-12-03T23:00:00.000Z"},{"name":"value","type":"number","description":"Value in the unit given in unit.","required":false,"coverage":1,"example":237.5},{"name":"percentage","type":"number","description":"Share of the total for that step, 0 to 1 (for the generation mix: share of all generation).","required":false,"coverage":1,"example":0.46798029556650245},{"name":"unit","type":"string","description":"EUR/MWh for prices, MWh for demand and generation.","required":false,"coverage":1,"example":"EUR/MWh"},{"name":"geo","type":"string","description":"Area: peninsular (prices) or national (demand and generation).","required":false,"coverage":1,"example":"peninsular"}],"inputs":[{"name":"data_type","type":"string","description":"Which series to read: prices, demand or generation_mix.","default":"prices","example":"prices","enum":["prices","demand","generation_mix"]},{"name":"start","type":"string","description":"From this time, YYYY-MM-DD or YYYY-MM-DDTHH:MM (Spanish time). Default: 7 days ago.","example":"2026-12-04T00:00"},{"name":"end","type":"string","description":"Until this time, same format. Default: now.","example":"2026-12-04T23:59"},{"name":"time_trunc","type":"string","description":"Step: hour (prices only), day or month.","default":"day","example":"hour","enum":["hour","day","month"]}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"datetime":{"description":"Start of the time step (UTC).","format":"date-time","type":"string"},"geo":{"description":"Area: peninsular (prices) or national (demand and generation).","type":"string"},"percentage":{"description":"Share of the total for that step, 0 to 1 (for the generation mix: share of all generation).","type":"number"},"series":{"description":"Series name, such as PVPC, Spot market price, Demand, Wind or Nuclear.","type":"string"},"unit":{"description":"EUR/MWh for prices, MWh for demand and generation.","type":"string"},"value":{"description":"Value in the unit given in unit.","type":"number"}},"required":["series","datetime"],"title":"Spain Electricity Prices & Demand API","type":"object"},"samples":[{"series":"PVPC","datetime":"2026-12-03T23:00:00.000Z","value":237.5,"percentage":0.46798029556650245,"unit":"EUR/MWh","geo":"peninsular"},{"series":"PVPC","datetime":"2026-12-04T00:00:00.000Z","value":215.23,"percentage":0.46664354009929965,"unit":"EUR/MWh","geo":"peninsular"},{"series":"PVPC","datetime":"2026-12-04T01:00:00.000Z","value":194.43,"percentage":0.45928708100063775,"unit":"EUR/MWh","geo":"peninsular"}],"validation":{"checked_at":"2026-12-06T04:45:48.335Z","field_coverage":{"datetime":1,"geo":1,"percentage":1,"series":1,"unit":1,"value":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_53422645227187c2a40067db/run","openapi":"https://pullrow.dev/v1/apis/api_53422645227187c2a40067db/openapi.json","contract":"https://pullrow.dev/v1/apis/api_53422645227187c2a40067db/contract.json","page":"https://pullrow.dev/catalog/spain-electricity-market"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":0.5,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["Prices (PVPC and spot, EUR/MWh) can be read by hour, day or month; demand and the generation mix (MWh) by day or month only, because the source refuses hourly steps for them.","Prices cover the Spanish mainland (peninsular) market; demand and generation are national totals.","The source publishes next-day prices in the afternoon and revises recent demand and generation figures; the latest days can change.","Source reuse is free with credit to Red Electrica (REData); no request limit is published, so requests are spaced out. A single request returns a whole period, so large periods give many rows."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"series","label":"Series","description":"Series name, such as PVPC, Spot market price, Demand, Wind or Nuclear.","group":"Basics","shown":true,"written":false},{"name":"datetime","label":"Datetime","description":"Start of the time step (UTC).","group":"Dates","shown":true,"written":false},{"name":"value","label":"Value","description":"Value in the unit given in unit.","group":"Basics","shown":true,"written":false},{"name":"percentage","label":"Percentage","description":"Share of the total for that step, 0 to 1 (for the generation mix: share of all generation).","group":"Basics","shown":true,"written":false},{"name":"unit","label":"Unit","description":"EUR/MWh for prices, MWh for demand and generation.","group":"Basics","shown":true,"written":false},{"name":"geo","label":"Place","description":"Area: peninsular (prices) or national (demand and generation).","group":"Basics","shown":true,"written":false}],"inputs":[{"name":"data_type","label":"Data type","help":"Which series to read: prices, demand or generation_mix.","example":"prices","written":false},{"name":"start","label":"Start","help":"From this time, YYYY-MM-DD or YYYY-MM-DDTHH:MM (Spanish time). Default: 7 days ago.","example":"2026-12-04T00:00","written":false},{"name":"end","label":"End","help":"Until this time, same format. Default: now.","example":"2026-12-04T23:59","written":false},{"name":"time_trunc","label":"Time trunc","help":"Step: hour (prices only), day or month.","example":"hour","written":false}]}},"incidents":[]}