Scraping legality

Updated November 24, 2026

Scraping legality is the question of whether a business may collect data from websites with automated tools. No single statute answers it. The answer depends on how the data is reached, such as an open page or one behind a login, what the site terms say, whether the content is protected, and whether the data identifies people.

In short: Scraping legality is whether automated collection of website data is allowed, which depends on computer access law, site terms, intellectual property and data protection rules such as the GDPR rather than on one law.

How scraping legality is assessed

A scraper is a program that requests web pages and keeps parts of the response. Whether running one is lawful breaks into separate questions. Each one comes from a different body of law, and a project can pass one test and fail another.

Access. In the United States, the main access statute is the Computer Fraud and Abuse Act, or CFAA. In Van Buren v. United States, the Supreme Court read its "exceeds authorized access" clause narrowly 1. A person breaks that clause by entering files, folders or databases that are off limits to them, not by misusing data they were allowed to see 1. The Court called this a gates-up-or-down inquiry, where one either can or cannot access a system or an area within it 1.

Public pages. The Ninth Circuit applied that reasoning in hiQ Labs v. LinkedIn, a dispute over scraping public member profiles 2. It described three kinds of systems 2. Some are open to the public, some require authorization that was given, and some require authorization that was not given 2. hiQ raised a serious question that the "without authorization" concept does not apply to pages open to anyone with a browser 2. The ruling came at the preliminary injunction stage, so it was not a final decision on the merits.

Contract and property. A site that loses on the CFAA has other options. The court listed trespass to chattels, copyright infringement, misappropriation, unjust enrichment, conversion, breach of contract and breach of privacy as claims that may still lie 2. Site terms carry more weight when a scraper uses an account, because signing up usually means accepting them.

Personal data. Once the pages describe people, data protection law applies on top. Under the GDPR, personal data that did not come from the person still needs a notice under Article 14 3. That notice covers the purposes, the legal basis and the source, including whether it was publicly accessible 3. Public visibility does not remove the need for a basis, which the legitimate interest test often supplies.

Purpose and volume. What was taken and why also matters. Reading a company homepage to see its technology stack is a different act from copying a full member directory to rebuild a competitor's product.

Scraping legality when buying data through an API

Many GTM teams do not run scrapers themselves. They buy B2B contact data or website data through an API, which moves some of the questions to the vendor and leaves others with the buyer.

Ask where the data comes from. RichAPI says it does not maintain a database of any third-party website and does not operate accounts on one 4. It says results come at request time from licensed third-party data sources, each responsible for its own collection and compliance 4. A buyer can record that statement in its own vendor file.

Separate company pages from people data. RichAPI's web endpoints read a company's public site, such as its tech stack, tracking pixels, meta tags and social links 4. A page that needs a login returns the login page, and a tool used only behind a login will not show up 4.

Keep the privacy duties. Buying data does not transfer the controller role for the buyer's own use. Where a record names a person, the buyer still needs a basis for its outreach and a way to give the Article 14 information, at the latest at the first communication 3.

Keep a source trail. Store the endpoint, the date and the input for every enriched record. When a person asks where their details came from, that trail is the answer the buyer has to give under Article 14 3.

Example of a scraping legality review for a website data pipeline

A GTM engineer at a sales software company is asked to build an account list from company websites. Legal asks for a short review before the pipeline runs on a few thousand domains.

The engineer writes the pipeline as three steps and checks each one against the questions above.

text
step  what it reads                        gate        personal data
1     public homepage tech stack and pixels open page   no
2     public team page for named managers   open page   yes
3     a partner portal that needs a login   closed      yes

Step one passes. The homepage is open to anyone, so the access question points the same way the hiQ court leaned for public pages 2. The data describes the company, not a person, so data protection rules do not attach to the output.

Step two needs a privacy note. The page is open, but the output names people. Legal adds the source URL and date to each record, so the company can answer the Article 14 source question when someone asks 3. The outreach team documents its basis before the first email.

Step three is dropped. Reading a portal behind a login means going through a gate the site controls. Under the Van Buren reading, the question becomes whether the area is off limits to this user 1. The site terms that come with the login would also apply 2. Nobody can show the pipeline is allowed in, so the step is cut.

The vendor question is filed. For the first step the engineer calls a website data API rather than running a crawler. The vendor file records RichAPI's statement that it operates no accounts on third-party sites and relies on licensed sources 4.

The review takes one meeting. The pipeline ships with two steps, a source field on every record and a written note on why step three was removed.

Scraping legality vs publicly available data

The two ideas overlap, but they answer different questions. One is about the act of collecting, the other about the status of the information.

Scraping legalityPublicly available data
What it answersWhether automated collection from a site is allowedWhether information can be seen without special access
InputThe method, the gate, the site terms and the contentWhere the information is published and who can see it
OutputA go, no-go or conditions for a pipelineA label on a field or record
Cost driverLegal review time and the cost of dropped sourcesNotice, opt-out and basis work for personal data
Main riskContract or property claims even where access is openAssuming public means free to use
Use it whenDesigning a crawler or reviewing a data vendorClassifying data already collected
Read the reference →

Frequently asked questions

Is web scraping legal?

It depends on what is scraped and how. In the United States, the hiQ court found serious questions about whether the CFAA reaches public pages that need no password 2. Contract, copyright and privacy claims can still apply, so no single rule makes all scraping legal or illegal 2.

Did hiQ v. LinkedIn make scraping public data legal?

No. The Ninth Circuit upheld a preliminary injunction, which is an early ruling, and found that hiQ had raised serious questions under the CFAA 2. The opinion also lists other claims a site may still bring, such as trespass to chattels and breach of contract 2.

Does the GDPR apply to scraped data?

Yes, when the scraped data relates to an identifiable person. Article 14 requires the controller to give people information such as the purposes, the legal basis and the source, including whether it was publicly accessible 3. Company-level data with no person attached falls outside it.

Does RichAPI scrape behind logins?

RichAPI says it does not operate accounts on third-party websites 4. Its website endpoints read public pages, and a page that needs a login returns the login page 4. Contact and company results come from licensed third-party data sources 4.

The bottom line

Scraping legality is a set of questions about access, contract, content and personal data, not a single rule. U.S. courts have narrowed computer access claims for open pages, while leaving contract and property claims available 12. Personal data adds GDPR duties such as Article 14 notice 3. Ask any data vendor where its data comes from and under what terms 4.

Sources

  1. Van Buren v. United States, No. 19-783 (2021), Supreme Court of the United States
  2. hiQ Labs, Inc. v. LinkedIn Corp., No. 17-16783, opinion on remand (2022), U.S. Court of Appeals for the Ninth Circuit
  3. Art. 14 GDPR, gdpr-info.eu (Regulation (EU) 2016/679)
  4. Website Intelligence API: Tech Stack, Pixels, Emails, RichAPI

More terms