{"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},"version":"1.0","contract_hash":"38b6af7425123f19d525f7b1e826c60106157c90bc60a61e3f7cbc48684aa759","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},"changelog":[{"version":"1.0","change_kind":"initial","note":"Imported from the ready-made source catalog.","created_at":"2026-12-06T04:45:48.400Z","activated_at":"2026-12-06T04:45:48.400Z","active":true,"contract_hash":"38b6af7425123f19d525f7b1e826c60106157c90bc60a61e3f7cbc48684aa759","fields_count":6}]}