Spain

AI behavior law: bot and agent disclosure, crawler and training-data rules, automated-agent transactions, and algorithmic decision-making.

0
Instruments
0
Enacted
0
Proposed / in discussion
high
Confidence

Summary

Spain presents medium risk for commercial web scraping. Código Penal art. 197 bis criminalises unauthorised access to or remaining in a computer information system by bypassing security measures, regardless of intent (unlike some EU peers, no specific "fraudulent intent" element beyond acting without authorisation). Art. 197 bis has not been authoritatively applied to public-page scraping in published case law, but ToS violations combined with bypassing technical barriers create clear exposure. Spain transposed DSM Directive 2019/790 via Real Decreto-ley 24/2021, amending the Texto Refundido de la Ley de Propiedad Intelectual (TRLPI) to add arts. 67-bis (research TDM) and 67-ter (commercial TDM with machine-readable opt-out). Commercial TDM is lawful where no machine-readable reservation has been made. The AEPD actively enforces GDPR against large-scale personal-data collection, including from public sources; enforcement has grown substantially since 2022 (367 fines totalling €29.8 million in 2023). Spain retains the full EU sui generis database right (TRLPI arts. 133-137). The Ley de Servicios de la Sociedad de la Información y de Comercio Electrónico (LSSI, Law 34/2002, last updated by RDL 9/2024) regulates electronic services generally but does not specifically address scraping. No scraping-specific statute; law_specificity reflects the general-law framework typical of EU member states.

Automated-access legality

Carried forward from the crawler-law index. Governs whether automated clients may access public websites in this jurisdiction.

DimensionValue
Authorization testsecurity mechanism bypass
Public-page carve-outunsettled
Terms-of-service browsewrap enforceablenotice dependent
Terms-of-service clickwrap enforceableyes
Copyright exception modeltdm dual track
Text and data mining — commercial statuswith optout
Text and data mining — opt-out mechanismrobots txt
robots.txt legal weightevidentiary
AI training-specific lawbinding
Privacy regimeGDPR
Trespass to chattelsnot recognized

Last reviewed: 2026-05-23. Confidence: high. Fast-moving area — verify before relying. Not legal advice.