About Barrio

Barrio turns Spain's official open data into a clear picture of every neighbourhood, so people can choose where to live with facts rather than hearsay.

How it works

Census sections

Spain is divided into ~36,500 census sections of roughly 1,000–2,500 people. That's our unit: small enough to tell two sides of a town apart.

Population-weighted percentiles

Every value is ranked against Spain and the province, weighted by population: “higher than where 80% of people live”. Thousands of tiny villages don't drown out the cities.

Walkability

From each section, the distance to the nearest shops, pharmacies, schools, health centres, cafés, transit and parks, decaying from 100 within 200 m to 0 at 1.5 km.

Fallbacks

Where a source suppresses small numbers (e.g. fewer than 10 rental contracts) the section takes its district's or municipality's value. Missing data is shown as missing, never invented.

Data sources, dates and licences

Every number on the map comes from one of these sources. “Data from” is the period the numbers describe, which is not the same as when we loaded them: official statistics usually come out months or years after the period they cover. We always load the latest release, and these dates update by themselves when we do.

SourceData fromNew dataLicence
INE · Atlas de distribución de renta de los hogares

Official statistics for every small area of Spain. It is always a couple of years behind, but it is the most detailed income data there is.

Year 2023
Over 2 years old
Once a year. Each year comes out about two years later, because it is built from tax returns.INE (open, attribution)
INE · Censo de Población y Viviendas

The census is the only source of these figures for small areas, so it is used even though it is several years old. Neighbourhoods change slowly, but new developments may not be reflected.

Census 2021
Over 2 years old
Every 10 years.INE (open, attribution)
INE · Censo anual de población

Built from the municipal register (Padrón), cleaned with other public records. It has replaced the Padrón figures by census section since 2021.

1 January 2025
Recent
Once a year, in December, with the population on 1 January of that year.INE (open, attribution)
ICAEN (Catalunya), Comunidad de Madrid, IVACE (Comunitat Valenciana), Gobierno Vasco, Gobierno de Canarias · Registros autonómicos de certificados de eficiencia energética

Only homes that have been sold or let since 2013, or newly built, have a certificate, so the share is of certified homes, not of all homes. Each home counts once, with its latest certificate. The Canary register does not say what a building is used for, so shops and offices are included there.

As of 5 October 2026
Recent
The registers grow every day; we download them again once a month.Open data, attribution (CC BY 4.0 where stated)
Eurostat GISCO, with INE · Census 2021 population grid (1 km²)

Squares of 1 km: inside a city a section is smaller than a square, so neighbouring sections share much of their value.

Census 2021
Over 2 years old
Every 10 years, with the census.CC BY 4.0 (Eurostat)
INE · Viviendas turísticas (estadística experimental)

INE counts the adverts on Airbnb, Booking and Vrbo and removes duplicates. It counts adverts, not licences.

May 2026
Recent
A few times a year.INE (open, attribution)
MIVAU · SERPAVI (índice de precios del alquiler)

These are rents people actually pay, including contracts signed years ago. Prices in new adverts are usually higher.

Year 2024
1–2 years old
Once a year, one to two years later, because it comes from landlords' tax returns.Open data, attribution
INCASÒL, Generalitat de Catalunya · Preu mitjà del lloguer d'habitatges per municipi

In Barcelona the figure comes from each of its 73 neighbourhoods (barris), not from the city as a whole.

Contracts signed April 2025 – March 2026
Over 2 years old
Every three months, about three months later, from the register of rental deposits.Open data, attribution
Gobierno Vasco · Estadística del Mercado de Alquiler (EMAL)

The latest quarters are provisional and may still change a little. In Vitoria-Gasteiz and Donostia the figure comes from each neighbourhood (barrio), in Bilbao from each district.

Contracts signed in 2025
Over 2 years old
Every three months for towns over 20,000 people, once a year for those over 5,000.Open data, attribution
Gobierno de Aragón · Fianzas de alquileres de vivienda depositadas en el Gobierno de Aragón
Contracts signed in 2025
Recent
Once a year: every deposit with the monthly rent of its contract.Open data, attribution
Generalitat Valenciana · Registro de las fianzas de alquiler de viviendas

By law the deposit for a home is one month's rent, so the typical deposit is the typical rent. Towns with few contracts this year show last year's.

Contracts signed in 2026 so far
Over 2 years old
Every month, adding the contracts of the current year.Open data, attribution
Observatori de l'Habitatge de les Illes Balears · Dades de lloguer (fiances IBAVI)

Few deposits are registered in the islands, so small towns can jump a lot from one year to the next.

Contracts signed in 2025
Recent
Once a year, from the register of rental deposits.Open data, attribution
Instituto Galego da Vivenda e Solo (Observatorio da Vivenda) · Fianzas dos alugueiros

Only the seven big cities are published one by one.

Contracts signed in 2026 so far
Over 2 years old
Every month, one or two months later.Open data, attribution
MIVAU · Valor tasado de la vivienda libre

Valuations made by banks before granting a mortgage. They are close to real sale prices, but not exactly the same.

April–June 2026
Recent
Every three months.Open data, attribution
Ministerio del Interior · Balance de Criminalidad

Only crimes the police know about: many minor crimes are never reported.

Full year 2025
Recent
Every three months, adding up the year so far. We use full years only.Open data, attribution
Servicio Público de Empleo Estatal (SEPE) · Paro registrado por municipios

Counts people signed on as job seekers, not everyone out of work: some never register, and some registered people do small jobs. It also moves with the seasons, especially on the coast.

August 2026
Recent
Every month, early in the next month.Open data, attribution
Agencia Tributaria (AEAT) · Estadística de los declarantes del IRPF por municipios y por código postal

Averages per tax return, not per person or household: a couple filing jointly counts once, and people who do not have to file are left out. País Vasco and Navarra collect their own income tax and are not included.

Year 2024
1–2 years old
Once a year, about a year and a half after the tax year ends; the postcode tables come a year later.Open data, attribution
Dirección General de Tráfico (DGT) · Microdatos de accidentes con víctimas

Every crash with someone hurt that the police recorded. The open files only name towns of 5,000 people or more, and give no exact location.

Yearly average 2022–2024
Over 2 years old
Once a year, about nine months after the year ends.Open data (Ley 37/2007), attribution
Ministerio para la Transformación Digital y de la Función Pública · Cobertura de banda ancha en España

Coverage reported by the operators: it says what can be ordered at home, not the speed people actually get.

As of 30 June 2025
1–2 years old
Once a year: the situation at 30 June, published about a year later.Open data (Ley 37/2007), attribution
Open Earth Monitor (OEMC), method of the EEA · Air Quality in Europe: annual maps of NO₂ and PM2.5 (1 km)

A model on a 1 km grid, built from the official monitoring stations, the Copernicus CAMS chemistry model and land use, as the European Environment Agency does. It smooths out the busiest streets: right next to heavy traffic the air is worse.

Year 2023
Over 2 years old
Once a year, more than a year after the year ends, once the stations' validated data are in.CC BY 4.0
European Environment Agency, from the maps of Spanish cities, Ministerio de Transportes and AENA · Strategic noise maps (Environmental Noise Directive)

Computed noise, not measured: models of traffic and terrain at 4 m above the ground, in 5 dB bands. Only big cities and major roads, railways and airports are mapped; neighbourhood streets in small towns are not.

Maps of 2022
Over 2 years old
Every five years (2017, 2022, 2027…), and the maps reach the EEA a year or two later.EEA (open, attribution)
Ministerio del Interior · Elecciones generales (Congreso)

Results of each polling station, added up per area. Votes cast from abroad cannot be placed on the map and are left out.

Election of 23 July 2023
Over 2 years old
After every general election, usually every four years.Open data, attribution
Ministerio de Educación · Registro Estatal de Centros Docentes

The register has addresses but no map positions; we place schools from their address, and about a third end up at the centre of their town.

As of 1 October 2026
Recent
The regions keep it up to date; we download it again every time we refresh the data.Open data, attribution
IGN · CartoCiudad (address search)
As of 1 October 2026
Recent
Kept up to date continuously.CC BY 4.0
Transport operators, via Mobility Database · Public transport timetables (GTFS)

Not every bus company publishes its timetables yet, so some places look less well served than they are.

Timetables in force on 1 October 2026
Recent
Operators publish new timetables when services change; we download them again every time we refresh the data.Open licences of each operator
Ministerio de Transportes y Movilidad Sostenible (MITMA) · Estudio de movilidad con Big Data

Estimated from anonymised mobile-phone records and scaled up to the whole population. Only trips longer than 500 m are counted. Based on MITMA open data.

Weekdays 14–16 October 2025
1–2 years old
MITMA publishes trips for every day since 2022 (since July 2025, one sample week every other month). We use three ordinary weekdays.MITMA open data licence (commercial use allowed, “Basado en datos abiertos MITMA”)
Ayuntamiento de Madrid (datos.madrid.es) · Censo de locales y Arbolado

The city's own registers. A closed premises is not always empty: some are used as storage.

4 October 2026
Recent
The census of premises is updated every day; the tree inventory a few times a year.CC BY 4.0
Ajuntament de Barcelona (Open Data BCN) · Cens de locals en planta baixa i Arbrat
Year 2024
1–2 years old
Ground-floor premises are surveyed street by street every two or three years; the tree inventory is updated every quarter.CC BY 4.0
Ajuntament de València (Geoportal) · Arbolado
4 October 2026
Recent
The tree inventory is updated as trees are planted or removed.CC BY 4.0
Mossos d'Esquadra (Generalitat de Catalunya) · Fets penals coneguts

Only crimes the police know about: many minor crimes are never reported.

Full year 2025
Recent
Every month, about a month late. We use full calendar years.Open data, attribution (Generalitat de Catalunya)
© OpenStreetMap contributors · OpenStreetMap

A free map made by volunteers, like Wikipedia. Cities are mapped in great detail; small towns sometimes miss shops or bars.

As of 2 October 2026
Recent
Volunteers edit it every day; we download it again every time we refresh the data.ODbL 1.0
Ministerio para la Transición Ecológica y el Reto Demográfico (MITECO) · Sistema Nacional de Cartografía de Zonas Inundables (SNCZI)

Only rivers and coasts that have been studied are mapped: the main rivers and those with known risk. Zero means no mapped flood zone, not no risk; flash floods in dry ravines (ramblas) are often missing.

As of 5 October 2026
Recent
River basin authorities add and revise studied stretches every few years (the flood risk plans run in six-year cycles); we download the maps again every time we refresh the data.Free use with attribution (© Ministerio para la Transición Ecológica y el Reto Demográfico)
European Space Agency (ESA), WorldCover consortium · ESA WorldCover 2021 (10 m land cover)

A satellite map at 10 m: a row of street trees shows, a single tree in a courtyard often does not. Trees planted or cut since 2021 are not reflected.

Imagery of 2021
Over 2 years old
Made once from 2021 satellite images (an earlier edition is from 2020); no yearly updates are planned.CC BY 4.0 (© ESA WorldCover project 2021 / Contains modified Copernicus Sentinel data (2021))
European Forest Fire Information System (Copernicus Emergency Management Service, JRC) · EFFIS burnt areas

Mapped from satellites: fires smaller than a few hectares are often missing, and outlines are approximate. The record we use starts in 2016.

Fires from 2016 to 2026
Over 2 years old
Updated during the fire season as new fires are mapped from satellite images; we download the whole record every time we refresh the data.Copernicus (free, attribution: © European Union, EFFIS)
Ministerio de Vivienda y Agenda Urbana · Zonas de mercado residencial tensionado

Only the official declaration and its map are binding. Where only a neighbourhood or village is declared, check whether the address is inside.

As of 4 November 2026
Recent
Regions declare zones for three years; the ministry lists the new ones every quarter in the BOE. We check its list every night.Official list (BOE), attribution
© OpenStreetMap contributors, via osmdata.openstreetmap.de · OpenStreetMap coastline (water polygons)

The coastline barely changes; what matters is where the sea stops in river mouths and ports, which we cut at water narrower than 300 m.

As of 5 October 2026
Recent
Rebuilt from OpenStreetMap every day; we download it again every time we refresh the data.ODbL 1.0
Diputaciones forales · Catastros forales de Araba, Bizkaia y Gipuzkoa (edificios)
As of 1 October 2026
Recent
Kept up to date continuously; we download it again every time we refresh the data.Open data, attribution
Dirección General del Catastro; EUBUCCO v0.2 · Catastro, INSPIRE Buildings (via EUBUCCO)

Buildings finished after about 2021 are missing, so the share of new homes is a little low where a lot has been built since.

As of about 2021
Over 2 years old
The cadastre is kept up to date continuously, but the copy we use was taken around 2021.ODbL 1.0
Base map · Protomaps basemap (from OpenStreetMap)Rendered from OpenStreetMapODbL 1.0 · fonts OFL

Contact

Questions, data errors, partnerships or press — write to us.

We keep your email only to answer this request and delete it whenever you ask. No sharing, no ads. Privacy policy

Barrio

Neighbourhood analytics for Spain, built on official open data.

Data updates by email

One email when rents, crime or income data change. No spam.

We keep your email only to answer this request and delete it whenever you ask. No sharing, no ads. Privacy policy

© 2026 BarrioData: INE, MIVAU, Ministerio del Interior, Ministerio de Educación, NAP (GTFS) · © OpenStreetMap contributors (ODbL).