Skip to content

Open data in Spain

🔓 Open data in Spain

Open data is public information that anyone can download, reuse and redistribute without asking permission, in formats a program can read. It matters because it allows what governments, parties and companies say to be checked, because citizens and the media can carry out their own analyses instead of relying on other people's summaries, and because useful services, research and businesses are built on it. SpainFacts exists thanks to open data: all our figures come from public sources that anyone can consult.

This page brings together 44 projects: 20 from the General State Administration, 9 regional and municipal portals and 15 civil society and data journalism initiatives. For 16 of them we link to the SpainFacts page where we use them.

Type of project
Ministry for Digital Transformation and the Civil Service (Aporta Initiative)

National catalogue bringing together the open datasets of ministries, regions, councils and universities, with guides and reuse cases.

Format: DCAT-AP-ES catalogue, API and SPARQL; formats depend on the publisher · Licence: Depends on each publishing body
National Statistics Institute (INE)

All INE official statistics (CPI, Labour Force Survey, municipal register, GDP, births, tourism...) available on the website and through an API that returns JSON.

Format: JSON API (Tempus3), PC-Axis, CSV, Excel · Licence: Free reuse with attribution
On SpainFacts: It is the main source: CPI, unemployment (Labour Force Survey), population, GDP and more than half the series on the site. See the page →
Official State Gazette Agency (BOE)

Daily summaries of the BOE and the BORME (Official Gazette of the Companies Register) and consolidated legislation, accessible in an automated way.

Format: API returning XML or JSON · Licence: Free reuse with attribution
On SpainFacts: We link the regulations that set out councils' obligations (it is not a data source). See the page →
State Meteorological Agency (AEMET)

Observations, daily and monthly climate values, forecasts and warnings from all AEMET stations.

Format: REST API in JSON; requires a free key · Licence: Reuse with attribution to AEMET
On SpainFacts: Daily temperatures from the reference stations for the heat map. See the page →
Red Eléctrica de España

Generation by technology, demand, exchanges, emissions and electricity balance, national and by region.

Format: REST API in JSON, no key · Licence: Reuse with attribution to Red Eléctrica
On SpainFacts: Generation mix, power sector emissions and storage. See the page →

ESIOS

State
Red Eléctrica de España (system operator)

The system operator's information system: prices, demand and generation in real time, every few minutes.

Format: JSON API with a free token · Licence: Reuse with attribution to Red Eléctrica
On SpainFacts: Real-time data and records for the electricity system. See the page →

CNMC Data

State
National Markets and Competition Commission (CNMC)

Statistics on the markets the CNMC supervises: energy, telecommunications, audiovisual, postal and transport.

Format: Downloads and interactive dashboards · Licence: See the legal notice
Directorate-General for the Cadastre (Ministry of Finance)

Maps and data on every property in Spain (except the Basque Country and Navarre, which have their own cadastre): plots, buildings, floor areas and uses.

Format: INSPIRE bulk download (GML), WMS map services; alphanumeric files require registration · Licence: Free use with attribution (non-protected data)
On SpainFacts: Indirectly: the Ministry of Housing rent index cross-references income tax and Cadastre data. See the page →
National Geographic Institute and National Centre for Geographic Information

Topographic maps, orthophotos (PNOA), terrain models, administrative boundaries and gazetteer.

Format: Shapefile, GeoPackage, GeoTIFF, LiDAR and web services · Licence: CC BY 4.0
On SpainFacts: The boundaries of regions and provinces in the maps. See the page →
Ministry of Finance

Tenders, awards and contracts of the General State Administration and many other administrations.

Format: Syndicated open data (ATOM with CODICE XML) · Licence: Free reuse with attribution
General Comptroller of the State Administration (Ministry of Finance)

Calls for and awards of grants and public aid from all administrations, with beneficiary and amount.

Format: Web search with export of results · Licence: See the legal notice
General State Administration (Ministry for Digital Transformation and the Civil Service)

Proactive disclosure by the General State Administration (organisation, senior officials, contracts, agreements, budgets) and the channel for exercising the right of access to information.

Format: Web pages and downloads · Licence: Transparency Act 19/2013
Bank of Spain

Statistical Bulletin with series on interest rates, credit, balance of payments and general government debt.

Format: Series downloadable in CSV and Excel · Licence: Reuse with attribution
On SpainFacts: General government and council debt. See the page →
Public Employment Service (SEPE)

Registered unemployment, contracts and unemployment benefits, with monthly detail by municipality.

Format: CSV and Excel · Licence: Reuse with attribution
On SpainFacts: Registered unemployment by municipality and province. See the page →
Directorate-General for Traffic (DGT)

Microdata on registrations, deregistrations, transfers and the vehicle fleet, plus statistics on road accidents and drivers.

Format: Fixed-width text files (MATRABA) and tables · Licence: Reuse with attribution
On SpainFacts: Registrations, electric cars and the vehicle fleet. See the page →
DGT and Ministry of Transport

Data on traffic, incidents, electric charging points and other mobility services, under European intelligent transport rules.

Format: DATEX II, JSON and CSV · Licence: Depends on each dataset
On SpainFacts: Charging points for electric cars. See the page →

MITECO

State
Ministry for the Ecological Transition and the Demographic Challenge

Reservoir hydrological bulletin, greenhouse gas emissions inventory, air quality, environmental mapping and energy.

Format: Excel, CSV, Access and mapping services · Licence: Reuse with attribution
On SpainFacts: Reservoir levels and greenhouse gas emissions. See the page →
General Secretariat for Regional and Local Financing (Ministry of Finance)

Budgets and outturns of every council, provincial council and region, by chapter and by spending policy.

Format: Web queries and download in Access or Excel · Licence: Reuse with attribution
On SpainFacts: Spending and revenue per resident in each municipality and who fails to submit their accounts. See the page →
Court of Audit and regional external audit bodies

Status of submission of each local authority's General Account and access to the accounts submitted.

Format: Web queries · Licence: See the legal notice
On SpainFacts: Which councils submit their General Account on time. See the page →
Ministry of the Interior

Official results of general elections (since 1977), municipal elections (since 1979) and European elections (since 1987), by polling station, municipality and province.

Format: Text and Excel files in the downloads area · Licence: Reuse with attribution
On SpainFacts: Results of general, municipal and European elections. See the page →

Open Data Euskadi

Regional and local
Basque Government

One of the pioneering open data portals in Spain (2010): budgets, environment, transport, culture, air quality and more.

Format: CSV, JSON, XML and API · Licence: Reuse with attribution

Castile and León open data

Regional and local
Regional Government of Castile and León

Regional catalogue with data on health, education, environment, employment and administrative registers.

Format: CSV, JSON and API · Licence: Depends on each dataset

Aragón Open Data

Regional and local
Government of Aragon

Regional portal with a data catalogue, linked data (Aragopedia) and analysis of the region and its municipalities.

Format: CSV, JSON, API and SPARQL · Licence: Depends on each dataset
Regional Government of Andalusia

Data catalogue of the Andalusian administration: statistics, health, employment, environment and services.

Format: CSV, JSON, XML · Licence: Depends on each dataset
Valencian Regional Government

Data from the Valencian administration: health, education, environment, transport and public sector.

Format: CSV, JSON, XML · Licence: Depends on each dataset

Dades obertes de Catalunya

Regional and local
Government of Catalonia

Open data and transparency portal of the Catalan Government, with visualisations and direct querying of each dataset.

Format: CSV, JSON and API (Socrata) · Licence: Depends on each dataset
Community of Madrid

Regional catalogue with data on health, education, transport, environment and regional statistics.

Format: CSV, JSON, XML · Licence: Depends on each dataset
Madrid City Council

Real-time traffic, air quality, municipal register, budgets, contracts, car parks, BiciMAD and hundreds more datasets.

Format: CSV, JSON, XML and API · Licence: Reuse with attribution

Open Data BCN

Regional and local
Barcelona City Council

Data on Barcelona's population, mobility, environment, economy, facilities and tourism.

Format: CSV, JSON and API · Licence: CC BY 4.0

Civio

Civil society
Fundación Ciudadana Civio

Independent foundation that monitors public authorities through data journalism and its own tools; publishes its code on GitHub.

Format: Search tools and downloadable data in some projects · Licence: Varies by project
Fundación Ciudadana Civio

Explains every day, in plain language, the most relevant items published in the Official State Gazette; includes the Decretómetro, which counts decree-laws.

Format: Articles and visualisations · Licence: Civio content
Fundación Ciudadana Civio

State, regional and council budgets explained by spending policy, with how they have changed.

Format: Interactive visualisations and downloads · Licence: Civio content
Fundación Ciudadana Civio

Search tool for pardons granted in Spain, based on the royal decrees published in the BOE.

Format: Web search · Licence: Civio content
Fundación Ciudadana Civio

International investigation into access to medicines, vaccines and contraceptives around the world. Not updated since 2018.

Format: Visualisations and project data · Licence: Civio content

Access Info Europe

Civil society
Madrid-based organisation

Defends and promotes the right of access to public information in Spain and in Europe, through litigation, guides and monitoring of the transparency law.

Format: Reports and guides · Licence: Own content
Spanish chapter of Transparency International

Publishes the Corruption Perceptions Index in Spain and transparency assessments of institutions and companies.

Format: Reports and indices · Licence: Own content
Fundación Hay Derecho

Studies on the rule of law and institutional quality, such as the Dedómetro, which analyses appointments in the public sector.

Format: Reports · Licence: Own content
Political Watch

Tracks every initiative in the Congress of Deputies and classifies them by topic and parliamentary group.

Format: Website, API and open source code · Licence: See the website
Jaime Gómez-Obregón (personal initiative)

Census of Spain's public and public-private observatories, with their administration, year of creation and status; accepts corrections from the community.

Format: Website and open source code on GitHub · Licence: See the website
On SpainFacts: It is the basis of our analysis of public observatories. See the page →

Montera34

Civil society
Pablo Rey Mazón and Alfonso Sánchez Uzábal

Data-as-a-commons projects built with free software: visualisation and analysis of urban data, school segregation, tourist rentals and opening up municipal databases.

Format: Visualisations and open source code · Licence: See each project
Fundación Maldita.es

Fact-checking and hoax debunking; the Maldito Dato section uses official figures to explain political and economic news.

Format: Articles and charts · Licence: Own content

Newtral

Data journalism
Newtral Media Audiovisual

Fact-checking and data journalism outlet that checks public statements and explains the data behind the news.

Format: Articles and charts · Licence: Own content

Datadista

Data journalism
Independent data journalism outlet

Long-form data investigations (housing, health, energy...); during the pandemic it published COVID-19 data series by region on GitHub.

Format: Articles and data on GitHub · Licence: See each repository

EpData

Data journalism
Europa Press

Europa Press data portal: charts of public statistics, ready to consult and embed in other websites.

Format: Embeddable charts and tables · Licence: Europa Press terms

How to read this guide

  • Format shows how the data can be obtained: an API lets a program request them automatically; CSV, JSON or XML files can be opened and processed directly; a web search only allows manual queries.
  • Licence summarises the reuse conditions. In Spain, public sector information is reusable as a general rule (Act 37/2007 and Royal Decree 1495/2011), with the obligation to cite the source and not distort the data; each portal sets out its conditions in its legal notice. Civil society projects and the media have their own conditions.
  • Civil society and data journalism projects are included for their work in explaining or scrutinising public data, which does not imply endorsing their conclusions.

Methodology and sources

A selection compiled by SpainFacts with the main public data portals and the best-known citizen initiatives; it is not intended to be a complete census. All links were checked in September 2026. Projects that no longer exist have been removed and those that remain online but are no longer updated are flagged in their description. The full catalogue of the sources this site uses, with their licences and methodology, is in Sources. Missing a project? See also the inspiring examples from other countries.