{"schema_version":"1.0","country":"es","country_name":"Spain","topic":"electricity-consumption-local","question":"Where can I get electricity consumption by municipality or postal code in Spain, by sector and year?","territory":"es","territory_level":"country","parent_url":null,"published_on":"2026-11-19","research_reviewed_on":"2026-11-16","access_checked_on":null,"answer":{"official_data":"partial","non_official_data":"none_found","summary":"Spain publishes no national file of electricity use by municipality or postal code. Best: Catalonia (ICAEN, 947 municipalities, 6 sectors, kWh, 2013-2024, API) and Canarias (ISTAC, monthly, 3 sectors, MWh). Postal codes: Barcelona city by sector, and E-REDES/Viesgo/Begasa areas as totals. Other regions give totals, residential only, or per-capita figures. National bodies (CNMC, REE, MITECO) stop at region or province.","main_caveats":["Units differ: Catalonia kWh, Canarias and Andalusia MWh, Basque kWh per inhabitant; Barcelona is labelled MWh but behaves as kWh.","Sector categories are not comparable across sources (6 in Catalonia, 3 in Canarias and Barcelona, industrial vs non-industrial in the Basque Country).","Andalusian figures cover only the Endesa network; municipalities served by others show 0 MWh.","Catalonia leaves cells empty under statistical secrecy (10,099 of 54,611 rows); sums by municipality can be incomplete.","No municipal data found for Galicia, Aragon, Valencia, Asturias, Cantabria, Castilla-La Mancha, Extremadura, Baleares; Murcia only a 2014 PDF."],"confidence":"medium","confidence_reason":"National negatives opened at CNMC, MITECO, REE and INE; sources tested by download or API. Several regions only checked through searches plus partial pages; i-DE site returned 503.","attributes":[{"attribute":"electricity_consumption","covered":"partial","source_ids":["s001","s002","s004","s005","s006","s007","s008","s003"],"note":"Coverage combines distinct components of the question; see the original detailed evidence and its geographic and technical limits.","gap":"not_checked","gap_note":"The original rows have different scopes. Their combination has not been established as complete; original rows are retained in internal curation."},{"attribute":"local_area","covered":"partial","source_ids":["s001","s002","s004","s005","s006","s007","s008","s003"],"note":"Coverage combines distinct components of the question; see the original detailed evidence and its geographic and technical limits.","gap":"not_checked","gap_note":"The original rows have different scopes. Their combination has not been established as complete; original rows are retained in internal curation."},{"attribute":"sector","covered":"partial","source_ids":["s001","s002","s003","s004","s005","s008"],"note":"Sectors exist for Catalonia (6), Canarias (3), Barcelona (3), Basque (industrial/non-industrial, per capita), Andalusia (residential only), signatory cities (one year).","gap":"not_published","gap_note":"Regional offices opened for Madrid, Navarra, Aragon, Galicia, Extremadura, Cantabria, Murcia: totals only or provincial; no municipal sector split."},{"attribute":"reference_year","covered":"yes","source_ids":["s001","s002","s004","s007","s003"],"note":"Annual or finer series wherever data exists: Catalonia 2013-2024, Canarias 2018-2025, Basque 2002-2024, Madrid 1985-2023, Barcelona 2019-2025 (daily).","gap":null,"gap_note":null},{"attribute":"latest_data","covered":"no","source_ids":[],"note":"This specific requirement was not separately established in the inherited research.","gap":"not_checked","gap_note":"Review the original answer and source evidence; no new research was performed during this adaptation."},{"attribute":"historical_series","covered":"yes","source_ids":["s001","s002","s004","s007","s003"],"note":"Annual or finer series wherever data exists: Catalonia 2013-2024, Canarias 2018-2025, Basque 2002-2024, Madrid 1985-2023, Barcelona 2019-2025 (daily).","gap":null,"gap_note":null},{"attribute":"update_frequency","covered":"no","source_ids":[],"note":"This specific requirement was not separately established in the inherited research.","gap":"not_checked","gap_note":"Review the original answer and source evidence; no new research was performed during this adaptation."}]},"sources":[{"source_id":"s001","name":"Consum d'energia elèctrica per municipis i sectors de Catalunya (Consumo municipal de energía eléctrica por municipios y sectores de Cataluña)","publisher":"Institut Català d'Energia (ICAEN), Generalitat de Catalunya; statistic described by Idescat","official":true,"landing_url":"https://idescat.cat/paae/2023/030207/es","data_url":"https://analisi.transparenciacatalunya.cat/resource/8idm-becu.json","access":"api","format":"Socrata SODA API (JSON, CSV)","license":"Generalitat de Catalunya open-data licence (metadata says 'See Terms of Use')","language":"Catalan","has_coordinates":false,"location_precision":"municipality","publisher_type":"regional_government","adds":"Best match to the question where it exists: every municipality of one region, by six sectors, by year, as an open API. Only Catalonia.","first_seen_pass":1,"rank":1,"summary":"Consum d'energia elèctrica per municipis i sectors de Catalunya (Consumo municipal de energía eléctrica por municipios y sectores de Cataluña)","coverage_note":"Catalonia: 947 municipalities in 2024 (4 provinces), also comarca and province fields","data_date":"Calendar years 2013 to 2024 (counted with a SoQL group-by on 'any'); metadata last updated 2025-12-17","caveats":["Consult the main caveats and the complete reading traps and access evidence in the detail."],"coverage":{"geographic":"Catalonia: 947 municipalities in 2024 (4 provinces), also comarca and province fields"},"fine_print":{"unit":{"value":"kWh","quote":"consum_kwh number Consum d’energia elèctrica en kWh","url":"https://analisi.transparenciacatalunya.cat/api/views/8idm-becu.json","attempts":[]},"inclusion_rule":{"value":"Six sector codes (1 PRIMARI, 3 INDUSTRIAL, 4 CONSTRUCCIO I OBRES PUBLIQUES, 5 TRANSPORT, 6 SERVEIS, 7 USOS DOMESTICS); a cell under statistical secrecy or merged with another sector carries no consum_kwh","quote":"observacions text Indica si la dada en concret està subjecta a secret estadístic, o si s’ha realitzat l’agregació de sectors","url":"https://analisi.transparenciacatalunya.cat/api/views/8idm-becu.json","attempts":[]},"reference_date":{"value":"Calendar years 2013 to 2024 (counted with a SoQL group-by on 'any'); metadata last updated 2025-12-17","quote":"any number Any del període de consum","url":"https://analisi.transparenciacatalunya.cat/api/views/8idm-becu.json","attempts":[]},"update_frequency":{"value":"Annual","quote":"Freqüència d'actualització: Anual","url":"https://analisi.transparenciacatalunya.cat/api/views/8idm-becu.json","attempts":[]},"exclusions":{"value":"Rows flagged statistical secrecy have no value (10,099 of 54,611 rows; 916 of 4,700 in 2024); 'Inclou el consum del sector energètic' marks cells that add the energy sector's own use; an older Idescat edition warns of gaps where small distributors operate","quote":"pero con carencias en algunos municipios donde tienen actividad pequeñas distribuidoras","url":"https://idescat.cat/paae/2013/142007/es","attempts":[]}},"key_fields":[{"field":"any","meaning":"year of consumption"},{"field":"cdmun","meaning":"municipal code, INE 5 digits (metadata); text, e.g. '08019'"},{"field":"municipi / comarca / provincia","meaning":"names in capitals, Catalan"},{"field":"codi_sector / descripcio_sector","meaning":"sector code and name (1,3,4,5,6,7)"},{"field":"consum_kwh","meaning":"consumption in kWh; absent when secret"},{"field":"observacions","meaning":"secrecy or aggregation flag"}],"how_to_use":{"example_request":"curl -sL 'https://analisi.transparenciacatalunya.cat/resource/8idm-becu.json?$where=cdmun=%2708019%27%20and%20any=2024'","example_result":"[{\"any\":\"2024\",\"cdmun\":\"08019\",\"municipi\":\"BARCELONA\",\"codi_sector\":\"7\",\"descripcio_sector\":\"USOS DOMESTICS\",\"consum_kwh\":\"1914308836\"},{\"any\":\"2024\",\"cdmun\":\"08019\",\"municipi\":\"BARCELONA\",\"codi_sector\":\"6\",\"descripcio_sector\":\"SERVEIS\",\"consum_kwh\":\"3558751784\"}] (6 rows returned; trimmed to 2)","steps":["Count: GET /resource/8idm-becu.json?$select=count(*) returned 54611.","Filter by year and municipality with $where (any, cdmun); page with $limit and $offset.","Years available: $select=any,count(*)&$group=any&$order=any gives 2013..2024 (4,472 to 4,700 rows per year).","Sum or pivot by codi_sector; treat rows without consum_kwh as missing, not zero."],"reading_traps":["Values are strings in the JSON; consum_kwh is kWh, not MWh.","10,099 of 54,611 rows have no consum_kwh (statistical secrecy); summing sectors under-counts those municipalities.","Sector 2 does not exist in the file (codes 1,3,4,5,6,7); 988 rows say the industrial or other cell includes the energy sector's own consumption.","Only Catalonia: for other regions use the other sources of this record."]},"test":{"tested_on":"2026-11-16","method":"api_query","http_status":200,"content_type":"application/json","size_bytes":null,"records_total":54611,"records_for_country":54611,"problems":[]},"evidence":[{"claim":"Dataset holds electricity consumption by municipality and sector for all of Catalonia","url":"https://analisi.transparenciacatalunya.cat/api/views/8idm-becu.json","quote":"Consum d’energia elèctrica per municipis i sectors d’activitat econòmica de tota Catalunya."},{"claim":"Idescat points to this dataset as the published result of the municipal statistic","url":"https://idescat.cat/paae/2023/030207/es","quote":"Cuantificar el consumo de gas natural y de energía eléctrica"}],"members":[],"members_summary":null},{"source_id":"s002","name":"Consumo final de energía eléctrica y número de clientes según grandes sectores. Municipios de Canarias por periodos (ISTAC C00022A_000006)","publisher":"Instituto Canario de Estadística (ISTAC), Gobierno de Canarias","official":true,"landing_url":"https://datos.gob.es/catalogo/a05003423-consumo-final-de-energia-electrica-y-numero-de-clientes-segun-grandes-sectores-municipios-de-canarias-por-periodos","data_url":"https://datos.canarias.es/api/estadisticas/statistical-resources/v1.0/datasets/ISTAC/C00022A_000006/1.12.csv","access":"api","format":"SDMX statistical resource API: CSV, TSV, JSON, JSON-stat, XML, XLSX","license":"Aviso Legal (ISTAC)","language":"Spanish","has_coordinates":false,"location_precision":"municipality","publisher_type":"regional_government","adds":"Second region with municipal data by sector (industry, services, residential), monthly and annual, with customer counts (CUPS); SDMX API with CSV/JSON/XLSX.","first_seen_pass":1,"rank":2,"summary":"Consumo final de energía eléctrica y número de clientes según grandes sectores. Municipios de Canarias por periodos (ISTAC C00022A_000006)","coverage_note":"Canary Islands: 88 municipalities, 7 islands and the region (96 territory codes)","data_date":"Monthly from 2018-M01 to 2025-M06 plus annual totals 2018 onward (version 1.12 valid from 2025-09-04)","caveats":["Consult the main caveats and the complete reading traps and access evidence in the detail."],"coverage":{"geographic":"Canary Islands: 88 municipalities, 7 islands and the region (96 territory codes)"},"fine_print":{"unit":{"value":"MWh for 'Energía eléctrica' (measure ENERGIA_ELECTRICA); CUPS = number of customers","quote":"unitCode MWH 'Megavatio hora' (measure ENERGIA_ELECTRICA)","url":"https://datos.canarias.es/api/estadisticas/statistical-resources/v1.0/datasets/ISTAC/C00022A_000006/1.12.json?fields=-data","attempts":[]},"inclusion_rule":{"value":"Sectors INDUSTRIA, SERVICIOS, RESIDENCIAL and a total; municipalities and islands","quote":"según los grandes sectores económicos (industria, servicios y residencial) para en cada uno de los municipios e islas de Canarias","url":"https://datos.canarias.es/api/estadisticas/statistical-resources/v1.0/datasets/ISTAC/C00022A_000006/1.12.json?fields=-data","attempts":[]},"reference_date":{"value":"Monthly from 2018-M01 to 2025-M06 plus annual totals 2018 onward (version 1.12 valid from 2025-09-04)","quote":null,"url":null,"attempts":["Min and max TIME_PERIOD_CODE read in the downloaded CSV: 2018 (and 2018-M01) to 2025-M06","Metadata validFrom 2025-09-04T09:35:59.153+01:00"]},"update_frequency":{"value":"Half-yearly","quote":"updateFrequency: S 'Semestral'","url":"https://datos.canarias.es/api/estadisticas/statistical-resources/v1.0/datasets/ISTAC/C00022A_000006/1.12.json?fields=-data","attempts":[]},"exclusions":{"value":null,"quote":null,"url":null,"attempts":["27,220 of 372,480 CSV rows carry 'Valor no disponible; el dato no existe' (mostly months before a municipality's series starts, not checked in detail)","ISTAC metadata opened lists no coverage exclusions; the 'FUENTE' attribute names no supplier"]}},"key_fields":[{"field":"MEDIDAS_CODE","meaning":"ENERGIA_ELECTRICA, CUPS and their variations (VA, VP, TVA, TVP)"},{"field":"TERRITORIO_CODE","meaning":"5-digit INE municipality code (35xxx/38xxx), island code ES70x, or ES70 for Canarias"},{"field":"TIME_PERIOD_CODE","meaning":"'2024' for a year or '2024-M05' for a month"},{"field":"FLUJO_ENERGIA_CODE","meaning":"_T total, INDUSTRIA, SERVICIOS, RESIDENCIAL"},{"field":"OBS_VALUE","meaning":"value; empty when ESTADO_OBSERVACION says not available"}],"how_to_use":{"example_request":"curl -sL 'https://datos.canarias.es/api/estadisticas/statistical-resources/v1.0/datasets/ISTAC/C00022A_000006/1.12.json?dim=MEDIDAS:ENERGIA_ELECTRICA,TERRITORIO:35004,TIME_PERIOD:2024,FLUJO_ENERGIA:_T&fields=%2Bdata'","example_result":"data.observations: \"272748.05\" (Arrecife, 2024, total, MWh). From the full CSV: Las Palmas de Gran Canaria 2023 = Total 1118776.63, Servicios 591477.63, Residencial 469053.12, Industria 58245.88; CUPS Total 211155","steps":["Download the full CSV (46 MB, 372,480 rows): .../1.12.csv, or query the JSON endpoint with dim=... filters.","Keep MEDIDAS_CODE == ENERGIA_ELECTRICA; the other nine measures are customer counts and variations.","Pick TIME_PERIOD_CODE with 4 digits for annual rows or with -M for monthly rows; do not add both.","Municipality rows have 5-digit codes; island (ES70x) and region (ES70) rows repeat the same energy, so exclude them when summing."],"reading_traps":["Each (territory, period, sector) appears once per measure: 10 measures x 4 sectors per period; filtering only on sector duplicates values.","Island and region rows sit in the same column as municipalities and double-count if summed.","Annual and monthly periods are in the same TIME_PERIOD column.","The unit is MWh (taken from the dataset's measure metadata), but the CSV itself has no unit column."]},"test":{"tested_on":"2026-11-16","method":"download","http_status":200,"content_type":"text/csv","size_bytes":46382370,"records_total":372480,"records_for_country":372480,"problems":[]},"evidence":[{"claim":"Dataset content","url":"https://datos.canarias.es/api/estadisticas/statistical-resources/v1.0/datasets/ISTAC/C00022A_000006/1.12.json?fields=-data","quote":"Este conjunto de datos proporciona información de carácter mensual y anual sobre el consumo final de energía eléctrica y el número de clientes (CUPS)"}],"members":[],"members_summary":null},{"source_id":"s003","name":"Consum d'electricitat (MWh) per codi postal, sector econòmic i tram horari a la ciutat de Barcelona","publisher":"Ajuntament de Barcelona (Open Data BCN), using data from the Datadis platform","official":true,"landing_url":"https://opendata-ajuntament.barcelona.cat/data/dataset/consum-electricitat-bcn","data_url":"https://opendata-ajuntament.barcelona.cat/resources/bcn/EstadisticaDatadis/2025_consum_electricitat_BCN.csv","access":"direct_download","format":"CSV, one file per year 2019-2025","license":"Creative Commons Attribution 4.0","language":"Catalan","has_coordinates":false,"location_precision":"none","publisher_type":"regional_government","adds":"Only found open series by postal code and sector (one city, daily, by time band); first source with postal codes.","first_seen_pass":1,"rank":3,"summary":"Consum d'electricitat (MWh) per codi postal, sector econòmic i tram horari a la ciutat de Barcelona","coverage_note":"City of Barcelona only: 42 postal codes (08001 to 08042)","data_date":"2025 file covers 2025-01-01 to 2025-11-30 (checked 2026-11-16); older files are full years 2019-2024","caveats":["Consult the main caveats and the complete reading traps and access evidence in the detail."],"coverage":{"geographic":"City of Barcelona only: 42 postal codes (08001 to 08042)"},"fine_print":{"unit":{"value":"Labelled MWh, but the magnitudes are kWh (see trap)","quote":"Consum elèctric en megawatt  hores","url":"https://opendata-ajuntament.barcelona.cat/data/api/3/action/package_show?id=consum-electricitat-bcn","attempts":[]},"inclusion_rule":{"value":"Sectors Residencial, Serveis, Indústria and 'No especificat'; five time bands including 'No consta'","quote":null,"url":null,"attempts":["Read from the 2025 CSV (209,105 rows): 4 sector values, 5 Tram_Horari values","Dataset page lists no inclusion rule beyond the field descriptions"]},"reference_date":{"value":"2025 file covers 2025-01-01 to 2025-11-30 (checked 2026-11-16); older files are full years 2019-2024","quote":"Data en format YYYY - MM – DD","url":"https://opendata-ajuntament.barcelona.cat/data/api/3/action/package_show?id=consum-electricitat-bcn","attempts":[]},"update_frequency":{"value":null,"quote":null,"url":null,"attempts":["CKAN package_show record has no update-frequency field","File Last-Modified header 2026-10-23 while the newest data day is 2025-11-30"]},"exclusions":{"value":null,"quote":null,"url":null,"attempts":["CKAN description and field extras opened: no exclusions stated","'No especificat' sector holds 1,280 rows (0.6%)"]}},"key_fields":[{"field":"Any / Data","meaning":"year and day (YYYY-MM-DD)"},{"field":"Codi_Postal","meaning":"postal code 08001..08042 (text, keep leading zero)"},{"field":"Sector_Economic","meaning":"Residencial, Serveis, Indústria, No especificat"},{"field":"Tram_Horari","meaning":"6-hour band, e.g. 'De 00:00:00 a 05:59:59 h', or 'No consta'"},{"field":"Valor","meaning":"consumption"}],"how_to_use":{"example_request":"curl -sL -o bcn2025.csv 'https://opendata-ajuntament.barcelona.cat/resources/bcn/EstadisticaDatadis/2025_consum_electricitat_BCN.csv'  (resolved from the CKAN resource /download link, which answers 302)","example_result":"2025,2025-01-01,08001,Indústria,De 00:00:00 a 05:59:59 h,287 ; sums over the file: Serveis 3,079,229,799; Residencial 1,905,395,948; Indústria 468,026,112; No especificat 15,955,805","steps":["List files with the CKAN API: /data/api/3/action/package_show?id=consum-electricitat-bcn (7 CSV resources, one per year).","Read each CSV as UTF-8 with BOM; group by Codi_Postal, Sector_Economic and Any.","Sum Valor over days and time bands for an annual total per postal code and sector."],"reading_traps":["Title and field description say MWh, but the 2025 total is 5.47 billion units: Barcelona cannot use 5.47 million GWh, so the values behave as kWh. This is an inference from magnitude; the publisher does not correct it on the pages opened.","Barcelona only; postal codes 08001..08042 are the city's own.","Time band 'No consta' exists for each day and postal code (41,821 rows each band): do not drop it when totalling.","The 2025 file stops at 2025-11-30 although it was modified in October 2026."]},"test":{"tested_on":"2026-11-16","method":"download","http_status":200,"content_type":"text/csv","size_bytes":12376371,"records_total":209105,"records_for_country":209105,"problems":[]},"evidence":[{"claim":"Dataset is by postal code, sector and time band and comes from Datadis","url":"https://opendata-ajuntament.barcelona.cat/data/dataset/consum-electricitat-bcn","quote":"Daily electric cosumption by postal code, economic sector and time interval in the city of Barcelona, according to the data provided by the"}],"members":[],"members_summary":null},{"source_id":"s004","name":"Udalmap: Indicadores municipales de sostenibilidad - consumo eléctrico anual (total, industrial y no industrial; kWh/habitante)","publisher":"Gobierno Vasco (Udalmap, opendata.euskadi.eus)","official":true,"landing_url":"https://www.euskadi.eus/udalmap/","data_url":"https://opendata.euskadi.eus/contenidos/estadistica/udalmap_indicador_159/es_def/adjuntos/indicator.csv","access":"direct_download","format":"CSV (indicators 159 total, 161 industrial, 160 non-industrial), XLSX, PDF; also SPARQL and API","license":"unknown","language":"Spanish","has_coordinates":false,"location_precision":"municipality","publisher_type":"regional_government","adds":"Basque Country municipalities, annual 2002-2024, with an industrial / non-industrial split; as kWh per inhabitant, not totals.","first_seen_pass":1,"rank":4,"coverage":{"geographic":"Basque Country: 252 rows by municipality/comarca code in the file, plus comarcas, territories and total"},"fine_print":{"unit":{"value":"kWh per inhabitant per year (the unit is in the title)","quote":"Consumo eléctrico anual del municipio (Kwh./habitante)","url":"https://opendata.euskadi.eus/contenidos/estadistica/udalmap_indicador_159/es_def/adjuntos/indicator.csv","attempts":[]},"inclusion_rule":{"value":null,"quote":null,"url":null,"attempts":["Udalmap landing page opened: no definition of industrial vs non-industrial","datos.gob.es record of the indicator opened: generic Udalmap description only"]},"reference_date":{"value":"Columns 2024 back to 2002; years 2007 to 2002 show 0,00 for the territory totals","quote":"Entidad;;2024;2023;2022;2021;2020;2019;2018;2017;2016;2015;2014;2013;2012;2011;2010;2009;2008;2007;2006;2005;2004;2003;2002","url":"https://opendata.euskadi.eus/contenidos/estadistica/udalmap_indicador_159/es_def/adjuntos/indicator.csv","attempts":[]},"update_frequency":{"value":"Annual (datos.gob.es record: periodicity 1 year); file last modified 2026-11-15","quote":null,"url":null,"attempts":["datos.gob.es catalogue record opened via API: Frequency years 1.0"]},"exclusions":{"value":null,"quote":null,"url":null,"attempts":["No exclusion text on the Udalmap landing page or in the CSV","Data supplier not named on the pages opened"]}},"key_fields":[{"field":"Código municipio / Municipio","meaning":"5-digit code and name (comarca rows use another code range)"},{"field":"2024 ... 2002","meaning":"kWh per inhabitant, decimal comma and thousands dot"}],"how_to_use":{"example_request":"curl -sL -o udal159.csv 'https://opendata.euskadi.eus/contenidos/estadistica/udalmap_indicador_159/es_def/adjuntos/indicator.csv'","example_result":"Bilbao 2024: 2.612,21 kWh/hab (total indicator 159); Zierbena 2024: 79.047,59 (industrial-driven); header 'Código municipio;Municipio;2024;2023;...;2002'","steps":["Download the three CSVs (159, 160, 161); files are ISO-8859-1 with ';' separator and ~286 lines.","Skip the first 33 lines (territory and comarca summaries); municipality rows start under 'Detalle por municipios'.","Convert numbers: remove '.' thousands, replace ',' by '.'."],"reading_traps":["Per-inhabitant values, not totals; multiplying by a population figure would be your own estimate and the publisher does not provide it.","Zeros for 2002-2007 in territory rows and empty cells in some municipality rows mean no data, not zero use.","Heavy-industry municipalities give extreme per-capita values (Zierbena 79,047 kWh/hab).","'Industrial' is not defined on the pages opened."]},"test":{"tested_on":"2026-11-16","method":"download","http_status":200,"content_type":"text/csv","size_bytes":63946,"records_total":252,"records_for_country":252,"problems":[]},"evidence":[{"claim":"Indicator name and unit","url":"https://opendata.euskadi.eus/contenidos/estadistica/udalmap_indicador_159/es_def/adjuntos/indicator.csv","quote":"Indicadores municipales de sostenibilidad: Consumo eléctrico anual del municipio (Kwh./habitante)"}],"members":[],"members_summary":null},{"source_id":"s005","name":"Andalucía pueblo a pueblo (SIMA): Consumo de energía eléctrica (MWh) (Endesa) y consumo residencial","publisher":"Instituto de Estadística y Cartografía de Andalucía (IECA), data from Endesa Distribución Eléctrica","official":true,"landing_url":"https://www.juntadeandalucia.es/institutodeestadisticaycartografia/sima/info.htm?f=i03","data_url":"https://www.juntadeandalucia.es/institutodeestadisticaycartografia/sima/datos/smex99.xls","access":"direct_download","format":"XLS (one row per municipality, 90+ indicator columns)","license":"unknown","language":"Spanish","has_coordinates":false,"location_precision":"municipality","publisher_type":"regional_government","adds":"Municipal totals plus residential use for all 785 Andalusian municipalities in one XLS; sector split limited to residential vs total.","first_seen_pass":1,"rank":5,"coverage":{"geographic":"Andalusia, 785 municipalities, Endesa Distribución area only"},"fine_print":{"unit":{"value":"MWh","quote":"Unidad: megavatios por hora","url":"https://www.juntadeandalucia.es/institutodeestadisticaycartografia/sima/info.htm?f=i03","attempts":[]},"inclusion_rule":{"value":"Only energy distributed by Endesa Distribución Eléctrica; billed energy","quote":"La información suministrada corresponde únicamente a la energía eléctrica distribuida por la empresa Endesa Distribución Eléctrica.","url":"https://www.juntadeandalucia.es/institutodeestadisticaycartografia/sima/info.htm?f=i03","attempts":[]},"reference_date":{"value":"Year 2025 (column suffix); sheet file updated 2026-10-09","quote":"Año 2025","url":"https://www.juntadeandalucia.es/institutodeestadisticaycartografia/sima/info.htm?f=i03","attempts":[]},"update_frequency":{"value":null,"quote":null,"url":null,"attempts":["info.htm?f=i03 and f=i04 opened: no periodicity line","INDEA update register shows a related monthly series 'Endesa - Enel - Energía facturada (CNAE2025)', last period 2026-M09, updated 2026-10-30"]},"exclusions":{"value":"Municipalities or parts served by other distributors are missing from the figures: 52 of 785 rows show 0 and 67 show under 100 MWh","quote":"Los datos proceden de las facturaciones realizadas a los abonados.","url":"https://www.juntadeandalucia.es/institutodeestadisticaycartografia/sima/info.htm?f=i03","attempts":[]}},"key_fields":[{"field":"CodMun","meaning":"5-digit INE municipality code (text)"},{"field":"Consumo de energía eléctrica (MWh) (Endesa). 2025","meaning":"total billed MWh"},{"field":"Consumo de energía eléctrica residencial (MWh) (Endesa). 2025","meaning":"residential MWh"}],"how_to_use":{"example_request":"curl -sL -o smex99.xls 'https://www.juntadeandalucia.es/institutodeestadisticaycartografia/sima/datos/smex99.xls' ; xls2csv -c ';' smex99.xls ; header on row 4, data from row 5; columns 90 and 91 (0-based 89 and 90)","example_result":"Sevilla (41091): total 2659501 MWh, residential 1203799 MWh (2025); Abla: 4728 and 1873","steps":["Download the XLS (1.29 MB) and convert it (xls2csv or any XLS reader); 785 municipality rows after the 3 title rows.","Select CodMun and the two columns whose name starts with 'Consumo de energía eléctrica'.","Per-municipality fact sheets (sima/ficha.htm?mun=41091) show the same two figures."],"reading_traps":["Only one year (2025) per file; no history in this file.","Endesa area only: 52 municipalities show 0 MWh, which means 'not Endesa', not zero use.","Only 'residential' is split out; the old SIMA series with six sectors (agriculture, industry, commerce-services, residential, administration, other) described in a 2023 academic article is not in the file I opened."]},"test":{"tested_on":"2026-11-16","method":"download","http_status":200,"content_type":"application/vnd.ms-excel","size_bytes":1290240,"records_total":785,"records_for_country":785,"problems":["BADEA historical series page needs JavaScript; not readable without a browser"]},"evidence":[{"claim":"Scope limited to Endesa","url":"https://www.juntadeandalucia.es/institutodeestadisticaycartografia/sima/info.htm?f=i04","quote":"La información suministrada corresponde únicamente a la energía eléctrica distribuida por la empresa Endesa Distribución Eléctrica."}],"members":[],"members_summary":null},{"source_id":"s006","name":"Consumo mensual por código postal / municipio (distributors' open-data portal: E-REDES, Viesgo, Begasa)","publisher":"Distributors E-REDES, Viesgo Distribución and Begasa (shared Opendatasoft portal redes-spain)","official":true,"landing_url":"https://redes-spain.opendatasoft.com/pages/explore-viesgo/","data_url":"https://redes-spain.opendatasoft.com/api/explore/v2.1/catalog/datasets/2-consumo-mensual-por-codigo-postal-e-redes/records","access":"api","format":"Opendatasoft Explore API v2.1 (JSON, CSV export)","license":"CC BY 4.0","language":"Spanish","has_coordinates":false,"location_precision":"municipality","publisher_type":"operator","adds":"Only operator-published consumption by postal code and municipality in Spain, monthly; no sector split. Covers only these three distributors' areas.","first_seen_pass":1,"rank":6,"coverage":{"geographic":"Areas of the three distributors (about 361 municipalities across Asturias, Cantabria, Palencia, Burgos, Lugo, A Coruña, Huesca, Zaragoza, Valencia, Alicante, Madrid, Tarragona); not Spain-wide"},"fine_print":{"unit":{"value":"kWh active energy","quote":"energia double Energia (kWh)","url":"https://redes-spain.opendatasoft.com/api/explore/v2.1/catalog/datasets/2-consumo-mensual-por-codigo-postal-e-redes","attempts":[]},"inclusion_rule":{"value":"Total active energy by municipality / postal code; small cells merged into 'Otros'","quote":"algunos datos pueden aparecer agregados en una categoría identificada como \"OTROS\"","url":"https://redes-spain.opendatasoft.com/api/explore/v2.1/catalog/datasets/2-consumo-mensual-por-codigo-postal-e-redes","attempts":[]},"reference_date":{"value":"Months 2024-01 to 2026-08 in the three monthly datasets (period of consumption, not billing)","quote":"El año/mes está referido al periodo de consumo (no al de facturación).","url":"https://redes-spain.opendatasoft.com/api/explore/v2.1/catalog/datasets/2-consumo-mensual-por-codigo-postal-e-redes","attempts":[]},"update_frequency":{"value":null,"quote":null,"url":null,"attempts":["Dataset metadata: modified 2025-02-04, data_processed 2026-10-27; no stated periodicity","Portal landing (Viesgo page) states no frequency"]},"exclusions":{"value":"Data may be incomplete or corrected later; the distributor disclaims accuracy","quote":"La información proporcionada en este portal por la Distribuidora constituye una aproximación a los valores que constan en sus sistemas","url":"https://redes-spain.opendatasoft.com/api/explore/v2.1/catalog/datasets/2-consumo-mensual-por-codigo-postal-e-redes","attempts":[]}},"key_fields":[{"field":"data / ano / mes","meaning":"consumption month 'YYYY-MM'"},{"field":"cp","meaning":"postal code, or 'Otros'"},{"field":"codigo_municipio / muni_name / codigo_provincia / pro_name","meaning":"INE municipality code and names; 'Otros' when aggregated"},{"field":"magnitud","meaning":"AE = active energy (only value)"},{"field":"energia","meaning":"kWh"},{"field":"sociedad","meaning":"distributor code (0026, 0027, 0033 in the three files)"}],"how_to_use":{"example_request":"curl -sL 'https://redes-spain.opendatasoft.com/api/explore/v2.1/catalog/datasets/2-consumo-mensual-por-codigo-postal-e-redes/records?limit=3'","example_result":"{\"total_count\":13333,\"results\":[{\"data\":\"2024-02\",\"cp\":\"33491\",\"magnitud\":\"AE\",\"energia\":325566.0,\"sociedad\":\"0026\",\"pro_name\":\"Asturias\",\"muni_name\":\"Carreño\",\"codigo_municipio\":\"33014\"}, ...]}","steps":["Repeat per distributor: dataset ids 2-consumo-mensual-por-codigo-postal-e-redes, -viesgo and -begasa; export all rows with /exports/csv?delimiter=%3B.","Stack the three files; each row is one (month, postal code, municipality).","Sum energia by cp or codigo_municipio and year; the portal also has an hourly dataset (30-day sliding window, no history) and supply points by Residencial / No Residencial (counts, not energy)."],"reading_traps":["No sector in the energy datasets: the residential / non-residential split exists only for contract counts (puntos-de-suministro-por-tipologia-*).","Postal codes cross municipal borders: 66 of 355 codes in the E-REDES file appear under more than one municipality; 73 (month, cp, municipality) keys repeat across the three files (not investigated).","'Otros' rows (160 + 165 + 41) hide small cells: totals by municipality are lower bounds.","Metadata 'modified' (2025-02-04) is older than the data (to 2026-08); the file changes without a new version.","Other large distributors (i-DE, e-distribución, UFD) do not appear on this portal."]},"test":{"tested_on":"2026-11-16","method":"api_query","http_status":200,"content_type":"application/json","size_bytes":null,"records_total":42563,"records_for_country":42563,"problems":[]},"evidence":[{"claim":"Dataset content","url":"https://redes-spain.opendatasoft.com/api/explore/v2.1/catalog/datasets/2-consumo-mensual-por-codigo-postal-e-redes","quote":"En este dataset se representa el consumo mensual (energía activa) total por municipio/código postal."},{"claim":"Portal belongs to the distributor","url":"https://www.viesgodistribucion.com/","quote":"Viesgo pone a tu disposición datos de su actividad para fomentar la transparencia en el sector eléctrico."}],"members":[{"name":"E-REDES (portal dataset '2-consumo-mensual-por-codigo-postal-e-redes')","landing_url":"https://redes-spain.opendatasoft.com/pages/explore-viesgo/","data_url":"https://redes-spain.opendatasoft.com/api/explore/v2.1/catalog/datasets/2-consumo-mensual-por-codigo-postal-e-redes/exports/csv","access":"direct_download","tested":true,"data_found":null,"note":"13,333 rows; 88 municipalities, 356 postal codes; Asturias, Valencia, Alicante, Huesca, Madrid, Zaragoza, Lugo; 160 'Otros' rows"},{"name":"Viesgo (dataset '2-consumo-mensual-por-codigo-postal-viesgo')","landing_url":"https://redes-spain.opendatasoft.com/pages/explore-viesgo/","data_url":"https://redes-spain.opendatasoft.com/api/explore/v2.1/catalog/datasets/2-consumo-mensual-por-codigo-postal-viesgo/exports/csv","access":"direct_download","tested":true,"data_found":null,"note":"20,171 rows; 233 municipalities, 467 postal codes; Cantabria, Asturias, Palencia, Burgos, Lugo, Tarragona; 165 'Otros' rows"},{"name":"Begasa (dataset '2-consumo-mensual-por-codigo-postal-begasa')","landing_url":"https://redes-spain.opendatasoft.com/pages/explore-viesgo/","data_url":"https://redes-spain.opendatasoft.com/api/explore/v2.1/catalog/datasets/2-consumo-mensual-por-codigo-postal-begasa/exports/csv","access":"direct_download","tested":true,"data_found":null,"note":"9,059 rows; 40 municipalities, 246 postal codes; Lugo, A Coruña, Asturias; 41 'Otros' rows"}],"members_summary":{"total":null,"listed":3,"tested":3,"data_found":0,"scope_note":"Inherited members; data findings were not reclassified during this structural migration. Consult each member note.","pattern":null},"member_scope":{"total":null,"note":"Inherited members; data findings were not reclassified during this structural migration. Consult each member note.","pattern":null}},{"source_id":"s007","name":"Energía eléctrica facturada. Municipios (Comunidad de Madrid)","publisher":"Comunidad de Madrid (datos.comunidad.madrid)","official":true,"landing_url":"https://datos.gob.es/en/catalogo/a13002908-energia-electrica-facturada4","data_url":"https://datos.comunidad.madrid/dataset/b903e1ee-8576-4c57-84d2-f2c4b2f9591d/resource/16899884-fadd-4ccc-8345-f52c0fb97eff/download/energia-electrica-facturada.-municipios.csv","access":"direct_download","format":"CSV (';' separator, UTF-8 BOM), JSON","license":"CC BY 4.0","language":"Spanish","has_coordinates":false,"location_precision":"municipality","publisher_type":"regional_government","adds":"Longest municipal series (1985-2023) for the Madrid region, total and per capita; no sector split.","first_seen_pass":1,"rank":7,"coverage":{"geographic":"Comunidad de Madrid: 179 municipalities, plus statistical zones and the region total"},"fine_print":{"unit":{"value":"MWh (total) and kWh per inhabitant (per capita; the file labels it 'kw/h')","quote":"1985;Municipios;0014;Acebeda (La);Total (MWh);88;MWh;","url":"https://datos.comunidad.madrid/dataset/b903e1ee-8576-4c57-84d2-f2c4b2f9591d/resource/16899884-fadd-4ccc-8345-f52c0fb97eff/download/energia-electrica-facturada.-municipios.csv","attempts":[]},"inclusion_rule":{"value":"Electricity billed in the municipality; no sector","quote":null,"url":null,"attempts":["CSV header opened: Medida is only 'Total (MWh)' or 'Per cápita (kW/h)'","datos.gob.es record opened: tags 'Energía eléctrica facturada', no sector"]},"reference_date":{"value":"Years 1985 to 2023 (read from the CSV); file last modified 2026-11-12","quote":null,"url":null,"attempts":["CSV: min Año 1985, max Año 2023"]},"update_frequency":{"value":null,"quote":null,"url":null,"attempts":["datos.gob.es record gives only created and modified dates","CSV Last-Modified 2026-11-12 with newest data year 2023"]},"exclusions":{"value":"Special local cases listed in the record (Tres Cantos split from Colmenar Viejo 1991-1994; El Atazar supplied from a dam, value 0)","quote":null,"url":null,"attempts":["datos.gob.es record notes, read in a fetch summary, not copied literally","CSV row 1985 El Atazar: 0 MWh"]}},"key_fields":[{"field":"Año","meaning":"year"},{"field":"Tipo territorio","meaning":"Municipios, Zonas Estadísticas or Comunidad de Madrid"},{"field":"Código territorio","meaning":"4-digit local code (e.g. 0066 Alcobendas), not the 5-digit INE code"},{"field":"Medida / Valor / Unidad","meaning":"Total (MWh) or Per cápita; value and unit"}],"how_to_use":{"example_request":"curl -sL -o mad.csv 'https://datos.comunidad.madrid/dataset/b903e1ee-8576-4c57-84d2-f2c4b2f9591d/resource/16899884-fadd-4ccc-8345-f52c0fb97eff/download/energia-electrica-facturada.-municipios.csv'","example_result":"2023;Municipios;0066;Alcobendas;Total (MWh);621167;MWh  and  2023;Municipios;0066;Alcobendas;Per cápita (kW/h);5201.71;kw/h","steps":["Read with delimiter ';' and encoding utf-8-sig (14,707 rows).","Keep Tipo territorio == 'Municipios' and Medida == 'Total (MWh)'.","Join to other data by name; the 4-digit code is not INE's."],"reading_traps":["Mixed rows: 77 region rows, 847 'Zonas Estadísticas' rows and 13,783 municipality rows share one column set.","Two measures per municipality and year; the per-capita unit text is 'kw/h' but means kWh per inhabitant.","No sector breakdown: the same portal's 'por sectores económicos' and 'por usos' datasets are regional and cover only Iberdrola and Unión Fenosa (dataset description on datos.gob.es).","Code mapping to INE codes was not verified."]},"test":{"tested_on":"2026-11-16","method":"download","http_status":200,"content_type":"application/octet-stream","size_bytes":972242,"records_total":14707,"records_for_country":14707,"problems":[]},"evidence":[{"claim":"File structure","url":"https://datos.comunidad.madrid/dataset/b903e1ee-8576-4c57-84d2-f2c4b2f9591d/resource/16899884-fadd-4ccc-8345-f52c0fb97eff/download/energia-electrica-facturada.-municipios.csv","quote":"Año;Tipo territorio;Código territorio;Territorio;Medida;Valor;Unidad;Estado dato"}],"members":[],"members_summary":null},{"source_id":"s008","name":"Global Covenant of Mayors: a dataset of GHG emissions for 6,200 cities in Europe and the Southern Mediterranean countries (GlobalCoM.xlsx)","publisher":"European Commission Joint Research Centre (JRC)","official":true,"landing_url":"https://data.jrc.ec.europa.eu/dataset/57a615eb-cfbc-435a-a8c5-553bd40f76c9","data_url":"https://jeodpp.jrc.ec.europa.eu/ftp/public/JRC-OpenData/CoM/GlobalCOM/LATEST/GlobalCoM.xlsx","access":"direct_download","format":"XLSX (Read Me, Table 1-3)","license":"European Commission reuse notice (JRC Data Catalogue)","language":"English","has_coordinates":true,"location_precision":"municipality","publisher_type":"supranational","adds":"Only dataset with sector energy use (MWh/year) per municipality that spans all of Spain, but only for signatory municipalities and one or two inventory years, mostly 2005-2007.","first_seen_pass":1,"rank":8,"coverage":{"geographic":"Covenant signatories as of end 2019; Spain: 2,030 in Table 3, 1,548 with an inventory in Table 2"},"fine_print":{"unit":{"value":"MWh/year","quote":"activity data reporting unit expressed in MWh/year","url":"https://jeodpp.jrc.ec.europa.eu/ftp/public/JRC-OpenData/CoM/GlobalCOM/LATEST/GlobalCoM.xlsx","attempts":[]},"inclusion_rule":{"value":"Municipal, residential and institutional/tertiary buildings, manufacturing and construction (<= 20 MW thermal), transport; 'indirect' rows are grid-supplied energy","quote":"2) Indirect emissions due to consumption of grid-supplied energy consumption;","url":"https://jeodpp.jrc.ec.europa.eu/ftp/public/JRC-OpenData/CoM/GlobalCOM/LATEST/GlobalCoM.xlsx","attempts":[]},"reference_date":{"value":"Inventory year per row; in Spanish rows mostly 2005 (4,762 rows) and 2007 (4,754 rows), others 1990-2012; file dated 2021-06-29","quote":null,"url":null,"attempts":["Counted inventory_year over Spanish sector rows in Table 2"]},"update_frequency":{"value":null,"quote":null,"url":null,"attempts":["JRC landing page opened: no update frequency","Spreadsheet Read Me opened: signatories 'as of end of 2019'"]},"exclusions":{"value":"Waste/wastewater has no activity data; 'energy generation' industries and ETS plants are left out of the industry sector","quote":"Activity data from waste/wastewater sector were not collected in the platform.","url":"https://jeodpp.jrc.ec.europa.eu/ftp/public/JRC-OpenData/CoM/GlobalCOM/LATEST/GlobalCoM.xlsx","attempts":[]}},"key_fields":[{"field":"GCoM_ID (Tables 2 and 3)","meaning":"signatory id, joins the tables"},{"field":"emission_inventory_sector","meaning":"Residential / Municipal / Institutional-tertiary buildings, Manufacturing and construction, Transportation, Waste"},{"field":"type_of_emissions","meaning":"direct_emissions (fuels) or indirect_emissions (grid-supplied energy)"},{"field":"activity_data","meaning":"MWh/year of final energy for that sector and type"},{"field":"inventory_year / type_of_emission_inventory","meaning":"year and baseline or monitoring inventory"},{"field":"Table 3: country code, LAU2, latitude, longitude","meaning":"municipality identification and centroid"}],"how_to_use":{"example_request":"curl -sL -o GlobalCoM.xlsx 'https://jeodpp.jrc.ec.europa.eu/ftp/public/JRC-OpenData/CoM/GlobalCOM/LATEST/GlobalCoM.xlsx' ; parse sheet 'Table 3' (signatories, filter country code == 'es') and 'Table 2' (inventories), join on GCoM_ID, keep type_of_emissions == 'indirect_emissions'","example_result":"Balones (ES1712), Residential buildings and facilities, indirect_emissions, baseline_emission_inventory, 2007, population 163, activity_data 186.7 MWh/year","steps":["Open the XLSX (5.7 MB); Table 2 holds inventories, Table 3 holds signatories with codes and centroids.","Filter Table 3 on country code 'es', join Table 2 on GCoM_ID.","Pick the sector rows and the inventory year you need; one municipality can have a baseline and later monitoring inventories."],"reading_traps":["Voluntary signatories only (1,548 of the 2,030 Spanish signatories have inventories); not a census.","Not an annual series: usually one baseline year (2005 or 2007) and sometimes a later monitoring year.","'indirect_emissions' activity data is grid-supplied energy (electricity, and possibly purchased heat or cold; the sheet does not separate them), so it is not guaranteed to be electricity alone.","Self-reported by municipalities and 'harmonised' by JRC; quality varies."]},"test":{"tested_on":"2026-11-16","method":"download","http_status":200,"content_type":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","size_bytes":5721759,"records_total":8136,"records_for_country":2030,"problems":["data.jrc.ec.europa.eu rejected a WebFetch request with 'The requested URL was rejected'; plain curl GET worked (HEAD returned 405)"]},"evidence":[{"claim":"Scope of the dataset","url":"https://data.jrc.ec.europa.eu/dataset/57a615eb-cfbc-435a-a8c5-553bd40f76c9","quote":"A dataset of GHG emissions for 6,200 cities in Europe and the Southern Mediterranean countries"}],"members":[],"members_summary":null}],"sector":{"regulator":{"name":"Comisión Nacional de los Mercados y la Competencia (CNMC); policy: MITECO","url":"https://data.cnmc.es"},"operators":{"structure":"many","note":"CNMC's SIPS report counts 332 electricity distributors; the 2025T4 retail dataset names 324 distributor codes. Few large ones (i-DE, e-distribución, E-REDES, UFD, Viesgo) and hundreds of small ones.","census_url":"https://catalogodatos.cnmc.es/dataset/ds_24395_1"},"publication_obligation":{"exists":"yes","norm":"Artículo 7 del Real Decreto 1435/2002 (as cited by CNMC in its SIPS supervision report)","url":"https://www.cnmc.es/sites/default/files/5206505.pdf","what_must_be_published":"Distributors must communicate supply-point data (SIPS) so CNMC can give it to accredited retailers; this is a communication duty, not publication of municipal aggregates. No norm found that obliges publishing consumption by municipality.","frequency":"monthly copy to CNMC (per the report)"},"consolidated_republication":{"found":"no_evidence_found","note":"No body republishes municipal consumption from all distributors. datos.gob.es only federates regional and local catalogues.","checked_pages":[{"organization":"CNMC","url":"https://www.cnmc.es/sites/default/files/5206505.pdf","saw":"SIPS held by CNMC with monthly copies from 332 distributors; access only for accredited retailers, no public aggregate"},{"organization":"CNMC (CNMCdata)","url":"https://catalogodatos.cnmc.es/dataset/ds_24395_1","saw":"Retail electricity 2025T4 by distributor, retailer, access tariff and autonomous community (kWh, supplies); no municipality"},{"organization":"MITECO","url":"https://www.miteco.gob.es/es/ministerio/servicios/estadisticas/estadisticas-de-energia.html","saw":"Energy statistics index (consumption by industrial, residential, services; balance); no municipal electricity"},{"organization":"Red Eléctrica (REData)","url":"https://apidatos.ree.es/es/datos/demanda/evolucion?start_date=2025-01-01T00:00&end_date=2025-12-31T23:59&time_trunc=year&geo_trunc=electric_system&geo_limit=ccaa&geo_ids=13","saw":"Demand API answers by autonomous community (Madrid 28,946,417.6 for 2025); province request returned an error"},{"organization":"INE","url":"https://www.ine.es/jaxi/Tabla.htm?tpx=59532","saw":"Percentiles of kWh per dwelling by census district (Census 2021), no totals or sectors"}]}},"national_registry":{"exists":"restricted","note":"CNMC's SIPS holds per-supply-point consumption for all distributors but is open only to accredited retailers; no public municipal extract found.","checked_pages":[{"organization":"CNMC","url":"https://www.cnmc.es/sites/default/files/5206505.pdf","saw":"SIPS access limited to retailers via electronic office; Real Decreto 1074/2015 limits retailer access to location and holder data"},{"organization":"MITECO","url":"https://www.datosabiertos.miteco.gob.es/es.html","saw":"Open-data portal lists no electricity consumption by municipality, province or sector"},{"organization":"Red Eléctrica","url":"https://apidatos.ree.es/es/datos/demanda/evolucion","saw":"Demand only national and by community"},{"organization":"INE","url":"https://www.ine.es/jaxi/Tabla.htm?tpx=59532","saw":"Only distribution indicators of housing consumption by district"},{"organization":"Datadis","url":"https://datadis.es","saw":"Single-page app; page text is only the title 'Datadis', no public aggregate visible without a browser"}]},"if_unstructured":{"summary":null,"recipe":["First check the structured sources of this record for the region; if none, search the municipality's or the region's energy balance or energy-plan PDF.","Convert with pdftotext -layout (all three example PDFs have a text layer) and search for 'consumo final' with 'municipios' or 'electricidad'.","Read the table header for the unit before using numbers: Murcia MWh, Madrid city ktep (1 ktep is not MWh; convert only with the document's own factor), Zaragoza MWh totals plus percentages.","Check for sector detail: Murcia has none; Madrid and Zaragoza give residential, services and industry.","Record the edition year; these PDFs are one-off or annual and the latest Murcia edition found is 2014."],"location_method":"The documents give municipality or postal-code names. Join them to INE municipality codes or to the postal code listed in the document; no coordinates are published.","cross_with":["INE municipal population to normalise (Madrid and Udalmap already give per capita)","CNMC retail dataset for regional totals to check municipal sums","Regional totals in this record's sources 1, 2 and 5 to compare sector shares"],"where_published":[{"name":"Balance Energético de la Región de Murcia (CARM, Dirección General de Industria, Energía y Minas)","url":"https://mui.carm.es/documents/4106806/12153541/1604_balance+2014-v1_ABR16.pdf/749c5f3a-c3dd-4de0-941c-524a7af98fa4","what":"Annual regional energy balance PDFs 2007-2014 (latest edition found is 2014); section 4.7 gives final electricity by comarca and municipality.","how_to_search_inside":"Web search for 'Balance energético Región de Murcia' leads to mui.carm.es; PDFs have a text layer, use pdftotext -layout and look for 'Cuadro 4.7 Distribución del consumo final por comarcas y municipios'. No sector split ('No desagregado por sectores').","example_document":{"url":"https://mui.carm.es/documents/4106806/12153541/1604_balance+2014-v1_ABR16.pdf/749c5f3a-c3dd-4de0-941c-524a7af98fa4","what_it_gives":"Cuadro 4.7 (about p. 30): 'CARTAGENA 1.870.564 | 92,73 | 1.908.987 | 92,76 | 2,05 | 125.932 | 125.891' = MWh 2013, share, MWh 2014, share, change %, clients 2013, 2014; 'MURCIA 1.745.991 ... 1.757.223 ... 230.188 230.577'"}},{"name":"Ayuntamiento de Zaragoza, Oficina de Transición: 'Generación y Demanda en ZGZ. Caso de estudio'","url":"https://zaragoza.es/contenidos/urbanismo/energia/OTC_ZGZ-Generacion-y-Demanda-en-ZGZ-Caso-de-estudio.pdf","what":"City document with 2023 hourly demand by sector and share by postal code (the Cátedra de Transición Energética Municipal also has a map, page without readable text).","how_to_search_inside":"Search zaragoza.es for 'mapa energético' or 'caso de estudio demanda'; the PDF has a text layer; the table 'Análisis por barrio' lists postal code and percentages.","example_document":{"url":"https://zaragoza.es/contenidos/urbanismo/energia/OTC_ZGZ-Generacion-y-Demanda-en-ZGZ-Caso-de-estudio.pdf","what_it_gives":"'Sector Residencial: 847.888 MWh', 'Sector Servicios: 1.059.624 MWh', 'Sector industria: 961.046 MWh'; 'Casco Histórico 50001 2,52% 4,22% 0,05% 2,32%' (residential, services, industrial, total share). Method note: 'Consulta API de Datadis: Fecha: 01/01/23 a 31/12/23'"}},{"name":"Ayuntamiento de Madrid: Balance Energético del Municipio de Madrid (annual PDF, series from 2006)","url":"https://www.madrid.es/UnidadesDescentralizadas/Sostenibilidad/EspeInf/AccionClimatica/2EstudiosInventarios/3aBalance/Ficheros/AYTOMAD_BalanceEner_2022.pdf","what":"Municipal energy balance with final consumption by source and sector, 2022.","how_to_search_inside":"Municipal page 'Balance energético de la ciudad' on madrid.es; use the www host (the same path without www returned 403); pdftotext -layout; table 'Tabla 7. Consumo de energía final en el municipio de Madrid (ktep)'.","example_document":{"url":"https://www.madrid.es/UnidadesDescentralizadas/Sostenibilidad/EspeInf/AccionClimatica/2EstudiosInventarios/3aBalance/Ficheros/AYTOMAD_BalanceEner_2022.pdf","what_it_gives":"Tabla 7 (PDF page 9), row 'Electricidad (red)': Residencial 349,68; Servicios 503,67; Industria 47,47; Transporte rodado 1,37; TOTAL 1.000,77 (ktep, 2022)"}}]},"related_not_answering":[{"name":"CNMC retail electricity market, quarterly (2025T4)","url":"https://catalogodatos.cnmc.es/dataset/ds_24395_1","why":"Energy kWh and supplies by distributor, retailer, access tariff and autonomous community; region level, tariffs instead of sectors."},{"name":"Red Eléctrica REData demand API","url":"https://apidatos.ree.es/es/datos/demanda/evolucion","why":"Demand by autonomous community and national; no municipality or sector."},{"name":"INE table 59532: electricity-consumption distribution of dwellings (Census 2021)","url":"https://www.ine.es/jaxi/Tabla.htm?tpx=59532","why":"Percentiles of kWh per dwelling by census district for housing intensity of use, not total consumption or sector."},{"name":"Consumo eléctrico municipal (Diputación de Córdoba / EPRINSA, e.g. Palenciana)","url":"https://datos.gob.es/eu/catalogo/l01140484-consumo-electrico-municipal","why":"One dataset per small municipality; monthly values around 1,300 with public-lighting and building columns look like the council's own use, not the whole municipality (inferred; unit not stated)."},{"name":"Consumo energía eléctrica municipio 1985-2015 (Arganda del Rey)","url":"https://datos.gob.es/en/catalogo/l01280148-consumo-energia-electrica-municipio-1985-2015","why":"One municipality, yearly billed MWh 1985-2015 (CSV with 31 rows), no sector."},{"name":"Consumo eléctrico 2018-2022 (Ayuntamiento de València)","url":"https://datos.gob.es/catalogo/l01462508-consumo-electrico-2018-2022","why":"Catalogue description limits it to municipal schools, street lighting and buildings."},{"name":"Navarra, Consumo de Energía Eléctrica (Nastat)","url":"https://nastat.navarra.es/es/metadatos/-/tag/consumos-energia-electrica","why":"Metadata says 'Desagregación Navarra': one monthly total in MWh for the region."},{"name":"Instituto Galego de Estatística table 428 (distribución de energía eléctrica por sectores de uso)","url":"https://www.ige.gal/igebdt/igeapi/datos/428","why":"Sector detail only for Spain, Galicia and its four provinces, 1990-2016."},{"name":"Instituto Aragonés de Estadística / Boletín de Coyuntura Energética en Aragón","url":"https://www.aragon.es/documents/20127/1842589/Bolet%C3%ADn+N%C2%BA+36.+Datos+correspondientes+2022.pdf/1a096932-2815-a2d0-a811-a258ce01b845?t=1690199121193","why":"Monthly and annual electricity by province and region; no municipal rows found in its text."},{"name":"Balance eléctrico de Extremadura 2023","url":"http://industriaextremadura.juntaex.es/kamino/attachments/article/628/Balance%20el%C3%A9ctrico%20de%20Extremadura%202023.pdf","why":"Regional demand and use by activity; no municipal table in the text layer."},{"name":"Castilla y León monthly electricity consumption","url":"https://datos.gob.es/catalogo/a07002862-consumo-de-electricidad-mensual-en-castilla-y-leon1","why":"Catalogue record: month, province, supplier and type (residential, services, industrial) in kWh; province level."},{"name":"La Rioja, Consumo de energía eléctrica por sectores de actividad","url":"https://datos.gob.es/catalogo/a17002943-consumo-de-energia-electrica-por-sectores-de-actividad1","why":"Catalogue record: kWh by sector from Iberdrola data; regional level."},{"name":"Cantabria ICANE: Consumo energía eléctrica por sectores (monthly)","url":"https://www.icane.es/data/consumo-electrico-sector-mensual","why":"Regional scope, gigawatt-hours, January 1997 to December 2005 only."},{"name":"Castilla-La Mancha statistics: consumo eléctrico mensual por sectores","url":"https://estadistica.castillalamancha.es/noticias/consumo-electrico-mensual","why":"Monthly by sector but the news page states no territorial level; the energy portal's statistics page lists only network-capacity PDFs by municipality (MW, not consumption)."},{"name":"Tenerife Cabildo energy consumption dataset","url":"https://datos.tenerife.es/es/datos/conjuntos-de-datos/consumo-energetico-del-cabildo-de-tenerife","why":"Consumption of the Cabildo's own infrastructures (source Datadis), not of the island's municipalities."},{"name":"Datadis (datadis.es)","url":"https://datadis.es","why":"Barcelona and Zaragoza obtained their postal-code aggregates through Datadis; its page is a JavaScript app and no public aggregate service or terms were readable."}],"open_questions":["How Barcelona and Zaragoza obtained postal-code aggregates from Datadis, and whether other councils can: needs asking Datadis or the councils; no public procedure was readable.","Barcelona's field description says MWh while totals behave as kWh: only the publisher can confirm.","Territorial level of Castilla-La Mancha's monthly 'Energía eléctrica: Consumo mensual' table: the report tool needs a browser.","Whether IECA keeps a municipal series split into six sectors (cited in a 2023 academic article) after the SIMA redesign: BADEA tables need a browser."],"history":[{"pass":1,"date":"2026-11-16","role":"research","model":"Claude Sonnet 5.5","rules_version":"6.12","note":"No national municipal or postal-code file; the data lives in a handful of regional and city open-data sets, each with different sectors and units.","headline":{"official_data":"partial","non_official_data":"none_found","national_registry":"restricted"},"sources":{"total":8,"new":8,"dropped":0},"negatives":{"overturned":0,"confirmed":0},"effort":{"pages":86,"minutes":36}}],"local_terms":[{"term":"consumo eléctrico municipal / por municipios","language":"es","meaning":"electricity use by municipality"},{"term":"energía eléctrica facturada","language":"es","meaning":"billed electricity, the wording used by Madrid and IECA"},{"term":"consumo por código postal","language":"es","meaning":"postal-code level use, as in distributors' open data"},{"term":"consum d'energia elèctrica per municipis i sectors","language":"ca","meaning":"Catalan statistic title"},{"term":"usos domésticos / servicios / industria","language":"es/ca","meaning":"typical sector labels"},{"term":"secreto estadístico / secret estadístic","language":"es/ca","meaning":"cell suppressed to protect individual consumers"},{"term":"CUPS","language":"es","meaning":"supply-point code; customer counts in ISTAC are CUPS"},{"term":"concello / concejo / udalerri","language":"gl/ast/eu","meaning":"municipality in Galicia, Asturias, Basque Country"}],"provenance":{"pass_count":1,"models":["Claude Sonnet 5.5"],"minutes_estimate":36,"pages_opened":86,"passes":[{"pass":1,"date":"2026-11-16","model":"Claude Sonnet 5.5"}],"note":"Minutes are researcher estimates. Counts describe documented passes, not publication approval. Missing history or effort is not reconstructed."},"card_url":"https://georutter.org/v1/es/electricity-consumption-local.json","detail_url":"https://georutter.org/v1/es/electricity-consumption-local/detail.json","html_url":"https://georutter.org/es/electricity-consumption-local/","country_url":"https://georutter.org/v1/countries/es.json"}
