Is Web Scraping Legal? What the Law Actually Looks At
Easy Scraper AI9 min read
Short answer
Web scraping is not illegal in itself. In the United States, courts have held that collecting publicly available pages is unlikely to violate the Computer Fraud and Abuse Act. What gets people into trouble is what they collect and how: personal data, copyrighted content, pages behind a login, breaking a site's terms, or overloading its servers.
On this page
The short version
So the honest answer to "is web scraping legal?" is "it depends on five things". The rest of this article goes through them.
Five questions that decide most cases
1. Is the page public, or behind a login?
The main U.S. anti-hacking law, the Computer Fraud and Abuse Act (CFAA), punishes access to a computer "without authorization". In Van Buren v. United States (2021) the Supreme Court read the law narrowly: it is about entering parts of a system that are off limits to you, not about misusing access you legitimately have.
Applying that reasoning, the Ninth Circuit held in hiQ Labs v. LinkedIn (April 2022) that pages anyone can view without logging in have no "gate" to break through, so scraping them is unlikely to be unauthorized access under the CFAA. Pages behind a login are different: you got in by accepting terms, and those terms usually say something about automated collection.
2. Does the data describe people?
Names, email addresses, photos, profiles and anything else that identifies a person are personal data. Under the GDPR it makes no difference that the person published it themselves: you still need a legal basis to collect and use it. Regulators have acted on this. Clearview AI, which built a face database from scraped photos, was fined €20 million by France's CNIL in 2022 and €30.5 million by the Dutch data protection authority in 2024.
If you do not need personal data, do not collect it. Leaving those columns out is the simplest compliance step there is.
3. Is the content protected by copyright or database rights?
Facts are free. In Feist v. Rural (1991) the U.S. Supreme Court held that a list of facts gets no copyright just because collecting it took effort. A price, a product specification or an opening time is a fact. An article, a product photo or a written review is creative work, and copying it wholesale is a different matter.
The EU adds a layer: the Database Directive gives the maker of a database a separate right against extraction of substantial parts of it, even when the individual entries are plain facts.
4. What do the site's terms say?
Terms of use are a contract question, separate from hacking law. The hiQ case shows both sides: after winning on the CFAA, hiQ lost on contract. In November 2022 the district court found it had breached LinkedIn's user agreement, and in December 2022 the case closed with a consent judgment of $500,000 against it.
Whether terms bind you depends on whether you accepted them and on what they actually say. In Meta v. Bright Data (January 2024) a California federal court found that Meta's terms, as written, did not prohibit scraping public pages while logged out. In X Corp. v. Bright Data (May 2024) another judge dismissed X's claims, noting that users, not X, own what they post. In Europe, the Court of Justice held in Ryanair v PR Aviation (2015) that a site whose data is not protected by database law may still restrict its use by contract.
5. How are you collecting it?
Sending thousands of requests a minute can slow a site down for everyone else, and getting around blocks — rotating addresses after being banned, solving CAPTCHAs automatically, ignoring a cease-and-desist letter — turns a neutral activity into one a court will look at unkindly. A robots.txt file is a convention rather than a law, but ignoring it is the kind of fact that gets quoted in complaints.
The rulings in one table
| Year | Case | What it decided |
|---|---|---|
| 1991 | Feist v. Rural (U.S. Supreme Court) | Facts are not protected by copyright, however much work collecting them took |
| 2015 | Ryanair v PR Aviation (EU Court of Justice) | A site can limit use of its data by contract when database law does not protect it |
| 2021 | Van Buren v. United States (U.S. Supreme Court) | The CFAA is about entering off-limits parts of a system, not misusing access you have |
| 2022 | hiQ Labs v. LinkedIn (Ninth Circuit, then district court) | Scraping public pages is unlikely to violate the CFAA; hiQ was later held to have breached the user agreement |
| 2024 | Meta v. Bright Data (N.D. California) | Meta's terms did not bar logged-out scraping of public pages |
| 2024 | X Corp. v. Bright Data (N.D. California) | X's claims over scraping of user posts were dismissed |
Lower risk and higher risk
| Lower risk | Higher risk |
|---|---|
| Pages anyone can open without an account | Pages behind a login or a paywall |
| Facts: prices, specifications, listings, opening times | Personal data; articles, photos and reviews copied in bulk |
| A modest number of pages at a human pace | Heavy request volume; getting around blocks after being told to stop |
| Analysis for your own use | Republishing or selling the data |
| Terms that are silent or permissive | Terms you accepted that forbid automated collection |
A checklist before you start
- Read the site's terms of use and its robots.txt. Look for an official export or API first; it is often easier as well as safer.
- Decide which columns you actually need and leave out anything that identifies a person.
- Stay on pages that are public, or that you are entitled to see.
- Keep the pace gentle and stop if the site asks you to.
- Use the data for analysis. Do not republish text, images or large parts of a database.
- If the project is commercial or large, get legal advice before, not after.
Where a browser extension fits
A scraper that runs in your own browser reads pages you have open, about as fast as a person clicking through them. That keeps it away from the heavy-load end of the scale. It does not answer the first four questions for you: what you collect and what you do with it remain your decision. Easy Scraper AI works this way, and its terms say the same thing in plainer words.
If you want to see what a careful, small-scale collection looks like in practice, the price scraping guide walks through one on a practice site, and the guide on how to scrape multiple pages covers pacing. Shorter answers to common worries are in the frequently asked questions.
Sources
- Van Buren v. United States, U.S. Supreme Court, June 2021
- hiQ Labs v. LinkedIn, Ninth Circuit, April 18, 2022; settlement and consent judgment, December 2022
- Meta v. Bright Data, summary judgment of January 23, 2024
- X Corp. v. Bright Data, dismissal of May 2024
- Feist Publications v. Rural Telephone Service, U.S. Supreme Court, 1991
- Ryanair v PR Aviation, C-30/14, EU Court of Justice, January 2015
- General Data Protection Regulation and Database Directive 96/9/EC
- Clearview AI decisions: CNIL, 2022 and Dutch DPA, 2024
Common questions
Using AI in a scraper does not change the legal questions. They are still about the data: whether it is public, personal or copyrighted, and whether the terms you accepted allow the use. Collecting content to train AI models raises separate copyright questions that courts are still working through.
Keep reading
What Is Web Scraping? How It Works and What It Is Used For
Web scraping means collecting the data shown on web pages into a structured file. How it works, shown on a real page, and five ways to do it.
Read articleBest Web Scraper Chrome Extensions in 2026: 5 Compared
Five extensions, what each is good at and where each stops, taken from their own listings and pricing pages.
Read articlePrice Scraping: How to Collect Prices from a Website into a Spreadsheet
Collect product names and prices from a site without code, then compare two snapshots to see what changed.
Read guideHow to Scrape Multiple Pages Without Code
Follow Next page buttons, Load more buttons and infinite scroll automatically, and collect every item into one table.
Read guide