{
 "dataset": {
  "version": "2026-11-05",
  "builtAt": "2026-11-05T15:34:08.779Z",
  "licence": "CC-BY-4.0",
  "licenceUrl": "https://creativecommons.org/licenses/by/4.0/",
  "licenceNote": "Borgo's compilation is licensed CC BY 4.0. Each figure keeps its source's own terms and attribution, listed in data/licences.json; reuse a figure under those terms.",
  "licences": "https://borgo.abcastor.com/data/licences.json",
  "otherParts": [
   {
    "part": "odbl",
    "licence": {
     "id": "ODbL-1.0",
     "name": "Open Database License 1.0",
     "url": "https://opendatacommons.org/licenses/odbl/1-0/"
    },
    "file": "https://borgo.abcastor.com/data/dataset-odbl.json",
    "city": "https://borgo.abcastor.com/api/odbl/city/{id}.json"
   },
   {
    "part": "who",
    "licence": {
     "id": "WHO-data",
     "name": "WHO terms and conditions for data compilations",
     "url": "https://www.who.int/about/policies/publishing/data-policy/terms-and-conditions"
    },
    "file": "https://borgo.abcastor.com/data/dataset-who.json",
    "city": "https://borgo.abcastor.com/api/who/city/{id}.json"
   },
   {
    "part": "cmhc",
    "licence": {
     "id": "CMHC-data",
     "name": "CMHC Licence Agreement for the Use of Data",
     "url": "https://www.cmhc-schl.gc.ca/about-us/terms-conditions/hmip-terms-conditions"
    },
    "file": "https://borgo.abcastor.com/data/dataset-cmhc.json",
    "city": "https://borgo.abcastor.com/api/cmhc/city/{id}.json"
   }
  ],
  "creator": "Castor",
  "fx": {
   "base": "EUR",
   "date": "2026-10-26",
   "source": "ecb-fx"
  }
 },
 "id": "madrid-es",
 "name": "Madrid",
 "country": {
  "code": "ES",
  "name": "Spain",
  "currency": "EUR"
 },
 "region": "ES-MD",
 "lat": 40.4165,
 "lon": -3.70256,
 "population": 3255944,
 "wikidata": null,
 "geonames": "3117735",
 "page": "https://borgo.abcastor.com/city/madrid-es/",
 "markdown": "https://borgo.abcastor.com/city/madrid-es/index.md",
 "keyFacts": [
  "Madrid has about 3,255,944 residents (GeoNames).",
  "On a gross salary of €60,000 a year, an employee in Madrid takes home about €42,184 a year (€3,515 a month) after income tax and employee contributions, an effective rate of 29.7% (Spain 2026 rules).",
  "In Madrid the average daily high (air temperature in the shade) peaks at 34.7 °C in July and the average daily low falls to 1.5 °C in January (Historical weather (ERA5 reanalysis), Open-Meteo, 2021-2025).",
  "Madrid has about 73 nice days a year, days that are dry, mostly clear and feel 18 to 30 °C on average from 8 am to 8 pm, most of them in July (16) (Historical weather (ERA5 reanalysis), Open-Meteo, 2021-2025).",
  "Between 2021 and 2025 the air in Madrid reached 41.5 °C at its hottest and −11.1 °C at its coldest (Historical weather (ERA5 reanalysis), Open-Meteo).",
  "It rains or snows (at least 1 mm) on about 76 days a year in Madrid (Historical weather (ERA5 reanalysis), Open-Meteo, 2021-2025).",
  "The shortest day in Madrid lasts 9 h 17 min and the longest 15 h 04 min (computed from latitude).",
  "Everyday prices in Spain sit at 68.7 on an index where the United States is 100 (World Development Indicators, World Bank, 2025).",
  "Life expectancy at birth in Spain is 83.9 years (World Development Indicators, World Bank, 2024).",
  "Spain records 0.69 intentional homicides per 100,000 people a year (World Development Indicators, World Bank, 2023).",
  "Besides citizens of Spain, citizens of 29 other countries under EU and EEA free movement and of Switzerland (Swiss-EU free movement) can live and work in Madrid without a visa."
 ],
 "figures": [
  {
   "metric": "childcare_fees_1",
   "label": "Childcare fees, one child",
   "description": "What full-time childcare for one child aged 2 or 3 costs in fees a year, before any public support, in the place the OECD tax-benefit model takes as typical for the country.",
   "value": 2452,
   "text": "€2,452 a year",
   "unit": "EUR/year",
   "period": "2026",
   "level": "country",
   "retrieved": "2026-11-04T23:14:49.881Z",
   "method": "source",
   "sources": [
    {
     "id": "oecd-childcare",
     "name": "OECD Tax-Benefit Models: net childcare costs",
     "publisher": "OECD",
     "url": "https://www.oecd.org/en/data/indicators/net-childcare-costs.html",
     "licence": "OECD terms for data (any use, with citation)",
     "licenceUrl": "https://www.oecd.org/en/about/terms-conditions.html"
    }
   ],
   "note": "Fees for one child aged 2 or 3 in full-time care, before support (OECD tax-benefit model)",
   "levelText": "Spain-wide"
  },
  {
   "metric": "childcare_fees_2",
   "label": "Childcare fees, two children",
   "description": "Fees a year for full-time childcare for two children aged 2 and 3, before any public support (OECD tax-benefit model).",
   "value": 2452,
   "text": "€2,452 a year",
   "unit": "EUR/year",
   "period": "2026",
   "level": "country",
   "retrieved": "2026-11-04T23:14:49.881Z",
   "method": "source",
   "sources": [
    {
     "id": "oecd-childcare",
     "name": "OECD Tax-Benefit Models: net childcare costs",
     "publisher": "OECD",
     "url": "https://www.oecd.org/en/data/indicators/net-childcare-costs.html",
     "licence": "OECD terms for data (any use, with citation)",
     "licenceUrl": "https://www.oecd.org/en/about/terms-conditions.html"
    }
   ],
   "note": "Fees for two children aged 2 and 3 in full-time care, before support (OECD tax-benefit model)",
   "levelText": "Spain-wide"
  },
  {
   "metric": "childcare_net_couple_1",
   "label": "Childcare, net of support: couple, one child",
   "description": "What full-time childcare for one child aged 2 or 3 costs a two-earner couple (on 100% and 67% of the average wage) a year after childcare benefits, tax breaks and other benefit changes (OECD net childcare cost).",
   "value": 2452,
   "text": "€2,452 a year",
   "unit": "EUR/year",
   "period": "2026",
   "level": "country",
   "retrieved": "2026-11-04T23:14:49.881Z",
   "method": "source",
   "sources": [
    {
     "id": "oecd-childcare",
     "name": "OECD Tax-Benefit Models: net childcare costs",
     "publisher": "OECD",
     "url": "https://www.oecd.org/en/data/indicators/net-childcare-costs.html",
     "licence": "OECD terms for data (any use, with citation)",
     "licenceUrl": "https://www.oecd.org/en/about/terms-conditions.html"
    }
   ],
   "note": "Net cost after childcare benefits, tax breaks and other benefit changes: couple on 100% and 67% of the average wage",
   "levelText": "Spain-wide"
  },
  {
   "metric": "childcare_net_couple_2",
   "label": "Childcare, net of support: couple, two children",
   "description": "What full-time childcare for two children aged 2 and 3 costs a two-earner couple (on 100% and 67% of the average wage) a year after childcare benefits, tax breaks and other benefit changes (OECD net childcare cost).",
   "value": 2452,
   "text": "€2,452 a year",
   "unit": "EUR/year",
   "period": "2026",
   "level": "country",
   "retrieved": "2026-11-04T23:14:49.881Z",
   "method": "source",
   "sources": [
    {
     "id": "oecd-childcare",
     "name": "OECD Tax-Benefit Models: net childcare costs",
     "publisher": "OECD",
     "url": "https://www.oecd.org/en/data/indicators/net-childcare-costs.html",
     "licence": "OECD terms for data (any use, with citation)",
     "licenceUrl": "https://www.oecd.org/en/about/terms-conditions.html"
    }
   ],
   "note": "Net cost after childcare benefits, tax breaks and other benefit changes: couple on 100% and 67% of the average wage",
   "levelText": "Spain-wide"
  },
  {
   "metric": "childcare_net_single_1",
   "label": "Childcare, net of support: single parent, one child",
   "description": "What full-time childcare for one child aged 2 or 3 costs a single parent on the average wage a year after childcare benefits, tax breaks and other benefit changes (OECD net childcare cost).",
   "value": 2452,
   "text": "€2,452 a year",
   "unit": "EUR/year",
   "period": "2026",
   "level": "country",
   "retrieved": "2026-11-04T23:14:49.881Z",
   "method": "source",
   "sources": [
    {
     "id": "oecd-childcare",
     "name": "OECD Tax-Benefit Models: net childcare costs",
     "publisher": "OECD",
     "url": "https://www.oecd.org/en/data/indicators/net-childcare-costs.html",
     "licence": "OECD terms for data (any use, with citation)",
     "licenceUrl": "https://www.oecd.org/en/about/terms-conditions.html"
    }
   ],
   "note": "Net cost after childcare benefits, tax breaks and other benefit changes: single parent on the average wage",
   "levelText": "Spain-wide"
  },
  {
   "metric": "childcare_net_single_2",
   "label": "Childcare, net of support: single parent, two children",
   "description": "What full-time childcare for two children aged 2 and 3 costs a single parent on the average wage a year after childcare benefits, tax breaks and other benefit changes (OECD net childcare cost).",
   "value": 2452,
   "text": "€2,452 a year",
   "unit": "EUR/year",
   "period": "2026",
   "level": "country",
   "retrieved": "2026-11-04T23:14:49.881Z",
   "method": "source",
   "sources": [
    {
     "id": "oecd-childcare",
     "name": "OECD Tax-Benefit Models: net childcare costs",
     "publisher": "OECD",
     "url": "https://www.oecd.org/en/data/indicators/net-childcare-costs.html",
     "licence": "OECD terms for data (any use, with citation)",
     "licenceUrl": "https://www.oecd.org/en/about/terms-conditions.html"
    }
   ],
   "note": "Net cost after childcare benefits, tax breaks and other benefit changes: single parent on the average wage",
   "levelText": "Spain-wide"
  },
  {
   "metric": "health_oop",
   "label": "Out-of-pocket health spending",
   "description": "What people pay for health care themselves each year, per person, on average across the country: deductibles, co-payments and care not covered, but not insurance premiums.",
   "value": 648,
   "text": "US$648 a year per person",
   "unit": "USD/year per person",
   "period": "2023",
   "level": "country",
   "retrieved": "2026-11-04",
   "method": "source",
   "sources": [
    {
     "id": "worldbank-wdi",
     "name": "World Development Indicators",
     "publisher": "World Bank",
     "url": "https://databank.worldbank.org/source/world-development-indicators",
     "licence": "CC-BY-4.0",
     "licenceUrl": "https://datacatalog.worldbank.org/public-licenses"
    }
   ],
   "note": "Out-of-pocket health expenditure per person, current US dollars (WHO Global Health Expenditure Database via World Bank)",
   "levelText": "Spain-wide"
  },
  {
   "metric": "annual_leave",
   "label": "Paid holiday by law",
   "description": "The fewest paid days of holiday an employer must give a full-time employee on a five-day week, from the country's labour law; contracts and collective agreements often give more.",
   "value": 21.428571428571427,
   "text": "21 working days a year",
   "unit": "working days a year",
   "period": "2026",
   "level": "country",
   "retrieved": "2026-11-04T23:14:54.070Z",
   "method": "source",
   "sources": [
    {
     "id": "labour-law",
     "name": "Paid holiday by law, from the labour codes cited",
     "publisher": "Borgo contributors",
     "url": "https://github.com/ABCastor/borgo/blob/main/src/fetch/family.ts",
     "licence": "CC-BY-4.0",
     "licenceUrl": "https://creativecommons.org/licenses/by/4.0/"
    }
   ],
   "note": "30 calendar days, represented as 30 × 5/7 five-day-week equivalent days, not an exact workday entitlement (Estatuto de los Trabajadores, art. 38)",
   "levelText": "Spain-wide"
  },
  {
   "metric": "public_holidays",
   "label": "Public holidays on working days",
   "description": "Public holidays that fall on a weekday this year, nationwide plus those of the city's region; a holiday on a weekend is lost unless the law moves it.",
   "value": 8,
   "text": "8 days a year",
   "unit": "days a year",
   "period": "2026",
   "level": "region",
   "retrieved": "2026-11-04T23:14:53.642Z",
   "method": "source",
   "sources": [
    {
     "id": "nager-date",
     "name": "Nager.Date public holidays",
     "publisher": "Nager.Date (open-source project)",
     "url": "https://date.nager.at/",
     "licence": "MIT",
     "licenceUrl": "https://github.com/nager/Nager.Date/blob/main/LICENSE.md"
    }
   ],
   "note": "Public holidays on Monday to Friday in 2026, nationwide and in ES-MD",
   "levelText": "region"
  },
  {
   "metric": "leave_mothers",
   "label": "Paid leave for mothers",
   "description": "Paid maternity, parental and home-care leave a mother can take, counted as weeks at full pay (weeks times the average payment rate for someone on average earnings).",
   "value": 16,
   "text": "16.0 weeks at full pay",
   "unit": "weeks at full pay",
   "period": "2025",
   "level": "country",
   "retrieved": "2026-11-04T23:14:52.653Z",
   "method": "source",
   "sources": [
    {
     "id": "oecd-family-db",
     "name": "OECD Family Database: parental leave systems (PF2.1)",
     "publisher": "OECD",
     "url": "https://www.oecd.org/en/data/datasets/oecd-family-database.html",
     "licence": "OECD terms for data (any use, with citation)",
     "licenceUrl": "https://www.oecd.org/en/about/terms-conditions.html"
    }
   ],
   "note": "Paid maternity, parental and home-care leave available to mothers, in full-rate-equivalent weeks (OECD PF2.1.A, policies in April 2025; not a current-year statutory entitlement)",
   "levelText": "Spain-wide"
  },
  {
   "metric": "leave_fathers",
   "label": "Paid leave for fathers",
   "description": "Paid paternity leave and parental leave reserved for fathers, counted as weeks at full pay (weeks times the average payment rate for someone on average earnings).",
   "value": 16,
   "text": "16.0 weeks at full pay",
   "unit": "weeks at full pay",
   "period": "2025",
   "level": "country",
   "retrieved": "2026-11-04T23:14:52.653Z",
   "method": "source",
   "sources": [
    {
     "id": "oecd-family-db",
     "name": "OECD Family Database: parental leave systems (PF2.1)",
     "publisher": "OECD",
     "url": "https://www.oecd.org/en/data/datasets/oecd-family-database.html",
     "licence": "OECD terms for data (any use, with citation)",
     "licenceUrl": "https://www.oecd.org/en/about/terms-conditions.html"
    }
   ],
   "note": "Paid paternity leave and leave reserved for fathers, in full-rate-equivalent weeks (OECD PF2.1.B, policies in April 2025; not a current-year statutory entitlement)",
   "levelText": "Spain-wide"
  },
  {
   "metric": "price_level",
   "label": "Price level",
   "description": "How expensive everyday consumption is, compared with the United States at market exchange rates.",
   "value": 68.7,
   "text": "68.7 index, US = 100",
   "unit": "index, US = 100",
   "period": "2025",
   "level": "country",
   "retrieved": "2026-10-27",
   "method": "source",
   "sources": [
    {
     "id": "worldbank-wdi",
     "name": "World Development Indicators",
     "publisher": "World Bank",
     "url": "https://databank.worldbank.org/source/world-development-indicators",
     "licence": "CC-BY-4.0",
     "licenceUrl": "https://datacatalog.worldbank.org/public-licenses"
    }
   ],
   "note": "Private consumption PPP over the market exchange rate; United States = 100",
   "levelText": "Spain-wide"
  },
  {
   "metric": "wet_days",
   "label": "Wet days",
   "description": "Days a year with at least 1 mm of rain or snow, enough to wet the ground.",
   "value": 76,
   "text": "76 days a year",
   "unit": "days a year",
   "period": "2021-2025",
   "level": "city",
   "retrieved": "2026-10-28T01:02:51.803Z",
   "method": "source",
   "sources": [
    {
     "id": "open-meteo-era5",
     "name": "Historical weather (ERA5 reanalysis)",
     "publisher": "Open-Meteo, Copernicus Climate Change Service (ECMWF)",
     "url": "https://open-meteo.com/en/docs/historical-weather-api",
     "licence": "CC-BY-4.0",
     "licenceUrl": "https://open-meteo.com/en/license"
    }
   ],
   "note": "ERA5 reanalysis at the city's coordinates (a grid about 25 km wide)",
   "levelText": "city"
  },
  {
   "metric": "sunshine_hours",
   "label": "Sunshine",
   "description": "Hours a year of bright, direct sun, measured at a weather station by the WMO definition: direct sunlight of at least 120 W/m², roughly when the sun is strong enough to cast a sharp shadow.",
   "value": 2929,
   "text": "2,929 hours a year",
   "unit": "hours a year",
   "period": "1991-2020",
   "level": "city",
   "retrieved": "2026-10-27T11:14:13.769Z",
   "method": "source",
   "sources": [
    {
     "id": "wmo-normals",
     "name": "WMO Climatological Standard Normals 1991-2020",
     "publisher": "World Meteorological Organization, archived by NOAA NCEI",
     "url": "https://www.ncei.noaa.gov/products/wmo-climate-normals",
     "licence": "No licence attached; NCEI public access, citation requested (WMO Unified Data Policy)",
     "licenceUrl": "https://www.ncei.noaa.gov/access/metadata/landing-page/bin/iso?id=gov.noaa.nodc:0253808"
    }
   ],
   "note": "Measured at MADRIDCUATROVIENTOS, 8 km away at 690 m (WMO definition: direct sunlight of at least 120 W/m²)",
   "levelText": "city"
  },
  {
   "metric": "homicide_rate",
   "label": "Homicides",
   "description": "People killed on purpose each year per 100,000 residents, a common proxy for violent crime.",
   "value": 0.69,
   "text": "0.69 per 100,000",
   "unit": "per 100,000",
   "period": "2023",
   "level": "country",
   "retrieved": "2026-10-27",
   "method": "source",
   "sources": [
    {
     "id": "worldbank-wdi",
     "name": "World Development Indicators",
     "publisher": "World Bank",
     "url": "https://databank.worldbank.org/source/world-development-indicators",
     "licence": "CC-BY-4.0",
     "licenceUrl": "https://datacatalog.worldbank.org/public-licenses"
    }
   ],
   "note": "Intentional homicides per 100,000 people (UNODC via World Bank)",
   "levelText": "Spain-wide"
  },
  {
   "metric": "life_expectancy",
   "label": "Life expectancy",
   "description": "How many years a baby born now would live on average if today's death rates held, for the whole country.",
   "value": 83.9,
   "text": "83.9 years",
   "unit": "years",
   "period": "2024",
   "level": "country",
   "retrieved": "2026-10-27",
   "method": "source",
   "sources": [
    {
     "id": "worldbank-wdi",
     "name": "World Development Indicators",
     "publisher": "World Bank",
     "url": "https://databank.worldbank.org/source/world-development-indicators",
     "licence": "CC-BY-4.0",
     "licenceUrl": "https://datacatalog.worldbank.org/public-licenses"
    }
   ],
   "levelText": "Spain-wide"
  },
  {
   "metric": "life_evaluation",
   "label": "Life satisfaction",
   "description": "How satisfied people say they are with their life as a whole, on a scale from 0 to 10, averaged over the country.",
   "value": 7.2,
   "text": "7.2 of 10",
   "unit": "of 10",
   "period": "2025",
   "level": "country",
   "retrieved": "2026-10-27",
   "method": "source",
   "sources": [
    {
     "id": "oecd-wellbeing",
     "name": "OECD Well-being Database (How's Life?)",
     "publisher": "OECD",
     "url": "https://www.oecd.org/en/data/datasets/well-being-database.html",
     "licence": "OECD terms for data (any use, with citation)",
     "licenceUrl": "https://www.oecd.org/en/about/terms-conditions.html"
    }
   ],
   "note": "Average answer to how satisfied people are with their life as a whole, 0 to 10",
   "levelText": "Spain-wide"
  },
  {
   "metric": "research_output",
   "label": "Research output",
   "description": "Papers, patents and datasets published in a year by institutions in the city, per 100,000 residents.",
   "value": 2812,
   "text": "2,812 works per 100k residents",
   "unit": "works per 100k residents",
   "period": "2025",
   "level": "city",
   "retrieved": "2026-10-27",
   "method": "source",
   "sources": [
    {
     "id": "openalex",
     "name": "OpenAlex institutions",
     "publisher": "OurResearch",
     "url": "https://openalex.org/",
     "licence": "CC0-1.0",
     "licenceUrl": "https://creativecommons.org/publicdomain/zero/1.0/"
    }
   ],
   "note": "91,546 works by 567 institutions in Madrid",
   "levelText": "city"
  },
  {
   "metric": "builder_density",
   "label": "Research output per resident",
   "description": "Research output of institutions in the city, per resident, on a 0 to 100 scale.",
   "value": 58,
   "text": "58 of 100",
   "unit": "of 100",
   "period": "2025",
   "level": "city",
   "retrieved": "2026-10-27",
   "method": "source",
   "sources": [
    {
     "id": "openalex",
     "name": "OpenAlex institutions",
     "publisher": "OurResearch",
     "url": "https://openalex.org/",
     "licence": "CC0-1.0",
     "licenceUrl": "https://creativecommons.org/publicdomain/zero/1.0/"
    }
   ],
   "note": "log scale: 100 works per 100k residents = 0, 30,000 = 100",
   "levelText": "city"
  },
  {
   "metric": "universities",
   "label": "Universities and colleges",
   "description": "Higher-education organisations registered in the city in the Research Organization Registry, so counts follow how each country registers its institutions.",
   "value": 42,
   "text": "42 organisations",
   "unit": "organisations",
   "period": "2026-10-27",
   "level": "city",
   "retrieved": "2026-10-27",
   "method": "source",
   "sources": [
    {
     "id": "ror",
     "name": "Research Organization Registry",
     "publisher": "ROR",
     "url": "https://ror.org/",
     "licence": "CC0-1.0",
     "licenceUrl": "https://ror.org/registry/"
    }
   ],
   "note": "ROR organisations of type education (universities, colleges, schools of higher education)",
   "levelText": "city"
  },
  {
   "metric": "research_institutes",
   "label": "Research institutes",
   "description": "Research facilities (institutes, laboratories, observatories) registered in the city in the Research Organization Registry; national research councils that register every lab inflate some cities (Paris, Tokyo).",
   "value": 94,
   "text": "94 organisations",
   "unit": "organisations",
   "period": "2026-10-27",
   "level": "city",
   "retrieved": "2026-10-27",
   "method": "source",
   "sources": [
    {
     "id": "ror",
     "name": "Research Organization Registry",
     "publisher": "ROR",
     "url": "https://ror.org/",
     "licence": "CC0-1.0",
     "licenceUrl": "https://ror.org/registry/"
    }
   ],
   "note": "ROR organisations of type facility (research institutes, laboratories, observatories)",
   "levelText": "city"
  },
  {
   "metric": "founders_running_club",
   "label": "Founders Running Club",
   "description": "Whether the Founders Running Club, a running community for founders, lists a chapter in the city.",
   "value": 0,
   "text": "no chapter",
   "unit": "1 = a chapter",
   "period": "2026-10-27",
   "level": "city",
   "retrieved": "2026-10-27",
   "method": "source",
   "sources": [
    {
     "id": "foundersrc",
     "name": "Founders Running Club communities",
     "publisher": "Founders Running Club",
     "url": "https://foundersrc.com/communities",
     "licence": "Public listing (facts of presence only; no licence stated)"
    }
   ],
   "note": "No chapter listed on https://foundersrc.com/communities",
   "levelText": "city"
  },
  {
   "metric": "public_pools",
   "label": "Public swimming pools (official)",
   "description": "Public swimming pools, indoor and outdoor, per 100,000 residents, as reported by the city to the Eurostat Urban Audit.",
   "value": 1.8,
   "text": "1.8 per 100,000",
   "unit": "per 100,000",
   "period": "2011",
   "level": "city",
   "retrieved": "2026-11-05",
   "method": "source",
   "sources": [
    {
     "id": "eurostat-urban",
     "name": "Urban Audit: cities and greater cities",
     "publisher": "Eurostat",
     "url": "https://ec.europa.eu/eurostat/web/cities/database",
     "licence": "Eurostat reuse with acknowledgement (Decision 2011/833/EU)",
     "licenceUrl": "https://ec.europa.eu/eurostat/web/main/help/copyright-notice"
    }
   ],
   "note": "Madrid (greater city): the city and its contiguous urban area; 57 in total",
   "levelText": "city"
  },
  {
   "metric": "green_share",
   "label": "Green urban areas (official)",
   "description": "Share of the city's area that is green urban space or sports and leisure land, from the EU Urban Atlas via Eurostat.",
   "value": 10.87,
   "text": "10.9 % of city area",
   "unit": "% of city area",
   "period": "2014",
   "level": "city",
   "retrieved": "2026-11-05",
   "method": "source",
   "sources": [
    {
     "id": "eurostat-urban",
     "name": "Urban Audit: cities and greater cities",
     "publisher": "Eurostat",
     "url": "https://ec.europa.eu/eurostat/web/cities/database",
     "licence": "Eurostat reuse with acknowledgement (Decision 2011/833/EU)",
     "licenceUrl": "https://ec.europa.eu/eurostat/web/main/help/copyright-notice"
    }
   ],
   "note": "Madrid (greater city): the city and its contiguous urban area",
   "levelText": "city"
  },
  {
   "metric": "sea_km",
   "label": "Distance to the sea",
   "description": "Straight-line distance from the centre to the open-sea coast; lakes and tidal rivers do not count.",
   "value": 303,
   "text": "303 km",
   "unit": "km",
   "period": "Natural Earth 5.1",
   "level": "city",
   "retrieved": "2026-10-27",
   "method": "source",
   "sources": [
    {
     "id": "natural-earth",
     "name": "Natural Earth (coastline, land, countries and populated places)",
     "publisher": "Natural Earth",
     "url": "https://www.naturalearthdata.com/",
     "licence": "Public domain",
     "licenceUrl": "https://www.naturalearthdata.com/about/terms-of-use/"
    }
   ],
   "note": "straight line from the centre to the open-sea coastline (lakes excluded)",
   "levelText": "city"
  },
  {
   "metric": "mountain_km",
   "label": "Distance to the mountains",
   "description": "Straight-line distance from the centre to ground that rises 1,000 m above it; 300 means none within 300 km.",
   "value": 43,
   "text": "43 km",
   "unit": "km",
   "period": "terrain tiles 2017",
   "level": "city",
   "retrieved": "2026-10-27",
   "method": "source",
   "sources": [
    {
     "id": "terrain-tiles",
     "name": "Terrain Tiles (Terrarium) on AWS Open Data",
     "publisher": "Mapzen / AWS Open Data",
     "url": "https://registry.opendata.aws/terrain-tiles/",
     "licence": "Public domain (USGS, NOAA) and Open Government Licence – Canada, with attribution",
     "licenceUrl": "https://github.com/tilezen/joerd/blob/master/docs/attribution.md"
    }
   ],
   "note": "1804 m at 40.78, -3.86; the centre sits at about 666 m",
   "levelText": "city"
  },
  {
   "metric": "airport_km",
   "label": "Nearest major airport",
   "description": "Straight-line distance from the centre to the nearest large airport with scheduled flights.",
   "value": 14,
   "text": "14 km",
   "unit": "km",
   "period": "2026-10-27",
   "level": "city",
   "retrieved": "2026-10-27",
   "method": "source",
   "sources": [
    {
     "id": "ourairports",
     "name": "OurAirports airports",
     "publisher": "OurAirports",
     "url": "https://ourairports.com/data/",
     "licence": "Public domain",
     "licenceUrl": "https://ourairports.com/data/"
    }
   ],
   "note": "Adolfo Suárez Madrid–Barajas Airport (MAD), straight line from the centre",
   "levelText": "city"
  },
  {
   "metric": "airports_100km",
   "label": "Airports within 100 km",
   "description": "Airports with scheduled passenger flights within 100 km of the centre.",
   "value": 1,
   "text": "1 airport",
   "unit": "airports",
   "period": "2026-10-27",
   "level": "city",
   "retrieved": "2026-10-27",
   "method": "source",
   "sources": [
    {
     "id": "ourairports",
     "name": "OurAirports airports",
     "publisher": "OurAirports",
     "url": "https://ourairports.com/data/",
     "licence": "Public domain",
     "licenceUrl": "https://ourairports.com/data/"
    }
   ],
   "note": "MAD",
   "levelText": "city"
  },
  {
   "metric": "commute_minutes",
   "label": "Commute time",
   "description": "Average time of a journey to work, one way.",
   "value": 31.21,
   "text": "31 minutes",
   "unit": "minutes",
   "period": "2011",
   "level": "city",
   "retrieved": "2026-11-05",
   "method": "source",
   "sources": [
    {
     "id": "eurostat-urban",
     "name": "Urban Audit: cities and greater cities",
     "publisher": "Eurostat",
     "url": "https://ec.europa.eu/eurostat/web/cities/database",
     "licence": "Eurostat reuse with acknowledgement (Decision 2011/833/EU)",
     "licenceUrl": "https://ec.europa.eu/eurostat/web/main/help/copyright-notice"
    }
   ],
   "note": "Madrid (greater city): the city and its contiguous urban area",
   "levelText": "city"
  },
  {
   "metric": "road_deaths",
   "label": "Road deaths",
   "description": "People killed in road accidents per 10,000 residents a year.",
   "value": 0.15,
   "text": "0.15 per 10,000",
   "unit": "per 10,000",
   "period": "2024",
   "level": "city",
   "retrieved": "2026-11-05",
   "method": "source",
   "sources": [
    {
     "id": "eurostat-urban",
     "name": "Urban Audit: cities and greater cities",
     "publisher": "Eurostat",
     "url": "https://ec.europa.eu/eurostat/web/cities/database",
     "licence": "Eurostat reuse with acknowledgement (Decision 2011/833/EU)",
     "licenceUrl": "https://ec.europa.eu/eurostat/web/main/help/copyright-notice"
    }
   ],
   "note": "Madrid (greater city): the city and its contiguous urban area",
   "levelText": "city"
  },
  {
   "metric": "foreign_born_share",
   "label": "Born abroad",
   "description": "Share of residents born in another country: a measure of how international the city is.",
   "value": 26.1,
   "text": "26.1 % of residents",
   "unit": "% of residents",
   "period": "2024",
   "level": "city",
   "retrieved": "2026-11-05",
   "method": "source",
   "sources": [
    {
     "id": "eurostat-urban",
     "name": "Urban Audit: cities and greater cities",
     "publisher": "Eurostat",
     "url": "https://ec.europa.eu/eurostat/web/cities/database",
     "licence": "Eurostat reuse with acknowledgement (Decision 2011/833/EU)",
     "licenceUrl": "https://ec.europa.eu/eurostat/web/main/help/copyright-notice"
    }
   ],
   "note": "Madrid (greater city): the city and its contiguous urban area",
   "levelText": "city"
  },
  {
   "metric": "english_share",
   "label": "English speakers",
   "description": "Share of the country's population that speaks English at any level; cities usually speak more than the national figure.",
   "value": 24,
   "text": "24 % of population",
   "unit": "% of population",
   "period": "CLDR 49",
   "level": "country",
   "retrieved": "2026-10-27",
   "method": "source",
   "sources": [
    {
     "id": "cldr",
     "name": "CLDR territory information",
     "publisher": "Unicode Consortium",
     "url": "https://cldr.unicode.org/",
     "licence": "Unicode-3.0",
     "licenceUrl": "https://www.unicode.org/license.txt"
    }
   ],
   "note": "share of the population that speaks English, any level",
   "levelText": "Spain-wide"
  },
  {
   "metric": "english_official",
   "label": "English is official",
   "description": "Whether English is an official or de facto official language of the country.",
   "value": 0,
   "text": "no",
   "unit": "1 = yes",
   "period": "CLDR 49",
   "level": "country",
   "retrieved": "2026-10-27",
   "method": "source",
   "sources": [
    {
     "id": "cldr",
     "name": "CLDR territory information",
     "publisher": "Unicode Consortium",
     "url": "https://cldr.unicode.org/",
     "licence": "Unicode-3.0",
     "licenceUrl": "https://www.unicode.org/license.txt"
    }
   ],
   "note": "English is not an official language",
   "levelText": "Spain-wide"
  },
  {
   "metric": "download_mbps",
   "label": "Internet speed",
   "description": "Typical download speed of home and mobile connections in speed tests (M-Lab NDT, one TCP stream, so lower than commercial tests); compare cities with each other.",
   "value": 55.8,
   "text": "56 Mbit/s",
   "unit": "Mbit/s",
   "period": "2023",
   "level": "city",
   "retrieved": "2026-10-27",
   "method": "source",
   "sources": [
    {
     "id": "mlab",
     "name": "M-Lab NDT statistics (daily city aggregates)",
     "publisher": "Measurement Lab",
     "url": "https://www.measurementlab.net/data/",
     "licence": "CC0-1.0",
     "licenceUrl": "https://creativecommons.org/publicdomain/zero/1.0/"
    }
   ],
   "note": "median of daily median NDT download speeds, 336 days, 1,517,524 tests (Madrid, ES-MD)",
   "levelText": "city"
  },
  {
   "metric": "degree_share",
   "label": "Adults with a degree",
   "description": "Share of adults whose highest qualification is tertiary, a university degree or a vocational diploma above school level (ISCED levels 5 to 8), counting people aged 25 to 64 for a city or region and 25 or older for a country.",
   "value": 48.4,
   "text": "48.4 % of adults",
   "unit": "% of adults",
   "period": "2018",
   "level": "city",
   "retrieved": "2026-11-05",
   "method": "source",
   "sources": [
    {
     "id": "eurostat-urban",
     "name": "Urban Audit: cities and greater cities",
     "publisher": "Eurostat",
     "url": "https://ec.europa.eu/eurostat/web/cities/database",
     "licence": "Eurostat reuse with acknowledgement (Decision 2011/833/EU)",
     "licenceUrl": "https://ec.europa.eu/eurostat/web/main/help/copyright-notice"
    }
   ],
   "note": "Madrid (greater city): the city and its contiguous urban area",
   "levelText": "city"
  },
  {
   "metric": "github_developers",
   "label": "Developers on GitHub",
   "description": "GitHub accounts whose profile names the city as their location, per 1,000 residents: a rough count of people who write software there, since many leave the field empty and some name a city they only live near.",
   "value": 13.2,
   "text": "13.2 per 1,000 residents",
   "unit": "per 1,000 residents",
   "period": "2026-11-05",
   "level": "city",
   "retrieved": "2026-11-05",
   "method": "source",
   "sources": [
    {
     "id": "github",
     "name": "GitHub user search",
     "publisher": "GitHub",
     "url": "https://docs.github.com/en/rest/search/search#search-users",
     "licence": "No data licence: only total counts of profiles are stored (GitHub Acceptable Use Policies, section 7)",
     "licenceUrl": "https://docs.github.com/en/site-policy/acceptable-use-policies/github-acceptable-use-policies#7-information-usage-restrictions"
    }
   ],
   "note": "43,076 accounts whose location names \"Madrid\", over 3,255,944 residents",
   "levelText": "city"
  },
  {
   "metric": "city_edge_km",
   "label": "Out of the dense city",
   "description": "Straight-line distance from the centre to the nearest edge of the dense city (the GHSL urban centre: touching 1 km squares with at least 1,500 residents per km²) in a direction that leads on over land, so roughly what a cyclist rides before the dense city gives way to suburbs, farmland, hills or a large park.",
   "value": 2.8,
   "text": "2.8 km",
   "unit": "km",
   "period": "2025",
   "level": "city",
   "retrieved": "2026-11-05",
   "method": "source",
   "sources": [
    {
     "id": "ghsl-ucdb",
     "name": "GHS Urban Centre Database 2025 (R2024A), general characteristics",
     "publisher": "European Commission, Joint Research Centre (GHSL)",
     "url": "https://human-settlement.emergency.copernicus.eu/ghs_ucdb_2024.php",
     "licence": "CC-BY-4.0",
     "licenceUrl": "https://creativecommons.org/licenses/by/4.0/"
    }
   ],
   "note": "Madrid urban centre (5,680,137 people, 2025): nearest edge 2.8 km to the west; half the directions over land end within 12.2 km",
   "levelText": "city"
  },
  {
   "metric": "abortion_law",
   "label": "Abortion in law",
   "description": "On what grounds the law allows a pregnancy to be ended: 0 not at all or only to save the woman's life, 1 also to protect her health or after rape or incest, 2 also on broad social or economic grounds, 3 on request but only in the first weeks (under 10), 4 on request to 10 weeks or later.",
   "value": 4,
   "text": "on request, 10 weeks or later",
   "unit": "0 to 4",
   "period": "2026-11-05",
   "level": "country",
   "retrieved": "2026-11-05",
   "method": "source",
   "sources": [
    {
     "id": "abortion-law",
     "name": "Abortion in law, from the statutes cited",
     "publisher": "Borgo contributors",
     "url": "https://github.com/ABCastor/borgo/blob/main/src/fetch/rights-law.ts",
     "licence": "CC-BY-4.0",
     "licenceUrl": "https://creativecommons.org/licenses/by/4.0/"
    }
   ],
   "note": "On request to 14 weeks (Ley Orgánica 2/2010, art. 14, as amended by Ley Orgánica 1/2023; checked against the source linked on 2026-11-05)",
   "levelText": "Spain-wide"
  },
  {
   "metric": "doctors",
   "label": "Doctors",
   "description": "Practising physicians per 1,000 people in the country, generalists and specialists (WHO figures).",
   "value": 4.29,
   "text": "4.3 per 1,000 people",
   "unit": "per 1,000 people",
   "period": "2022",
   "level": "country",
   "retrieved": "2026-11-05",
   "method": "source",
   "sources": [
    {
     "id": "worldbank-wdi",
     "name": "World Development Indicators",
     "publisher": "World Bank",
     "url": "https://databank.worldbank.org/source/world-development-indicators",
     "licence": "CC-BY-4.0",
     "licenceUrl": "https://datacatalog.worldbank.org/public-licenses"
    }
   ],
   "note": "Physicians per 1,000 people (WHO Global Health Workforce Statistics via World Bank)",
   "levelText": "Spain-wide"
  },
  {
   "metric": "unemployment",
   "label": "Unemployment",
   "description": "Share of people who want work and are looking for it but have none, in the country (ILO modelled estimate).",
   "value": 10.4,
   "text": "10.4 % of the labour force",
   "unit": "% of the labour force",
   "period": "2025",
   "level": "country",
   "retrieved": "2026-11-05",
   "method": "source",
   "sources": [
    {
     "id": "worldbank-wdi",
     "name": "World Development Indicators",
     "publisher": "World Bank",
     "url": "https://databank.worldbank.org/source/world-development-indicators",
     "licence": "CC-BY-4.0",
     "licenceUrl": "https://datacatalog.worldbank.org/public-licenses"
    }
   ],
   "note": "Unemployment, % of the labour force, ILO modelled estimate (via World Bank)",
   "levelText": "Spain-wide"
  },
  {
   "metric": "clean_government",
   "label": "Control of corruption",
   "description": "How far public power is kept from private gain, petty and grand corruption alike, as experts, firms and households perceive it in the country: the World Bank's governance estimate, roughly -2.5 (weak) to 2.5 (strong).",
   "value": 0.65,
   "text": "0.65 -2.5 to 2.5",
   "unit": "-2.5 to 2.5",
   "period": "2025",
   "level": "country",
   "retrieved": "2026-11-05",
   "method": "source",
   "sources": [
    {
     "id": "worldbank-wgi",
     "name": "Worldwide Governance Indicators",
     "publisher": "World Bank",
     "url": "https://www.worldbank.org/en/publication/worldwide-governance-indicators",
     "licence": "CC-BY-4.0",
     "licenceUrl": "https://datacatalog.worldbank.org/search/dataset/0038026/worldwide-governance-indicators"
    }
   ],
   "note": "Control of corruption, governance estimate (Worldwide Governance Indicators)",
   "levelText": "Spain-wide"
  },
  {
   "metric": "same_sex_couples",
   "label": "Same-sex couples in law",
   "description": "What the law offers same-sex couples: 0 sexual relations between people of the same sex are a crime, 1 legal but national law offers no union, 2 civil union or registered partnership, 3 marriage.",
   "value": 3,
   "text": "marriage",
   "unit": "0 to 3",
   "period": "2026",
   "level": "country",
   "retrieved": "2026-11-05",
   "method": "source",
   "sources": [
    {
     "id": "couples-law",
     "name": "Same-sex couples in law, from the statutes cited",
     "publisher": "Borgo contributors",
     "url": "https://github.com/ABCastor/borgo/blob/main/src/fetch/rights-law.ts",
     "licence": "CC-BY-4.0",
     "licenceUrl": "https://creativecommons.org/licenses/by/4.0/"
    }
   ],
   "note": "Marriage: Ley 13/2005 (checked against the source linked on 2026-11-05)",
   "levelText": "Spain-wide"
  }
 ],
 "gaps": [
  {
   "metric": "rent_1bed",
   "label": "Rent, one bedroom"
  },
  {
   "metric": "rent_3bed",
   "label": "Rent, three bedrooms"
  },
  {
   "metric": "childcare_cost",
   "label": "Your childcare cost"
  },
  {
   "metric": "health_premium",
   "label": "Health insurance premium"
  },
  {
   "metric": "pm25",
   "label": "Fine dust (PM2.5)"
  },
  {
   "metric": "coworking",
   "label": "Coworking spaces"
  },
  {
   "metric": "climbing_gyms",
   "label": "Climbing gyms"
  },
  {
   "metric": "swimming_pools",
   "label": "Public swimming pools"
  },
  {
   "metric": "hackerspaces",
   "label": "Hackerspaces and makerspaces"
  },
  {
   "metric": "green_space_10km",
   "label": "Green space"
  },
  {
   "metric": "rail_stations",
   "label": "Rail and metro stations"
  },
  {
   "metric": "cycle_paths_km",
   "label": "Cycle paths"
  },
  {
   "metric": "transit_commute_share",
   "label": "Commuting by public transport"
  },
  {
   "metric": "transit_pass",
   "label": "Monthly transit pass"
  },
  {
   "metric": "walkable_share",
   "label": "Everyday needs on foot"
  },
  {
   "metric": "bike_network",
   "label": "Cycle network"
  },
  {
   "metric": "active_commute_share",
   "label": "Walking or cycling to work"
  },
  {
   "metric": "politics_lr",
   "label": "Politics, left to right"
  }
 ],
 "climate": {
  "months": [
   "Jan",
   "Feb",
   "Mar",
   "Apr",
   "May",
   "Jun",
   "Jul",
   "Aug",
   "Sep",
   "Oct",
   "Nov",
   "Dec"
  ],
  "tempHighC": [
   10.5,
   14.2,
   15.7,
   19.8,
   24.5,
   30.2,
   34.7,
   34.6,
   26.5,
   22.3,
   14.6,
   11.3
  ],
  "tempLowC": [
   1.5,
   3.2,
   5.3,
   7.8,
   11.7,
   17.2,
   20.2,
   20.7,
   14.9,
   11.9,
   6.2,
   3.6
  ],
  "wetDays": [
   7.2,
   6,
   11.6,
   8,
   6.4,
   5.6,
   0.4,
   1.8,
   6.4,
   8.8,
   6.4,
   7.2
  ],
  "daylightHours": [
   9.58,
   10.57,
   11.9,
   13.28,
   14.45,
   15.05,
   14.75,
   13.73,
   12.39,
   11.02,
   9.87,
   9.3
  ],
  "period": "2021-2025",
  "source": {
   "id": "open-meteo-era5",
   "name": "Historical weather (ERA5 reanalysis)",
   "publisher": "Open-Meteo, Copernicus Climate Change Service (ECMWF)",
   "url": "https://open-meteo.com/en/docs/historical-weather-api",
   "licence": "CC-BY-4.0",
   "licenceUrl": "https://open-meteo.com/en/license"
  }
 },
 "daylight": {
  "shortestDayHours": 9.28,
  "longestDayHours": 15.06,
  "method": "computed from latitude"
 },
 "takeHome": {
  "currency": "EUR",
  "year": 2026,
  "scope": "Employee resident in Spain (common regime): IRPF state and regional halves (Madrid, Catalonia, Valencian Community, Andalusia), personal minimum, work-income reductions, minimum-wage credit, social security.",
  "sources": [
   {
    "label": "BOE: Ley 35/2006 del IRPF, consolidated (arts. 19, 20, 57, 63; DA 61 as amended by RDL 5/2026)",
    "url": "https://www.boe.es/buscar/act.php?id=BOE-A-2006-20764"
   },
   {
    "label": "BOE: Comunidad de Madrid, Decreto Legislativo 1/2010, arts. 1-2 (scale and minimum)",
    "url": "https://www.boe.es/buscar/act.php?id=BOCM-m-2010-90068"
   },
   {
    "label": "BOE: Catalunya, Decreto Legislativo 1/2024 (Codi tributari, llibre sisè), arts. 611-1 and 611-2",
    "url": "https://www.boe.es/buscar/act.php?id=BOE-A-2024-6951"
   },
   {
    "label": "BOE: Comunitat Valenciana, Ley 13/1997, arts. 2 and 2 bis (2026 scale from Ley 5/2026)",
    "url": "https://www.boe.es/buscar/act.php?id=BOE-A-1998-8202"
   },
   {
    "label": "BOE: Andalucía, Ley 5/2021 de Tributos Cedidos, arts. 23 and 23 bis",
    "url": "https://www.boe.es/buscar/act.php?id=BOE-A-2021-17915"
   },
   {
    "label": "Seguridad Social: bases y tipos de cotización 2026",
    "url": "https://www.seg-social.es/wps/portal/wss/internet/Trabajadores/CotizacionRecaudacionTrabajadores/36537"
   },
   {
    "label": "BOE: Ley General de la Seguridad Social, DT 42 (solidarity) and DT 43 (MEI)",
    "url": "https://www.boe.es/buscar/act.php?id=BOE-A-2015-11724"
   },
   {
    "label": "AEAT: Manual práctico de Renta 2025, worked example of the state and regional quotas",
    "url": "https://sede.agenciatributaria.gob.es/Sede/ayuda/manuales-videos-folletos/manuales-practicos/irpf-2025/c15-calculo-impuesto-determinacion-cuotas-integras/ejemplo-practico-calculo-cuotas-integras-autonomica.html"
   }
  ],
  "caveats": [
   "Regional halves are exact for Madrid, Catalonia, the Valencian Community and Andalusia; other regions are assumed to mirror the state half. Basque Country and Navarre have their own systems and are not modelled.",
   "Social security assumes a permanent contract, contributions at actual pay up to the 2026 maximum base (€5,101.20 a month), pay spread evenly over the months.",
   "No regional credits (rent, age, children) and no family minimums. A personal pension plan contribution, set as your pension share, reduces the taxable base within the art. 51-52 limits.",
   "Newcomers: under the special regime (art. 93 LIRPF, the 'Beckham law') a flat-rate setting taxes the whole of gross pay at 24% up to €600,000 and 47% above, with no social security deduction, no work-income reduction, no personal minimum, no pension reduction and no regional half."
  ],
  "local": [],
  "rows": [
   {
    "gross": 30000,
    "net": 23451.98,
    "effectiveRate": 0.21826728933333334
   },
   {
    "gross": 60000,
    "net": 42183.56,
    "effectiveRate": 0.2969406233333334
   },
   {
    "gross": 100000,
    "net": 65227.46,
    "effectiveRate": 0.3477254001479858
   }
  ],
  "completeness": {
   "status": "complete",
   "missing": [],
   "approximations": []
  }
 },
 "freeMovement": {
  "citizensOf": "ES",
  "areas": [
   {
    "id": "EEA",
    "name": "EU and EEA free movement",
    "members": [
     "AT",
     "BE",
     "BG",
     "HR",
     "CY",
     "CZ",
     "DK",
     "EE",
     "FI",
     "FR",
     "DE",
     "GR",
     "HU",
     "IE",
     "IT",
     "LV",
     "LT",
     "LU",
     "MT",
     "NL",
     "PL",
     "PT",
     "RO",
     "SK",
     "SI",
     "SE",
     "IS",
     "LI",
     "NO"
    ],
    "note": "Directive 2004/38/EC, extended to Iceland, Liechtenstein and Norway by the EEA Agreement. Beyond three months a registration is usually required, but no visa or permit to work.",
    "source": {
     "id": "eu-free-movement",
     "name": "Directive 2004/38/EC and the EEA Agreement",
     "publisher": "European Union",
     "url": "https://eur-lex.europa.eu/eli/dir/2004/38/oj",
     "licence": "Borgo's summary of the official text (CC BY 4.0)",
     "licenceUrl": "https://creativecommons.org/licenses/by/4.0/"
    }
   },
   {
    "id": "CH-IN-EU",
    "name": "Swiss-EU free movement",
    "members": [
     "CH"
    ],
    "source": {
     "id": "ch-afmp",
     "name": "Agreement on the Free Movement of Persons (EU-Switzerland)",
     "publisher": "Swiss State Secretariat for Migration",
     "url": "https://www.sem.admin.ch/sem/en/home/themen/fza_schweiz-eu-efta.html",
     "licence": "Borgo's summary of the official text (CC BY 4.0)",
     "licenceUrl": "https://creativecommons.org/licenses/by/4.0/"
    }
   }
  ]
 },
 "defaultProfile": {
  "assumptions": "one person, €60,000 gross a year, a one-bedroom home, everyday spending of €1,200 a month in Lisbon scaled by each country's price level",
  "month": {
   "currency": "EUR",
   "gross": 60000,
   "net": 42183.56,
   "rent": null,
   "rentFigure": null,
   "everyday": 1270.261941448382,
   "everydayHow": "a starting guess, scaled from Lisbon: set your own",
   "childcare": null,
   "health": 48.26599928494816,
   "left": null,
   "missing": [
    "rent"
   ],
   "completeness": {
    "status": "complete",
    "missing": [],
    "approximations": []
   }
  }
 },
 "observations": [
  {
   "metric": "abortion_law",
   "value": 4,
   "period": "2026-11-05",
   "level": "country",
   "source": "abortion-law",
   "retrieved": "2026-11-05",
   "url": "https://www.boe.es/buscar/act.php?id=BOE-A-2010-3514",
   "note": "On request to 14 weeks (Ley Orgánica 2/2010, art. 14, as amended by Ley Orgánica 1/2023; checked against the source linked on 2026-11-05)",
   "sourceName": "Abortion in law, from the statutes cited",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "english_official",
   "value": 0,
   "period": "CLDR 49",
   "level": "country",
   "source": "cldr",
   "retrieved": "2026-10-27",
   "note": "English is not an official language",
   "sourceName": "CLDR territory information",
   "licence": "Unicode-3.0"
  },
  {
   "metric": "english_share",
   "value": 24,
   "period": "CLDR 49",
   "level": "country",
   "source": "cldr",
   "retrieved": "2026-10-27",
   "note": "share of the population that speaks English, any level",
   "sourceName": "CLDR territory information",
   "licence": "Unicode-3.0"
  },
  {
   "metric": "same_sex_couples",
   "value": 3,
   "period": "2026",
   "level": "country",
   "source": "couples-law",
   "retrieved": "2026-11-05",
   "url": "https://www.boe.es/buscar/act.php?id=BOE-A-2005-11364",
   "note": "Marriage: Ley 13/2005 (checked against the source linked on 2026-11-05)",
   "sourceName": "Same-sex couples in law, from the statutes cited",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "degree_share",
   "value": 50,
   "period": "2025",
   "level": "region",
   "source": "eurostat-regions",
   "retrieved": "2026-11-05",
   "note": "Comunidad de Madrid (ES30), aged 25 to 64",
   "sourceName": "Population by educational attainment and NUTS 2 region (edat_lfse_04)",
   "licence": "Eurostat reuse with acknowledgement (Decision 2011/833/EU)"
  },
  {
   "metric": "commute_minutes",
   "value": 31.21,
   "period": "2011",
   "level": "city",
   "note": "Madrid (greater city): the city and its contiguous urban area",
   "source": "eurostat-urban",
   "retrieved": "2026-11-05",
   "sourceName": "Urban Audit: cities and greater cities",
   "licence": "Eurostat reuse with acknowledgement (Decision 2011/833/EU)"
  },
  {
   "metric": "road_deaths",
   "value": 0.15,
   "period": "2024",
   "level": "city",
   "note": "Madrid (greater city): the city and its contiguous urban area",
   "source": "eurostat-urban",
   "retrieved": "2026-11-05",
   "sourceName": "Urban Audit: cities and greater cities",
   "licence": "Eurostat reuse with acknowledgement (Decision 2011/833/EU)"
  },
  {
   "metric": "green_share",
   "value": 10.87,
   "period": "2014",
   "level": "city",
   "note": "Madrid (greater city): the city and its contiguous urban area",
   "source": "eurostat-urban",
   "retrieved": "2026-11-05",
   "sourceName": "Urban Audit: cities and greater cities",
   "licence": "Eurostat reuse with acknowledgement (Decision 2011/833/EU)"
  },
  {
   "metric": "foreign_born_share",
   "value": 26.1,
   "period": "2024",
   "level": "city",
   "note": "Madrid (greater city): the city and its contiguous urban area",
   "source": "eurostat-urban",
   "retrieved": "2026-11-05",
   "sourceName": "Urban Audit: cities and greater cities",
   "licence": "Eurostat reuse with acknowledgement (Decision 2011/833/EU)"
  },
  {
   "metric": "public_pools",
   "value": 1.8,
   "period": "2011",
   "level": "city",
   "note": "Madrid (greater city): the city and its contiguous urban area; 57 in total",
   "source": "eurostat-urban",
   "retrieved": "2026-11-05",
   "sourceName": "Urban Audit: cities and greater cities",
   "licence": "Eurostat reuse with acknowledgement (Decision 2011/833/EU)"
  },
  {
   "metric": "degree_share",
   "value": 48.4,
   "period": "2018",
   "level": "city",
   "note": "Madrid (greater city): the city and its contiguous urban area",
   "source": "eurostat-urban",
   "retrieved": "2026-11-05",
   "sourceName": "Urban Audit: cities and greater cities",
   "licence": "Eurostat reuse with acknowledgement (Decision 2011/833/EU)"
  },
  {
   "metric": "founders_running_club",
   "value": 0,
   "period": "2026-10-27",
   "level": "city",
   "source": "foundersrc",
   "retrieved": "2026-10-27",
   "note": "No chapter listed on https://foundersrc.com/communities",
   "sourceName": "Founders Running Club communities",
   "licence": "Public listing (facts of presence only; no licence stated)"
  },
  {
   "metric": "sea_km",
   "value": 303,
   "period": "Natural Earth 5.1",
   "source": "natural-earth",
   "level": "city",
   "retrieved": "2026-10-27",
   "note": "straight line from the centre to the open-sea coastline (lakes excluded)",
   "sourceName": "Natural Earth (coastline, land, countries and populated places)",
   "licence": "Public domain"
  },
  {
   "metric": "mountain_km",
   "value": 43,
   "period": "terrain tiles 2017",
   "source": "terrain-tiles",
   "level": "city",
   "retrieved": "2026-10-27",
   "note": "1804 m at 40.78, -3.86; the centre sits at about 666 m",
   "sourceName": "Terrain Tiles (Terrarium) on AWS Open Data",
   "licence": "Public domain (USGS, NOAA) and Open Government Licence – Canada, with attribution"
  },
  {
   "metric": "city_edge_km",
   "period": "2025",
   "level": "city",
   "source": "ghsl-ucdb",
   "retrieved": "2026-11-05",
   "url": "https://jeodpp.jrc.ec.europa.eu/ftp/jrc-opendata/GHSL/GHS_UCDB_GLOBE_R2024A/GHS_UCDB_THEME_GLOBE_R2024A/GHS_UCDB_THEME_GENERAL_CHARACTERISTICS_GLOBE_R2024A/V1-2/GHS_UCDB_THEME_GENERAL_CHARACTERISTICS_GLOBE_R2024A_V1_2.zip",
   "value": 2.8,
   "note": "Madrid urban centre (5,680,137 people, 2025): nearest edge 2.8 km to the west; half the directions over land end within 12.2 km",
   "sourceName": "GHS Urban Centre Database 2025 (R2024A), general characteristics",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "github_developers",
   "value": 13.2,
   "period": "2026-11-05",
   "level": "city",
   "source": "github",
   "retrieved": "2026-11-05",
   "url": "https://api.github.com/search/users?q=location%3A%22Madrid%22&per_page=1",
   "note": "43,076 accounts whose location names \"Madrid\", over 3,255,944 residents",
   "sourceName": "GitHub user search",
   "licence": "No data licence: only total counts of profiles are stored (GitHub Acceptable Use Policies, section 7)"
  },
  {
   "metric": "annual_leave",
   "value": 21.428571428571427,
   "period": "2026",
   "level": "country",
   "source": "labour-law",
   "retrieved": "2026-11-04T23:14:54.070Z",
   "url": "https://www.boe.es/buscar/act.php?id=BOE-A-2015-11430",
   "fetcher": "labour-law@1",
   "note": "30 calendar days, represented as 30 × 5/7 five-day-week equivalent days, not an exact workday entitlement (Estatuto de los Trabajadores, art. 38)",
   "sourceName": "Paid holiday by law, from the labour codes cited",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "download_mbps",
   "value": 55.8,
   "period": "2023",
   "level": "city",
   "source": "mlab",
   "retrieved": "2026-10-27",
   "note": "median of daily median NDT download speeds, 336 days, 1,517,524 tests (Madrid, ES-MD)",
   "sourceName": "M-Lab NDT statistics (daily city aggregates)",
   "licence": "CC0-1.0"
  },
  {
   "metric": "public_holidays",
   "value": 8,
   "period": "2026",
   "level": "region",
   "source": "nager-date",
   "retrieved": "2026-11-04T23:14:53.642Z",
   "url": "https://date.nager.at/api/v3/PublicHolidays/2026/ES",
   "fetcher": "nager-date@1",
   "note": "Public holidays on Monday to Friday in 2026, nationwide and in ES-MD",
   "sourceName": "Nager.Date public holidays",
   "licence": "MIT"
  },
  {
   "metric": "childcare_fees_1",
   "value": 2452,
   "period": "2026",
   "note": "Fees for one child aged 2 or 3 in full-time care, before support (OECD tax-benefit model)",
   "level": "country",
   "source": "oecd-childcare",
   "retrieved": "2026-11-04T23:14:49.881Z",
   "url": "https://sdmx.oecd.org/public/rest/data/OECD.ELS.JAI,DSD_TAXBEN_NCC@DF_NCC,1.1/ESP.NCF.XDC.AW100.C_C1+C_C2+S_C1+S_C2.Y2_3.AW67+_Z.YES.NO.NO._T+CF.A?format=csvfilewithlabels&startPeriod=2022",
   "fetcher": "oecd-childcare@1",
   "sourceName": "OECD Tax-Benefit Models: net childcare costs",
   "licence": "OECD terms for data (any use, with citation)"
  },
  {
   "metric": "childcare_fees_2",
   "value": 2452,
   "period": "2026",
   "note": "Fees for two children aged 2 and 3 in full-time care, before support (OECD tax-benefit model)",
   "level": "country",
   "source": "oecd-childcare",
   "retrieved": "2026-11-04T23:14:49.881Z",
   "url": "https://sdmx.oecd.org/public/rest/data/OECD.ELS.JAI,DSD_TAXBEN_NCC@DF_NCC,1.1/ESP.NCF.XDC.AW100.C_C1+C_C2+S_C1+S_C2.Y2_3.AW67+_Z.YES.NO.NO._T+CF.A?format=csvfilewithlabels&startPeriod=2022",
   "fetcher": "oecd-childcare@1",
   "sourceName": "OECD Tax-Benefit Models: net childcare costs",
   "licence": "OECD terms for data (any use, with citation)"
  },
  {
   "metric": "childcare_net_couple_1",
   "value": 2452,
   "period": "2026",
   "note": "Net cost after childcare benefits, tax breaks and other benefit changes: couple on 100% and 67% of the average wage",
   "level": "country",
   "source": "oecd-childcare",
   "retrieved": "2026-11-04T23:14:49.881Z",
   "url": "https://sdmx.oecd.org/public/rest/data/OECD.ELS.JAI,DSD_TAXBEN_NCC@DF_NCC,1.1/ESP.NCF.XDC.AW100.C_C1+C_C2+S_C1+S_C2.Y2_3.AW67+_Z.YES.NO.NO._T+CF.A?format=csvfilewithlabels&startPeriod=2022",
   "fetcher": "oecd-childcare@1",
   "sourceName": "OECD Tax-Benefit Models: net childcare costs",
   "licence": "OECD terms for data (any use, with citation)"
  },
  {
   "metric": "childcare_net_couple_2",
   "value": 2452,
   "period": "2026",
   "note": "Net cost after childcare benefits, tax breaks and other benefit changes: couple on 100% and 67% of the average wage",
   "level": "country",
   "source": "oecd-childcare",
   "retrieved": "2026-11-04T23:14:49.881Z",
   "url": "https://sdmx.oecd.org/public/rest/data/OECD.ELS.JAI,DSD_TAXBEN_NCC@DF_NCC,1.1/ESP.NCF.XDC.AW100.C_C1+C_C2+S_C1+S_C2.Y2_3.AW67+_Z.YES.NO.NO._T+CF.A?format=csvfilewithlabels&startPeriod=2022",
   "fetcher": "oecd-childcare@1",
   "sourceName": "OECD Tax-Benefit Models: net childcare costs",
   "licence": "OECD terms for data (any use, with citation)"
  },
  {
   "metric": "childcare_net_single_1",
   "value": 2452,
   "period": "2026",
   "note": "Net cost after childcare benefits, tax breaks and other benefit changes: single parent on the average wage",
   "level": "country",
   "source": "oecd-childcare",
   "retrieved": "2026-11-04T23:14:49.881Z",
   "url": "https://sdmx.oecd.org/public/rest/data/OECD.ELS.JAI,DSD_TAXBEN_NCC@DF_NCC,1.1/ESP.NCF.XDC.AW100.C_C1+C_C2+S_C1+S_C2.Y2_3.AW67+_Z.YES.NO.NO._T+CF.A?format=csvfilewithlabels&startPeriod=2022",
   "fetcher": "oecd-childcare@1",
   "sourceName": "OECD Tax-Benefit Models: net childcare costs",
   "licence": "OECD terms for data (any use, with citation)"
  },
  {
   "metric": "childcare_net_single_2",
   "value": 2452,
   "period": "2026",
   "note": "Net cost after childcare benefits, tax breaks and other benefit changes: single parent on the average wage",
   "level": "country",
   "source": "oecd-childcare",
   "retrieved": "2026-11-04T23:14:49.881Z",
   "url": "https://sdmx.oecd.org/public/rest/data/OECD.ELS.JAI,DSD_TAXBEN_NCC@DF_NCC,1.1/ESP.NCF.XDC.AW100.C_C1+C_C2+S_C1+S_C2.Y2_3.AW67+_Z.YES.NO.NO._T+CF.A?format=csvfilewithlabels&startPeriod=2022",
   "fetcher": "oecd-childcare@1",
   "sourceName": "OECD Tax-Benefit Models: net childcare costs",
   "licence": "OECD terms for data (any use, with citation)"
  },
  {
   "metric": "leave_mothers",
   "value": 16,
   "note": "Paid maternity, parental and home-care leave available to mothers, in full-rate-equivalent weeks (OECD PF2.1.A, policies in April 2025; not a current-year statutory entitlement)",
   "level": "country",
   "source": "oecd-family-db",
   "retrieved": "2026-11-04T23:14:52.653Z",
   "url": "https://webfs.oecd.org/els-com/Family_Database/PF2_1_Parental_leave_systems.xlsx",
   "fetcher": "oecd-family-db@1",
   "period": "2025",
   "sourceName": "OECD Family Database: parental leave systems (PF2.1)",
   "licence": "OECD terms for data (any use, with citation)"
  },
  {
   "metric": "leave_fathers",
   "value": 16,
   "note": "Paid paternity leave and leave reserved for fathers, in full-rate-equivalent weeks (OECD PF2.1.B, policies in April 2025; not a current-year statutory entitlement)",
   "level": "country",
   "source": "oecd-family-db",
   "retrieved": "2026-11-04T23:14:52.653Z",
   "url": "https://webfs.oecd.org/els-com/Family_Database/PF2_1_Parental_leave_systems.xlsx",
   "fetcher": "oecd-family-db@1",
   "period": "2025",
   "sourceName": "OECD Family Database: parental leave systems (PF2.1)",
   "licence": "OECD terms for data (any use, with citation)"
  },
  {
   "metric": "life_evaluation",
   "value": 7.2,
   "period": "2025",
   "level": "country",
   "source": "oecd-wellbeing",
   "retrieved": "2026-10-27",
   "note": "Average answer to how satisfied people are with their life as a whole, 0 to 10",
   "sourceName": "OECD Well-being Database (How's Life?)",
   "licence": "OECD terms for data (any use, with citation)"
  },
  {
   "metric": "temp_high",
   "value": [
    10.5,
    14.2,
    15.7,
    19.8,
    24.5,
    30.2,
    34.7,
    34.6,
    26.5,
    22.3,
    14.6,
    11.3
   ],
   "period": "2021-2025",
   "level": "city",
   "source": "open-meteo-era5",
   "retrieved": "2026-10-28T01:02:51.803Z",
   "url": "https://archive-api.open-meteo.com/v1/archive?latitude=40.4165&longitude=-3.70256&start_date=2021-01-01&end_date=2025-12-31&timezone=auto&hourly=temperature_2m,apparent_temperature,dew_point_2m,precipitation,snowfall,cloud_cover,wind_speed_10m",
   "fetcher": "open-meteo-era5@3",
   "note": "Air temperature in the shade. ERA5 reanalysis at the city's coordinates (a grid about 25 km wide)",
   "sourceName": "Historical weather (ERA5 reanalysis)",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "temp_low",
   "value": [
    1.5,
    3.2,
    5.3,
    7.8,
    11.7,
    17.2,
    20.2,
    20.7,
    14.9,
    11.9,
    6.2,
    3.6
   ],
   "period": "2021-2025",
   "level": "city",
   "source": "open-meteo-era5",
   "retrieved": "2026-10-28T01:02:51.803Z",
   "url": "https://archive-api.open-meteo.com/v1/archive?latitude=40.4165&longitude=-3.70256&start_date=2021-01-01&end_date=2025-12-31&timezone=auto&hourly=temperature_2m,apparent_temperature,dew_point_2m,precipitation,snowfall,cloud_cover,wind_speed_10m",
   "fetcher": "open-meteo-era5@3",
   "note": "Air temperature in the shade. ERA5 reanalysis at the city's coordinates (a grid about 25 km wide)",
   "sourceName": "Historical weather (ERA5 reanalysis)",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "feels_high",
   "value": [
    7.4,
    11.1,
    12.5,
    17.7,
    22.7,
    29.1,
    33.4,
    33.5,
    25.2,
    20.5,
    12.3,
    9.1
   ],
   "period": "2021-2025",
   "level": "city",
   "source": "open-meteo-era5",
   "retrieved": "2026-10-28T01:02:51.803Z",
   "url": "https://archive-api.open-meteo.com/v1/archive?latitude=40.4165&longitude=-3.70256&start_date=2021-01-01&end_date=2025-12-31&timezone=auto&hourly=temperature_2m,apparent_temperature,dew_point_2m,precipitation,snowfall,cloud_cover,wind_speed_10m",
   "fetcher": "open-meteo-era5@3",
   "note": "Apparent temperature: air temperature adjusted for humidity, wind and sun. ERA5 reanalysis at the city's coordinates (a grid about 25 km wide)",
   "sourceName": "Historical weather (ERA5 reanalysis)",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "feels_low",
   "value": [
    -2,
    0.1,
    2.2,
    5.1,
    9.5,
    16.1,
    18.7,
    19.4,
    13.8,
    10.2,
    3.6,
    0.7
   ],
   "period": "2021-2025",
   "level": "city",
   "source": "open-meteo-era5",
   "retrieved": "2026-10-28T01:02:51.803Z",
   "url": "https://archive-api.open-meteo.com/v1/archive?latitude=40.4165&longitude=-3.70256&start_date=2021-01-01&end_date=2025-12-31&timezone=auto&hourly=temperature_2m,apparent_temperature,dew_point_2m,precipitation,snowfall,cloud_cover,wind_speed_10m",
   "fetcher": "open-meteo-era5@3",
   "note": "Apparent temperature: air temperature adjusted for humidity and wind. ERA5 reanalysis at the city's coordinates (a grid about 25 km wide)",
   "sourceName": "Historical weather (ERA5 reanalysis)",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "temp_high_p10",
   "value": [
    6.4,
    10.4,
    10.5,
    14.1,
    17.8,
    23.8,
    30.7,
    29.5,
    21.7,
    16.8,
    10.8,
    8.6
   ],
   "period": "2021-2025",
   "level": "city",
   "source": "open-meteo-era5",
   "retrieved": "2026-10-28T01:02:51.803Z",
   "url": "https://archive-api.open-meteo.com/v1/archive?latitude=40.4165&longitude=-3.70256&start_date=2021-01-01&end_date=2025-12-31&timezone=auto&hourly=temperature_2m,apparent_temperature,dew_point_2m,precipitation,snowfall,cloud_cover,wind_speed_10m",
   "fetcher": "open-meteo-era5@3",
   "note": "Air temperature in the shade. ERA5 reanalysis at the city's coordinates (a grid about 25 km wide)",
   "sourceName": "Historical weather (ERA5 reanalysis)",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "temp_high_p90",
   "value": [
    14.7,
    17.5,
    22.1,
    26.4,
    30.9,
    36.7,
    38.6,
    38.7,
    31.4,
    28.1,
    17.9,
    14.2
   ],
   "period": "2021-2025",
   "level": "city",
   "source": "open-meteo-era5",
   "retrieved": "2026-10-28T01:02:51.803Z",
   "url": "https://archive-api.open-meteo.com/v1/archive?latitude=40.4165&longitude=-3.70256&start_date=2021-01-01&end_date=2025-12-31&timezone=auto&hourly=temperature_2m,apparent_temperature,dew_point_2m,precipitation,snowfall,cloud_cover,wind_speed_10m",
   "fetcher": "open-meteo-era5@3",
   "note": "Air temperature in the shade. ERA5 reanalysis at the city's coordinates (a grid about 25 km wide)",
   "sourceName": "Historical weather (ERA5 reanalysis)",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "temp_low_p10",
   "value": [
    -3.5,
    -0.4,
    2,
    4,
    8,
    13.1,
    16.8,
    16.6,
    10.7,
    7.9,
    1.9,
    -0.5
   ],
   "period": "2021-2025",
   "level": "city",
   "source": "open-meteo-era5",
   "retrieved": "2026-10-28T01:02:51.803Z",
   "url": "https://archive-api.open-meteo.com/v1/archive?latitude=40.4165&longitude=-3.70256&start_date=2021-01-01&end_date=2025-12-31&timezone=auto&hourly=temperature_2m,apparent_temperature,dew_point_2m,precipitation,snowfall,cloud_cover,wind_speed_10m",
   "fetcher": "open-meteo-era5@3",
   "note": "Air temperature in the shade. ERA5 reanalysis at the city's coordinates (a grid about 25 km wide)",
   "sourceName": "Historical weather (ERA5 reanalysis)",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "temp_low_p90",
   "value": [
    7.9,
    7.1,
    8.7,
    10.6,
    16.2,
    21.6,
    23.5,
    24.2,
    18.6,
    14.9,
    10.4,
    7.6
   ],
   "period": "2021-2025",
   "level": "city",
   "source": "open-meteo-era5",
   "retrieved": "2026-10-28T01:02:51.803Z",
   "url": "https://archive-api.open-meteo.com/v1/archive?latitude=40.4165&longitude=-3.70256&start_date=2021-01-01&end_date=2025-12-31&timezone=auto&hourly=temperature_2m,apparent_temperature,dew_point_2m,precipitation,snowfall,cloud_cover,wind_speed_10m",
   "fetcher": "open-meteo-era5@3",
   "note": "Air temperature in the shade. ERA5 reanalysis at the city's coordinates (a grid about 25 km wide)",
   "sourceName": "Historical weather (ERA5 reanalysis)",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "temp_record_high",
   "value": [
    18.3,
    20.8,
    26.2,
    32.1,
    34.9,
    40.3,
    41.3,
    41.5,
    35.4,
    31.1,
    22.6,
    15.7
   ],
   "period": "2021-2025",
   "level": "city",
   "source": "open-meteo-era5",
   "retrieved": "2026-10-28T01:02:51.803Z",
   "url": "https://archive-api.open-meteo.com/v1/archive?latitude=40.4165&longitude=-3.70256&start_date=2021-01-01&end_date=2025-12-31&timezone=auto&hourly=temperature_2m,apparent_temperature,dew_point_2m,precipitation,snowfall,cloud_cover,wind_speed_10m",
   "fetcher": "open-meteo-era5@3",
   "note": "Air temperature in the shade. ERA5 reanalysis at the city's coordinates (a grid about 25 km wide); 2021-2025 only, so a rarer extreme can lie outside it",
   "sourceName": "Historical weather (ERA5 reanalysis)",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "temp_record_low",
   "value": [
    -11.1,
    -4.4,
    -3.9,
    -1.6,
    5.1,
    10.9,
    12.8,
    13.5,
    7.3,
    3.4,
    -1.3,
    -1.9
   ],
   "period": "2021-2025",
   "level": "city",
   "source": "open-meteo-era5",
   "retrieved": "2026-10-28T01:02:51.803Z",
   "url": "https://archive-api.open-meteo.com/v1/archive?latitude=40.4165&longitude=-3.70256&start_date=2021-01-01&end_date=2025-12-31&timezone=auto&hourly=temperature_2m,apparent_temperature,dew_point_2m,precipitation,snowfall,cloud_cover,wind_speed_10m",
   "fetcher": "open-meteo-era5@3",
   "note": "Air temperature in the shade. ERA5 reanalysis at the city's coordinates (a grid about 25 km wide); 2021-2025 only, so a rarer extreme can lie outside it",
   "sourceName": "Historical weather (ERA5 reanalysis)",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "temp_hourly",
   "value": [
    3.7,
    3.7,
    3.6,
    3.2,
    2.9,
    2.7,
    2.5,
    2.4,
    2.3,
    2.4,
    3.9,
    5.6,
    7.2,
    8.5,
    9.4,
    10.1,
    10.2,
    9.8,
    8.2,
    7,
    6.2,
    5.4,
    4.8,
    4.2,
    6.6,
    6.1,
    5.8,
    5.3,
    4.8,
    4.4,
    4.1,
    3.8,
    3.5,
    4.3,
    6.3,
    8.4,
    10.3,
    11.8,
    13,
    13.7,
    14,
    13.8,
    12.8,
    10.9,
    9.8,
    8.8,
    8,
    7.3,
    8.5,
    8.1,
    7.8,
    7.3,
    6.8,
    6.4,
    6,
    5.7,
    5.9,
    7.3,
    9.1,
    10.8,
    12.3,
    13.5,
    14.5,
    15,
    15.2,
    15,
    14.4,
    13.1,
    11.6,
    10.8,
    10,
    9.3,
    11.7,
    11,
    10.6,
    9.9,
    9.2,
    8.7,
    8.2,
    8.1,
    9.3,
    11.2,
    13.2,
    15,
    16.6,
    17.6,
    18.6,
    19.2,
    19.4,
    19.2,
    18.8,
    17.7,
    15.9,
    14.7,
    13.6,
    12.7,
    16,
    15.1,
    14.4,
    13.6,
    12.9,
    12.3,
    11.8,
    12.3,
    14,
    16,
    18,
    19.8,
    21.4,
    22.3,
    23.2,
    23.8,
    24.1,
    24,
    23.4,
    22.6,
    21.1,
    19.5,
    18.3,
    17.2,
    21.7,
    20.8,
    20.1,
    19.3,
    18.5,
    17.8,
    17.3,
    18,
    19.6,
    21.6,
    23.5,
    25.4,
    27.1,
    28.1,
    28.8,
    29.3,
    29.6,
    29.5,
    28.9,
    28.1,
    26.8,
    25.1,
    23.8,
    22.7,
    26.2,
    25,
    23.7,
    22.7,
    21.8,
    21,
    20.3,
    20.7,
    22.4,
    24.6,
    26.9,
    29.1,
    31,
    32.2,
    33.3,
    34.1,
    34.4,
    34.5,
    34.1,
    33.4,
    32.1,
    30.3,
    28.9,
    27.6,
    26.6,
    25.4,
    24.3,
    23.3,
    22.5,
    21.7,
    21,
    20.8,
    22.3,
    24.4,
    26.7,
    28.8,
    30.8,
    32.2,
    33.3,
    34,
    34.3,
    34.2,
    33.9,
    33,
    31.5,
    30,
    28.8,
    27.6,
    18.9,
    18.4,
    17.7,
    17,
    16.4,
    15.9,
    15.4,
    15,
    15.9,
    17.7,
    19.7,
    21.6,
    23.2,
    24.3,
    25.3,
    25.9,
    26.1,
    26,
    25.4,
    23.9,
    22.5,
    21.4,
    20.4,
    19.5,
    15.4,
    14.9,
    14.4,
    13.9,
    13.4,
    12.9,
    12.6,
    12.3,
    12.4,
    14,
    15.9,
    17.8,
    19.5,
    20.4,
    21.3,
    21.9,
    22,
    21.6,
    20.6,
    19.1,
    18.1,
    17.3,
    16.5,
    15.9,
    8.5,
    8.3,
    8.2,
    7.8,
    7.5,
    7.4,
    7.2,
    7.1,
    6.9,
    7.6,
    9.1,
    10.7,
    12.1,
    13.2,
    14,
    14.3,
    14.2,
    13.6,
    11.9,
    11,
    10.3,
    9.6,
    9.1,
    8.7,
    5.8,
    5.7,
    5.5,
    5.2,
    4.9,
    4.7,
    4.4,
    4.4,
    4.3,
    4.4,
    5.7,
    7.1,
    8.5,
    9.7,
    10.6,
    11.1,
    11.2,
    10.5,
    9,
    8.2,
    7.6,
    7,
    6.5,
    6.1
   ],
   "period": "2021-2025",
   "level": "city",
   "source": "open-meteo-era5",
   "retrieved": "2026-10-28T01:02:51.803Z",
   "url": "https://archive-api.open-meteo.com/v1/archive?latitude=40.4165&longitude=-3.70256&start_date=2021-01-01&end_date=2025-12-31&timezone=auto&hourly=temperature_2m,apparent_temperature,dew_point_2m,precipitation,snowfall,cloud_cover,wind_speed_10m",
   "fetcher": "open-meteo-era5@3",
   "note": "Air temperature by local hour, January 0:00 to December 23:00. ERA5 reanalysis at the city's coordinates (a grid about 25 km wide)",
   "sourceName": "Historical weather (ERA5 reanalysis)",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "cloud_cover",
   "value": [
    54,
    52,
    63,
    53,
    48,
    42,
    13,
    20,
    42,
    56,
    59,
    59
   ],
   "period": "2021-2025",
   "level": "city",
   "source": "open-meteo-era5",
   "retrieved": "2026-10-28T01:02:51.803Z",
   "url": "https://archive-api.open-meteo.com/v1/archive?latitude=40.4165&longitude=-3.70256&start_date=2021-01-01&end_date=2025-12-31&timezone=auto&hourly=temperature_2m,apparent_temperature,dew_point_2m,precipitation,snowfall,cloud_cover,wind_speed_10m",
   "fetcher": "open-meteo-era5@3",
   "note": "ERA5 reanalysis at the city's coordinates (a grid about 25 km wide)",
   "sourceName": "Historical weather (ERA5 reanalysis)",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "wet_days_monthly",
   "value": [
    7.2,
    6,
    11.6,
    8,
    6.4,
    5.6,
    0.4,
    1.8,
    6.4,
    8.8,
    6.4,
    7.2
   ],
   "period": "2021-2025",
   "level": "city",
   "source": "open-meteo-era5",
   "retrieved": "2026-10-28T01:02:51.803Z",
   "url": "https://archive-api.open-meteo.com/v1/archive?latitude=40.4165&longitude=-3.70256&start_date=2021-01-01&end_date=2025-12-31&timezone=auto&hourly=temperature_2m,apparent_temperature,dew_point_2m,precipitation,snowfall,cloud_cover,wind_speed_10m",
   "fetcher": "open-meteo-era5@3",
   "note": "ERA5 reanalysis at the city's coordinates (a grid about 25 km wide)",
   "sourceName": "Historical weather (ERA5 reanalysis)",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "wet_days",
   "value": 76,
   "period": "2021-2025",
   "level": "city",
   "source": "open-meteo-era5",
   "retrieved": "2026-10-28T01:02:51.803Z",
   "url": "https://archive-api.open-meteo.com/v1/archive?latitude=40.4165&longitude=-3.70256&start_date=2021-01-01&end_date=2025-12-31&timezone=auto&hourly=temperature_2m,apparent_temperature,dew_point_2m,precipitation,snowfall,cloud_cover,wind_speed_10m",
   "fetcher": "open-meteo-era5@3",
   "note": "ERA5 reanalysis at the city's coordinates (a grid about 25 km wide)",
   "sourceName": "Historical weather (ERA5 reanalysis)",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "nice_bins_feels",
   "value": [
    0.2,
    0,
    0.4,
    1.2,
    1,
    2.2,
    1,
    2,
    2.4,
    1.2,
    1.2,
    0.6,
    0,
    0.2,
    0,
    0,
    0.2,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0.2,
    0.4,
    0.8,
    0.6,
    1.2,
    1.8,
    1.6,
    1.4,
    1.4,
    1.8,
    0.6,
    0.4,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0.2,
    0,
    0,
    0.2,
    0.2,
    0.4,
    0.4,
    0.2,
    0.4,
    0.4,
    0.8,
    1.6,
    0.6,
    0.6,
    0.6,
    0.4,
    0.6,
    0.2,
    0.2,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0.2,
    0.4,
    0,
    0,
    0,
    0.2,
    0,
    0.4,
    0.8,
    0.6,
    1.2,
    0,
    0.6,
    1.4,
    1.4,
    1,
    0.6,
    1.4,
    0.8,
    0.2,
    0,
    0.2,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0.2,
    0.2,
    0,
    0,
    0.4,
    1,
    1,
    0.6,
    1.2,
    0.4,
    1.2,
    0.6,
    1.4,
    1.4,
    0.2,
    0.6,
    0.4,
    0.2,
    0.6,
    0,
    0.2,
    0.4,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0.2,
    0.4,
    0.8,
    1.2,
    1.4,
    1.4,
    1.2,
    0.8,
    1.2,
    1,
    1.2,
    0.6,
    0.8,
    1.4,
    0.4,
    0.6,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0.6,
    0.4,
    0.4,
    1.4,
    1.8,
    3.2,
    3.4,
    2.4,
    2.6,
    4.8,
    2.8,
    3,
    1.8,
    0.6,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0.2,
    0,
    0,
    0.2,
    0.2,
    0.6,
    0.4,
    1.4,
    1.2,
    1.6,
    1.2,
    2.8,
    3,
    2.8,
    3.4,
    3.6,
    1.4,
    1.4,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0.8,
    0.6,
    0.4,
    0.4,
    0.8,
    1.2,
    1.4,
    0.4,
    1.8,
    2.8,
    0.6,
    1.2,
    0.8,
    0.6,
    0.8,
    0.8,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0.2,
    0,
    0.2,
    0.6,
    0.8,
    0.6,
    0.2,
    0.4,
    0.6,
    1.8,
    1.4,
    1.6,
    1.6,
    0.4,
    0.8,
    0.8,
    0.4,
    0.2,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0.6,
    1.2,
    1,
    1.8,
    1,
    1,
    1.2,
    0.8,
    0.6,
    1,
    0.4,
    0.2,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0.2,
    1,
    2.6,
    2.4,
    1.2,
    1.4,
    1.8,
    0.4,
    0.6,
    0.4,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
   ],
   "period": "2021-2025",
   "level": "city",
   "source": "open-meteo-era5",
   "retrieved": "2026-10-28T01:02:51.803Z",
   "url": "https://archive-api.open-meteo.com/v1/archive?latitude=40.4165&longitude=-3.70256&start_date=2021-01-01&end_date=2025-12-31&timezone=auto&hourly=temperature_2m,apparent_temperature,dew_point_2m,precipitation,snowfall,cloud_cover,wind_speed_10m",
   "fetcher": "open-meteo-era5@3",
   "note": "Dry, mostly clear days by their daytime feels-like temperature, whole degrees from -5 to 40 °C, by month. Days a month on average, 2021-2025; the test is in docs/weather-scores.md. ERA5 reanalysis at the city's coordinates (a grid about 25 km wide)",
   "sourceName": "Historical weather (ERA5 reanalysis)",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "nice_bins_air",
   "value": [
    0,
    0,
    0,
    0,
    0.2,
    0.2,
    0.6,
    1,
    0.8,
    2.4,
    2.4,
    1.6,
    1.8,
    1.8,
    0.2,
    0.6,
    0,
    0.2,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0.2,
    0.6,
    1.4,
    1,
    0.8,
    2,
    2,
    2.2,
    1.4,
    0.6,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0.2,
    0,
    0,
    0.2,
    0,
    0.2,
    0.6,
    0.8,
    0.6,
    1.2,
    1.2,
    0.2,
    0.8,
    0.6,
    0.2,
    0.8,
    0.2,
    0.2,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0.4,
    0.2,
    0,
    0,
    0.2,
    0.8,
    0.2,
    1.4,
    0.8,
    0.6,
    0.8,
    1.2,
    1.4,
    1.2,
    0.6,
    1.2,
    0.2,
    0.2,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0.2,
    0.2,
    0.2,
    0.2,
    0.8,
    1.2,
    1.4,
    1,
    0.6,
    1.6,
    1.2,
    1,
    0.4,
    0.6,
    0.6,
    0.4,
    0,
    0.4,
    0.2,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0.2,
    0.2,
    0,
    0.8,
    1.4,
    2,
    1.4,
    0.8,
    1,
    1.8,
    1,
    0.8,
    0.8,
    0.6,
    1,
    0.6,
    0.2,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0.2,
    0.2,
    0.4,
    1.4,
    1.2,
    2,
    2.8,
    3.8,
    3.2,
    3.6,
    3.6,
    3.6,
    1.6,
    1.4,
    0.2,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0.2,
    0,
    0.8,
    0,
    0.6,
    1.6,
    2,
    1.2,
    2.4,
    3.6,
    3,
    3,
    3.2,
    2.2,
    1.4,
    0.2,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0.6,
    1,
    0.4,
    1.4,
    1.2,
    1.2,
    2,
    1.2,
    2,
    1.6,
    1,
    0.6,
    0.4,
    0.6,
    0.2,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0.4,
    0.2,
    0.6,
    1,
    0.6,
    0.4,
    1.8,
    1.6,
    1.2,
    1.6,
    1,
    0.6,
    1,
    0.6,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0.6,
    0.6,
    1.6,
    1.8,
    1.6,
    1.4,
    1.4,
    0.8,
    0.6,
    0.4,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0.2,
    0,
    1.6,
    2.2,
    1.8,
    2.2,
    2.2,
    0.8,
    0.6,
    0.4,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
   ],
   "period": "2021-2025",
   "level": "city",
   "source": "open-meteo-era5",
   "retrieved": "2026-10-28T01:02:51.803Z",
   "url": "https://archive-api.open-meteo.com/v1/archive?latitude=40.4165&longitude=-3.70256&start_date=2021-01-01&end_date=2025-12-31&timezone=auto&hourly=temperature_2m,apparent_temperature,dew_point_2m,precipitation,snowfall,cloud_cover,wind_speed_10m",
   "fetcher": "open-meteo-era5@3",
   "note": "Dry, mostly clear days by their daytime air temperature, whole degrees from -5 to 40 °C, by month. Days a month on average, 2021-2025; the test is in docs/weather-scores.md. ERA5 reanalysis at the city's coordinates (a grid about 25 km wide)",
   "sourceName": "Historical weather (ERA5 reanalysis)",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "beach_days",
   "value": [
    0,
    0,
    0,
    0,
    2.2,
    6.8,
    19.2,
    14,
    4.2,
    1,
    0,
    0
   ],
   "period": "2021-2025",
   "level": "city",
   "source": "open-meteo-era5",
   "retrieved": "2026-10-28T01:02:51.803Z",
   "url": "https://archive-api.open-meteo.com/v1/archive?latitude=40.4165&longitude=-3.70256&start_date=2021-01-01&end_date=2025-12-31&timezone=auto&hourly=temperature_2m,apparent_temperature,dew_point_2m,precipitation,snowfall,cloud_cover,wind_speed_10m",
   "fetcher": "open-meteo-era5@3",
   "note": "Days a month on average, 2021-2025; the test is in docs/weather-scores.md. ERA5 reanalysis at the city's coordinates (a grid about 25 km wide)",
   "sourceName": "Historical weather (ERA5 reanalysis)",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "active_days",
   "value": [
    21.6,
    26.2,
    25.6,
    29.6,
    30.8,
    27,
    25.4,
    21.6,
    29.2,
    30.6,
    28.4,
    28
   ],
   "period": "2021-2025",
   "level": "city",
   "source": "open-meteo-era5",
   "retrieved": "2026-10-28T01:02:51.803Z",
   "url": "https://archive-api.open-meteo.com/v1/archive?latitude=40.4165&longitude=-3.70256&start_date=2021-01-01&end_date=2025-12-31&timezone=auto&hourly=temperature_2m,apparent_temperature,dew_point_2m,precipitation,snowfall,cloud_cover,wind_speed_10m",
   "fetcher": "open-meteo-era5@3",
   "note": "Days a month on average, 2021-2025; the test is in docs/weather-scores.md. ERA5 reanalysis at the city's coordinates (a grid about 25 km wide)",
   "sourceName": "Historical weather (ERA5 reanalysis)",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "muggy_days",
   "value": [
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
   ],
   "period": "2021-2025",
   "level": "city",
   "source": "open-meteo-era5",
   "retrieved": "2026-10-28T01:02:51.803Z",
   "url": "https://archive-api.open-meteo.com/v1/archive?latitude=40.4165&longitude=-3.70256&start_date=2021-01-01&end_date=2025-12-31&timezone=auto&hourly=temperature_2m,apparent_temperature,dew_point_2m,precipitation,snowfall,cloud_cover,wind_speed_10m",
   "fetcher": "open-meteo-era5@3",
   "note": "Days a month on average, 2021-2025; the test is in docs/weather-scores.md. ERA5 reanalysis at the city's coordinates (a grid about 25 km wide)",
   "sourceName": "Historical weather (ERA5 reanalysis)",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "grey_days",
   "value": [
    9.4,
    8.4,
    13.6,
    8.8,
    6,
    4.6,
    0.8,
    1,
    5.8,
    10.2,
    10.8,
    11.6
   ],
   "period": "2021-2025",
   "level": "city",
   "source": "open-meteo-era5",
   "retrieved": "2026-10-28T01:02:51.803Z",
   "url": "https://archive-api.open-meteo.com/v1/archive?latitude=40.4165&longitude=-3.70256&start_date=2021-01-01&end_date=2025-12-31&timezone=auto&hourly=temperature_2m,apparent_temperature,dew_point_2m,precipitation,snowfall,cloud_cover,wind_speed_10m",
   "fetcher": "open-meteo-era5@3",
   "note": "Days a month on average, 2021-2025; the test is in docs/weather-scores.md. ERA5 reanalysis at the city's coordinates (a grid about 25 km wide)",
   "sourceName": "Historical weather (ERA5 reanalysis)",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "hot_nights",
   "value": [
    0,
    0,
    0,
    0,
    0,
    6.6,
    18,
    19,
    0.8,
    0,
    0,
    0
   ],
   "period": "2021-2025",
   "level": "city",
   "source": "open-meteo-era5",
   "retrieved": "2026-10-28T01:02:51.803Z",
   "url": "https://archive-api.open-meteo.com/v1/archive?latitude=40.4165&longitude=-3.70256&start_date=2021-01-01&end_date=2025-12-31&timezone=auto&hourly=temperature_2m,apparent_temperature,dew_point_2m,precipitation,snowfall,cloud_cover,wind_speed_10m",
   "fetcher": "open-meteo-era5@3",
   "note": "Days a month on average, 2021-2025; the test is in docs/weather-scores.md. ERA5 reanalysis at the city's coordinates (a grid about 25 km wide)",
   "sourceName": "Historical weather (ERA5 reanalysis)",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "hot_days",
   "value": [
    0,
    0,
    0,
    0,
    1.6,
    10,
    19.6,
    20.8,
    1.2,
    0,
    0,
    0
   ],
   "period": "2021-2025",
   "level": "city",
   "source": "open-meteo-era5",
   "retrieved": "2026-10-28T01:02:51.803Z",
   "url": "https://archive-api.open-meteo.com/v1/archive?latitude=40.4165&longitude=-3.70256&start_date=2021-01-01&end_date=2025-12-31&timezone=auto&hourly=temperature_2m,apparent_temperature,dew_point_2m,precipitation,snowfall,cloud_cover,wind_speed_10m",
   "fetcher": "open-meteo-era5@3",
   "note": "Days a month on average, 2021-2025; the test is in docs/weather-scores.md. ERA5 reanalysis at the city's coordinates (a grid about 25 km wide)",
   "sourceName": "Historical weather (ERA5 reanalysis)",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "snow_days",
   "value": [
    0.6,
    0,
    0.4,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
   ],
   "period": "2021-2025",
   "level": "city",
   "source": "open-meteo-era5",
   "retrieved": "2026-10-28T01:02:51.803Z",
   "url": "https://archive-api.open-meteo.com/v1/archive?latitude=40.4165&longitude=-3.70256&start_date=2021-01-01&end_date=2025-12-31&timezone=auto&hourly=temperature_2m,apparent_temperature,dew_point_2m,precipitation,snowfall,cloud_cover,wind_speed_10m",
   "fetcher": "open-meteo-era5@3",
   "note": "Days a month on average, 2021-2025; the test is in docs/weather-scores.md. ERA5 reanalysis at the city's coordinates (a grid about 25 km wide)",
   "sourceName": "Historical weather (ERA5 reanalysis)",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "windy_days",
   "value": [
    0.2,
    0.2,
    0.4,
    0,
    0,
    0,
    0,
    0,
    0.2,
    0.2,
    0.2,
    0
   ],
   "period": "2021-2025",
   "level": "city",
   "source": "open-meteo-era5",
   "retrieved": "2026-10-28T01:02:51.803Z",
   "url": "https://archive-api.open-meteo.com/v1/archive?latitude=40.4165&longitude=-3.70256&start_date=2021-01-01&end_date=2025-12-31&timezone=auto&hourly=temperature_2m,apparent_temperature,dew_point_2m,precipitation,snowfall,cloud_cover,wind_speed_10m",
   "fetcher": "open-meteo-era5@3",
   "note": "Days a month on average, 2021-2025; the test is in docs/weather-scores.md. ERA5 reanalysis at the city's coordinates (a grid about 25 km wide)",
   "sourceName": "Historical weather (ERA5 reanalysis)",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "research_output",
   "value": 2812,
   "period": "2025",
   "level": "city",
   "source": "openalex",
   "retrieved": "2026-10-27",
   "note": "91,546 works by 567 institutions in Madrid",
   "sourceName": "OpenAlex institutions",
   "licence": "CC0-1.0"
  },
  {
   "metric": "builder_density",
   "value": 58,
   "period": "2025",
   "level": "city",
   "source": "openalex",
   "retrieved": "2026-10-27",
   "note": "log scale: 100 works per 100k residents = 0, 30,000 = 100",
   "sourceName": "OpenAlex institutions",
   "licence": "CC0-1.0"
  },
  {
   "metric": "airport_km",
   "value": 14,
   "period": "2026-10-27",
   "level": "city",
   "source": "ourairports",
   "retrieved": "2026-10-27",
   "note": "Adolfo Suárez Madrid–Barajas Airport (MAD), straight line from the centre",
   "sourceName": "OurAirports airports",
   "licence": "Public domain"
  },
  {
   "metric": "airports_100km",
   "value": 1,
   "period": "2026-10-27",
   "level": "city",
   "source": "ourairports",
   "retrieved": "2026-10-27",
   "note": "MAD",
   "sourceName": "OurAirports airports",
   "licence": "Public domain"
  },
  {
   "metric": "universities",
   "value": 42,
   "period": "2026-10-27",
   "level": "city",
   "source": "ror",
   "retrieved": "2026-10-27",
   "note": "ROR organisations of type education (universities, colleges, schools of higher education)",
   "sourceName": "Research Organization Registry",
   "licence": "CC0-1.0"
  },
  {
   "metric": "research_institutes",
   "value": 94,
   "period": "2026-10-27",
   "level": "city",
   "source": "ror",
   "retrieved": "2026-10-27",
   "note": "ROR organisations of type facility (research institutes, laboratories, observatories)",
   "sourceName": "Research Organization Registry",
   "licence": "CC0-1.0"
  },
  {
   "metric": "sunshine_monthly",
   "value": [
    161,
    184,
    220,
    247,
    293,
    332,
    372,
    344,
    256,
    208,
    165,
    147
   ],
   "period": "1991-2020",
   "level": "city",
   "source": "wmo-normals",
   "retrieved": "2026-10-27T11:14:13.769Z",
   "url": "https://www.ncei.noaa.gov/data/oceans/archive/arc0216/0253808/6.6/data/0-data/data-composite-primary-parameters/wmo_normals_9120_TSUN.csv",
   "fetcher": "wmo-normals@1",
   "note": "Measured at MADRIDCUATROVIENTOS, 8 km away at 690 m (WMO definition: direct sunlight of at least 120 W/m²)",
   "sourceName": "WMO Climatological Standard Normals 1991-2020",
   "licence": "No licence attached; NCEI public access, citation requested (WMO Unified Data Policy)"
  },
  {
   "metric": "sunshine_hours",
   "value": 2929,
   "period": "1991-2020",
   "level": "city",
   "source": "wmo-normals",
   "retrieved": "2026-10-27T11:14:13.769Z",
   "url": "https://www.ncei.noaa.gov/data/oceans/archive/arc0216/0253808/6.6/data/0-data/data-composite-primary-parameters/wmo_normals_9120_TSUN.csv",
   "fetcher": "wmo-normals@1",
   "note": "Measured at MADRIDCUATROVIENTOS, 8 km away at 690 m (WMO definition: direct sunlight of at least 120 W/m²)",
   "sourceName": "WMO Climatological Standard Normals 1991-2020",
   "licence": "No licence attached; NCEI public access, citation requested (WMO Unified Data Policy)"
  },
  {
   "metric": "degree_share",
   "value": 35.4,
   "period": "2024",
   "level": "country",
   "source": "worldbank-wdi",
   "retrieved": "2026-11-05",
   "url": "https://api.worldbank.org/v2/country/ES/indicator/SE.TER.CUAT.ST.ZS?format=json&per_page=100&date=2015:2026",
   "note": "At least short-cycle tertiary education, % of people aged 25 and over (UNESCO Institute for Statistics via World Bank)",
   "sourceName": "World Development Indicators",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "doctors",
   "value": 4.29,
   "period": "2022",
   "level": "country",
   "source": "worldbank-wdi",
   "retrieved": "2026-11-05",
   "url": "https://api.worldbank.org/v2/country/ES/indicator/SH.MED.PHYS.ZS?format=json&per_page=100&date=2015:2026",
   "note": "Physicians per 1,000 people (WHO Global Health Workforce Statistics via World Bank)",
   "sourceName": "World Development Indicators",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "unemployment",
   "value": 10.4,
   "period": "2025",
   "level": "country",
   "source": "worldbank-wdi",
   "retrieved": "2026-11-05",
   "url": "https://api.worldbank.org/v2/country/ES/indicator/SL.UEM.TOTL.ZS?format=json&per_page=100&date=2015:2026",
   "note": "Unemployment, % of the labour force, ILO modelled estimate (via World Bank)",
   "sourceName": "World Development Indicators",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "clean_government",
   "value": 0.65,
   "period": "2025",
   "level": "country",
   "source": "worldbank-wgi",
   "retrieved": "2026-11-05",
   "url": "https://api.worldbank.org/v2/sources/3/country/ESP/series/GOV_WGI_CC.EST/time/all?format=json&per_page=100",
   "note": "Control of corruption, governance estimate (Worldwide Governance Indicators)",
   "sourceName": "Worldwide Governance Indicators",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "price_level",
   "value": 68.7,
   "period": "2025",
   "level": "country",
   "source": "worldbank-wdi",
   "retrieved": "2026-10-27",
   "note": "Private consumption PPP over the market exchange rate; United States = 100",
   "sourceName": "World Development Indicators",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "homicide_rate",
   "value": 0.69,
   "period": "2023",
   "level": "country",
   "source": "worldbank-wdi",
   "retrieved": "2026-10-27",
   "note": "Intentional homicides per 100,000 people (UNODC via World Bank)",
   "sourceName": "World Development Indicators",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "life_expectancy",
   "value": 83.9,
   "period": "2024",
   "level": "country",
   "source": "worldbank-wdi",
   "retrieved": "2026-10-27",
   "sourceName": "World Development Indicators",
   "licence": "CC-BY-4.0"
  },
  {
   "metric": "health_oop",
   "value": 648,
   "period": "2023",
   "level": "country",
   "source": "worldbank-wdi",
   "retrieved": "2026-11-04",
   "note": "Out-of-pocket health expenditure per person, current US dollars (WHO Global Health Expenditure Database via World Bank)",
   "sourceName": "World Development Indicators",
   "licence": "CC-BY-4.0"
  }
 ],
 "comparisons": [
  {
   "with": "amsterdam-nl",
   "page": "https://borgo.abcastor.com/compare/amsterdam-nl-vs-madrid-es/"
  },
  {
   "with": "barcelona-es",
   "page": "https://borgo.abcastor.com/compare/barcelona-es-vs-madrid-es/"
  },
  {
   "with": "berlin-de",
   "page": "https://borgo.abcastor.com/compare/berlin-de-vs-madrid-es/"
  },
  {
   "with": "bologna-it",
   "page": "https://borgo.abcastor.com/compare/bologna-it-vs-madrid-es/"
  },
  {
   "with": "bristol-gb",
   "page": "https://borgo.abcastor.com/compare/bristol-gb-vs-madrid-es/"
  },
  {
   "with": "brussels-be",
   "page": "https://borgo.abcastor.com/compare/brussels-be-vs-madrid-es/"
  },
  {
   "with": "cambridge-gb",
   "page": "https://borgo.abcastor.com/compare/cambridge-gb-vs-madrid-es/"
  },
  {
   "with": "cork-ie",
   "page": "https://borgo.abcastor.com/compare/cork-ie-vs-madrid-es/"
  },
  {
   "with": "dublin-ie",
   "page": "https://borgo.abcastor.com/compare/dublin-ie-vs-madrid-es/"
  },
  {
   "with": "florence-it",
   "page": "https://borgo.abcastor.com/compare/florence-it-vs-madrid-es/"
  },
  {
   "with": "geneva-ch",
   "page": "https://borgo.abcastor.com/compare/geneva-ch-vs-madrid-es/"
  },
  {
   "with": "lisbon-pt",
   "page": "https://borgo.abcastor.com/compare/lisbon-pt-vs-madrid-es/"
  },
  {
   "with": "london-gb",
   "page": "https://borgo.abcastor.com/compare/london-gb-vs-madrid-es/"
  },
  {
   "with": "lyon-fr",
   "page": "https://borgo.abcastor.com/compare/lyon-fr-vs-madrid-es/"
  },
  {
   "with": "malaga-es",
   "page": "https://borgo.abcastor.com/compare/madrid-es-vs-malaga-es/"
  },
  {
   "with": "manchester-gb",
   "page": "https://borgo.abcastor.com/compare/madrid-es-vs-manchester-gb/"
  },
  {
   "with": "milan-it",
   "page": "https://borgo.abcastor.com/compare/madrid-es-vs-milan-it/"
  },
  {
   "with": "munich-de",
   "page": "https://borgo.abcastor.com/compare/madrid-es-vs-munich-de/"
  },
  {
   "with": "paris-fr",
   "page": "https://borgo.abcastor.com/compare/madrid-es-vs-paris-fr/"
  },
  {
   "with": "porto-pt",
   "page": "https://borgo.abcastor.com/compare/madrid-es-vs-porto-pt/"
  },
  {
   "with": "rome-it",
   "page": "https://borgo.abcastor.com/compare/madrid-es-vs-rome-it/"
  },
  {
   "with": "rotterdam-nl",
   "page": "https://borgo.abcastor.com/compare/madrid-es-vs-rotterdam-nl/"
  },
  {
   "with": "turin-it",
   "page": "https://borgo.abcastor.com/compare/madrid-es-vs-turin-it/"
  },
  {
   "with": "valencia-es",
   "page": "https://borgo.abcastor.com/compare/madrid-es-vs-valencia-es/"
  },
  {
   "with": "zurich-ch",
   "page": "https://borgo.abcastor.com/compare/madrid-es-vs-zurich-ch/"
  }
 ],
 "linkOut": [
  {
   "label": "Numbeo: cost of living in Madrid",
   "url": "https://www.numbeo.com/cost-of-living/in/Madrid"
  },
  {
   "label": "WeatherSpark: year-round weather in Madrid",
   "url": "https://weatherspark.com/search?q=Madrid"
  },
  {
   "label": "Wikipedia: Madrid",
   "url": "https://en.wikipedia.org/wiki/Madrid"
  }
 ],
 "cite": "Borgo, \"Living in Madrid\", https://borgo.abcastor.com/city/madrid-es/, figures as of 2026-11-05. Name the original source of any figure you quote."
}
