Skip to main content
$ python3 analyze_market.py --region comunidad_valenciana --years 2004:2025

Spain real estate market broke the record.
Next 2008?

Not a realtor's opinion. Not a Telegram channel forecast. Mathematics, data from Spain's government databases, and AI agents that analyzed 20 years of transactions.

109,874
transactions in 2025
20 years
of data (2004–2025)
3
provinces
7
AI agents

A realtor will say "now is a good time to buy".
Data will tell the truth.

I loaded raw data directly from INE (Instituto Nacional de Estadística) and MITMA (Ministerio de Transportes) via their APIs. No aggregators, no middlemen. Built AI agents that parsed, cleaned, and analyzed every row.

Data Loading

INE REST API + MITMA Excel files. Transactions, mortgages, prices, foreigners. Raw data without processing.

Cleaning

Province normalization, parsing 76 Excel sheets, time series alignment. AI agents processed each source.

Analysis

Seasonal decomposition, correlations, cross-lags, Granger test. Math, not intuition.

Visualization

Auto-generated charts, tables, and comparative analysis. Fully reproducible.

// 01 TRANSACTIONS

Record broken

109,874 transactions in Comunidad Valenciana in 2025. More than at the 2007 bubble peak.

Annual transactions Comunidad Valenciana 2004-2025
YearAlicanteValenciaCastellónTotal CV
2007 (peak)50,48344,18112,983107,647
200830,16729,2259,99469,386
200923,62721,1168,52253,265
201025,10225,2287,69758,027
201121,19718,1106,35445,661
201222,55517,9696,60747,131
2013 (bottom)23,75115,3625,76944,882
201424,34716,6105,63746,594
201526,85218,8915,63051,373
201629,97222,5496,27658,797
201735,94027,4177,49470,851
201839,21430,6088,76878,590
201936,82229,3198,62074,761
202027,91223,6346,77958,325
202137,78534,53710,29482,616
202251,18439,03511,330101,549
202348,37436,56810,77495,716
202452,73139,16713,109105,007
202554,38341,38414,107109,874
// 02 DYNAMICS

Monthly market pulse

Monthly transaction dynamics
Seasonality: peak — May–July (foreigners arrive in summer). Minimum — December–January. Amplitude ~1,700 deals/month in Alicante.
// 03 PRICES

Alicante is already more expensive than the 2008 peak

Average property prices by province
YearAlicanteValenciaCastellónTotal CV
2004€103,649€102,928€106,588€104,388
2005€123,482€118,583€126,730€122,932
2006€140,376€146,543€150,824€143,823
2007€155,270€169,538€168,009€162,662
2008 (peak)€165,947€182,519€168,902€173,352
2009€152,584€164,925€153,323€157,595
2010€143,851€161,007€142,461€151,126
2011€133,998€138,178€130,080€135,110
2012€122,478€120,118€104,294€119,029
2013 (bottom)€111,976€105,328€86,528€106,430
2014€113,484€98,831€87,284€105,091
2015€116,903€97,970€88,597€106,839
2016€117,088€99,528€88,421€107,294
2017€119,541€99,198€82,891€107,793
2018€125,034€106,476€88,283€113,706
2019€131,160€112,388€88,781€118,912
2020€137,517€119,911€94,717€125,408
2021€146,274€126,552€96,444€131,820
2022€154,195€132,473€97,725€139,545
2023€159,252€138,268€97,774€144,315
2024€175,887€148,033€107,673€156,982
2025€192,193€165,457€117,565€172,541
Growth +10%/year — 2006-2007 levels. Salaries grow at 3-4%. The gap is widening.
New vs used property prices
// 04 MORTGAGE VS CASH

In 2007 there were twice as many mortgages as deals. Not anymore.

Mortgage to transaction ratio
YearAlicanteValenciaCastellónTotal CV
2007136%181%202%162%bubble
2008126%157%144%142%bubble
2009141%180%133%155%bubble
2010104%138%106%119%bubble
201175%112%84%91%
201248%71%59%58%
201334%58%45%43%
201436%62%49%47%
201539%64%57%50%
201640%64%55%51%
201737%59%49%47%
201839%62%46%49%
201944%70%50%55%
202049%74%70%62%
202148%73%55%59%
202238%72%54%53%
202334%58%48%45%
202437%63%48%48%
202544%72%58%56%
Alicante: 56-66% cash purchases — foreigners with external financing.
Valencia: 72% via mortgage — classic local market.
// 05 FOREIGNERS

16% of the market. 17,000 deals/year. But they buy cheap.

Foreign buyers by province
YearAlicante%Valencia%Castellón%Total%
20074,8629.62,7766.31,1558.98,7938.2
20082,0426.88222.83673.73,2314.7
20092,50010.61,4306.84415.24,3718.2
20102,86911.41,3075.23414.44,5177.8
20113,09414.61,0195.63074.84,4209.7
20123,74816.61,3707.64526.85,57011.8
20133,91316.51,70511.15179.06,13513.7
20144,33917.82,21513.361911.07,17315.4
20154,58917.12,74714.572512.98,06115.7
20164,87716.33,28514.689914.39,06115.4
20175,79116.14,45916.31,20716.111,45716.2
20186,51916.65,02716.41,32415.112,87016.4
20196,32317.24,94816.91,30115.112,57216.8
20204,72216.93,56415.11,08216.09,36816.1
20216,69117.74,97314.41,56215.213,22616.0
20228,78117.26,46416.61,78415.717,02916.8
20238,96918.56,49617.81,70315.817,16817.9
20248,81816.76,65317.01,88014.317,35116.5
20258,70316.06,40215.52,05114.517,15615.6
Foreigners buy CHEAPER than the average price: Alicante -8%, Castellón -18%. Secondary housing on the coast — not luxury villas.
// 06 NEW BUILDS

50% of the market in 2008. 18% now. Construction stopped.

New builds vs secondary housing ratio
The construction sector hasn't recovered. Supply deficit is the main factor holding prices up.
// 07 COMPARISON WITH 2008

So will it crash or not?

Factor2007–20082025
ECB rate4.25% → 1.0%2.5%
Mortgage bubble136-200%!56% (normal)
New builds50% of market18% of market
Cash purchasesfew60%+ (Alicante)
Foreigners8%16%
Price growth10-15%/year10%/year

Why it WON'T crash

  1. No mortgage bubble. In 2007, mortgages were 2x the number of deals. Now — 56%.
  2. Supply deficit. Little construction, but demand exists.
  3. Cash purchases. 60% in Alicante don't depend on rates.
  4. Foreign demand with external financing.

Why it might dip

  1. Growth +10%/year — 2006-2007 pace.
  2. Salaries +3%, prices +10%. Gap.
  3. Alicante already +16% above 2008 peak.
  4. Geopolitics could cut off foreign demand.

Verdict

  • A 2008-style crash — unlikely. Market structure is different.
  • Slowdown — inevitable. 10%/year growth is unsustainable.
  • 10-20% correction — possible with an external shock.
  • Alicante — most vulnerable (depends on foreigners).
  • Valencia — most resilient (local demand).

Need this kind of analysis for your market?

Custom AI agents, analytics automation, data parsing from any source.