Is Web Scraping Legal? US, EU, Germany and UK Cases

Is web scraping legal? For public pages, often yes: US courts rejected hacking and contract claims over logged-off scraping. Logins, personal data and copied databases add risk. 150 of 376 terms pages read ban it.

Terms of service, top 1,000 sites 39.9% of 376 terms pages read ban scraping
  • Ban scraping, the catch40%150
  • Ban scraping, robots.txt open to all81%122 of 150
  • Ban AI training8%30

Is web scraping legal? On 26 Nov 2026 OCODATA checked the top 1,000 sites and read 376 terms pages: 150 (39.9%) ban scraping in writing. Courts treat that ban very differently by country, and by whether you logged in.

Web scraping is software that loads web pages and saves the data on them, at scale. No US or EU law bans it as such. The fights are about four things: a login, a contract you accepted, personal data and copied content.

The law by country, with the case

where allowed so far what got a scraper sued or beaten
US Public pages with no login: the anti-hacking law (CFAA) asks whether a gate was up (Van Buren, 2021). Meta’s terms did not cover logged-off scraping (Meta v. Bright Data, 2024) Breaking terms you signed up to: hiQ, USD 500,000 judgment, 2022. Getting past a bot wall: Google and Reddit sue SerpApi under DMCA §1201 (2025, open)
EU Scraping “is not prohibited per se” (CNIL). Mining content you can lawfully reach, unless the owner opted out (Art 4, Directive 2019/790) Copying a large part of a protected database: a job search engine can be stopped (CV-Online v. Melons, 2021)
Germany Building an AI training set under the mining rule, §44b UrhG: LAION won on appeal (OLG Hamburg, 10 Dec 2025) A model that memorised song lyrics: GEMA beat OpenAI (LG München I, 11 Nov 2025)
UK An AI model, Stable Diffusion, is “not an infringing copy” (Getty Images v. Stability AI, 4 Nov 2025) Scraping personal data needs a lawful basis; for AI training, legitimate interests is the only one (ICO, 1 Sep 2025)

The US cases turn on three questions: hacking, contract, copyright.

  • Hacking (CFAA). The Supreme Court called it a “gates-up-or-down inquiry” (Van Buren v. United States, 3 Jun 2021). The Ninth Circuit then let hiQ keep reading public LinkedIn profiles (hiQ v. LinkedIn, 18 Apr 2022).
  • Contract. Terms bind people who accept them. Judge Chen held Meta’s terms do not bar “logged-off scraping of public data” (order, 23 Jan 2024).
  • Copyright. Judge Alsup dismissed X’s suit against Bright Data: its scraping claims were “preempted by” the Copyright Act (9 May 2024). The case ended with a dismissal with prejudice after a settlement (docket, Jun 2025). The vendor, next to its rivals: Bright Data alternative.

The new front is the bot wall. Google sued SerpApi for getting past SearchGuard, its JavaScript challenge, under the DMCA ban on breaking access controls.

On 9 Nov 2026 the court dismissed those claims, with leave to amend (order). Google had not shown that the owners of the content let it put access controls on their work. Google filed a second amended complaint on 17 Nov 2026 (docket).

The EU has no scraping law. Four rules do the work.

rule what it says
Database right (Directive 96/9, Art 7) A maker with a substantial investment can stop extraction of the whole or a substantial part, for 15 years
Contract (Ryanair v. PR Aviation, 15 Jan 2015) A database with neither copyright nor the database right can still be limited by the site’s own terms, subject to national law
Mining (Directive 2019/790, Art 4) Allowed unless the owner reserves it “by machine-readable means” for online content; the recital names “metadata and terms and conditions”
GDPR (CNIL) Personal data, even public: usually legitimate interest, and collect only what you need

The database right is the one that bites. In CV-Online v. Melons (3 Jun 2021) the EU court held that a search engine copying a free job site’s database can be stopped where it risks the maker’s return on its investment.

Since 2 Aug 2025 the AI Act adds a duty for makers of general-purpose AI models: a copyright policy that respects those opt-outs “including through state-of-the-art technologies” (Art 53(1)(c), Regulation 2024/1689). To set the opt-out yourself: block AI crawlers. What we collect and leave out under the GDPR: how we source data.

Germany wrote the EU mining rule into §44b UrhG. Copies of lawfully accessible works for automated analysis are allowed, and deleted once no longer needed. An owner’s opt-out for online works only counts “in maschinenlesbarer Form” (machine-readable).

  • LAION won. It was sued over a photo in its AI training set. The Hamburg appeal court held that LAION could rely on §44b and on the research exception, §60d (5 U 104/24, 10 Dec 2025). The reservation on the photo site lacked machine-readable form when LAION downloaded. Not final: an appeal to the Federal Court is allowed.
  • OpenAI lost. The Munich court largely granted GEMA’s claims (42 O 14139/24, 11 Nov 2025). Lyrics by 9 German authors were memorised in the models and reproduced in outputs; the mining rule does not cover that.

The biggest UK case shrank before judgment. Getty Images dropped its training claim: there was no evidence the model was trained in the UK (judgment, [2025] EWHC 2863 (Ch)).

The High Court then held Stable Diffusion is “not an infringing copy”, so the secondary infringement claim failed. For personal data, the ICO says legitimate interests “remains the sole available lawful basis” for training generative AI on scraped data.

LinkedIn, Reddit, Meta and X terms on scraping

platform what its terms say what happened in court
LinkedIn No bots or tools “(such as crawlers, browser plugins and add-ons or any other technology) to scrape or copy the Services, including profiles and other data from the Services” (User Agreement) hiQ won the CFAA round (2022). Then the court found hiQ breached the User Agreement through its own scraping and fake accounts. USD 500,000 consent judgment, Dec 2022
Reddit Crawling “in accordance with the parameters set forth in our robots.txt file, but scraping the Services without Reddit’s prior written consent is prohibited” (User Agreement) Reddit sued SerpApi, Oxylabs, AWMProxy and Perplexity for scraping Reddit through Google results (complaint). Open in New York, Nov 2026 (docket)
Meta “You may not access or collect data from our Products using automated means (without our prior permission)” (Terms) Meta v. Bright Data: summary judgment for Bright Data on contract, 23 Jan 2024. Meta dropped Count II without prejudice, 23 Feb 2024 (docket)
X “you cannot scrape the Services without X’s express written permission” X v. Bright Data: dismissed 9 May 2024, ended after a settlement, Jun 2025

The line in all four: an account. hiQ lost on contract because it had accepted LinkedIn’s terms; Bright Data won because it scraped logged off.

What the top 1,000 terms of service say

We loaded the home page of each of the Tranco top 1,000 domains, found its terms page and read every clause about bots by hand.

result sites share
home page answered 681 of 1,000
terms page read (median 3,717 words) 376
terms mention scraping, crawlers, robots or automated access 199
terms ban scraping 150 39.9% of 376
terms ban use for AI training 30 4 of them without a scraping ban
ban scraping, but robots.txt open to all bots 122 of 150

122 of the 150 sites that ban scraping still let every bot in by robots.txt. Only 8 block all bots from the whole site; we could not read robots.txt for the other 20. Real files, line by line: robots.txt examples.

The wording varies. YouTube bans “any automated means (such as robots, botnets or scrapers)” except public search engines. Microsoft’s terms say “You may not use web scraping, web harvesting, or web data extraction methods”. Airbnb: “Do not scrape”.

rank band terms read ban scraping share ban AI training
1-100 35 17 48.6% 2
101-500 151 60 39.7% 11
501-1,000 190 73 38.4% 17
vertical terms read ban scraping share
Adult 10 9 90%
Social & forums 10 7 70%
Internet & comms 25 15 60%
News & media 42 24 57.1%
Shopping 20 11 55%
Streaming 19 8 42.1%
Education 18 7 38.9%
Business 26 9 34.6%
Ads & tracking 44 13 29.5%
Technology 127 36 28.3%

News sites lead on AI: 12 of the 42 news terms we read ban AI training. bild.de reserves mining rights under §44b UrhG by name.

Who blocks scrapers at the door, not in the terms: websites that block scraping. What robots.txt does to AI bots: does robots.txt stop AI crawlers.

Download the data

Download the CSV or JSON: 14 rows, free under CC BY 4.0, counts only. Columns: split (all, rank, vertical), group, sites, home_answered, terms_read, mention_bots, ban_scraping, ban_pct_of_read, ban_ai_training, ban_robots_star_open.

Need data from sites like these, with the legal homework done per source: custom web scraping service.

Counts come from each site’s static home page and one terms page; a ban only in an API or developer policy is not counted.

Common questions

Is web scraping legal in the US?

For public pages with no login, the main cases went the scraper's way. hiQ v. LinkedIn (9th Cir., 18 Apr 2022) and Van Buren (Supreme Court, 3 Jun 2021) narrowed the anti-hacking law to gates like logins. Meta and X lost contract claims against Bright Data in 2024.

Is web scraping legal in the EU?

There is no EU ban on scraping. The French regulator CNIL says scraping personal data is not prohibited per se, but must be analysed case by case under the GDPR. Copying a substantial part of a protected database can be stopped under the database right.

Is web scraping legal in Germany?

German law allows text and data mining of lawfully accessible works (§44b UrhG) unless the owner opts out in machine-readable form. In Dec 2025 a Hamburg appeal court held that LAION could rely on it. A Munich court ruled against OpenAI over lyrics memorised in its models.

Is scraping LinkedIn illegal?

LinkedIn's terms ban it. hiQ won the anti-hacking question in 2022, then a court found it breached the User Agreement it had accepted. hiQ agreed to a USD 500,000 judgment and a ban on scraping LinkedIn, logged in or not.

Does robots.txt make scraping legal?

No law says so in the US. Reddit's terms allow crawling within its robots.txt but ban scraping without consent. In the EU an AI mining opt-out must be machine-readable. 122 of the 150 top sites that ban scraping leave robots.txt open to all bots.