Is Social Media Scraping Legal? What the 2026 Rules Actually Say
In the US, collecting publicly accessible social media data without logging in is generally not a crime under federal computer-access law. That is the core lesson of hiQ v. LinkedIn. But "not a crime" is not the same as "allowed." Platform terms of service can still be enforced as a contract, copyright can attach to content, and privacy laws like GDPR apply to personal data even when it is public. The risky zone is anything behind a login, anything that bypasses a block, and personal data collected at scale.
This guide separates those questions, explains what the major cases actually decided (including how hiQ ended), and gives you a risk ladder you can use. It is not legal advice. For your specific use case, talk to a lawyer.
Three legal questions, three different answers
Most confusion about scraping comes from treating it as one question. It is at least three:
- Computer-access law. In the US this is mainly the Computer Fraud and Abuse Act (CFAA). The question: did you access a computer "without authorization"?
- Contract law. If you agreed to a platform's terms of service, and those terms ban automated collection, the platform can sue for breach of contract. This is a civil claim, not a criminal one.
- Privacy and data protection law. GDPR in the EU, UK GDPR, and US state laws like the California CCPA and Illinois BIPA. The question: are you processing personal data, and do you have a lawful basis to do so?
A practice can pass the first test and fail the second or third. That is why "scraping is legal" headlines mislead.
hiQ v. LinkedIn: the CFAA win, and how the case actually ended
hiQ Labs collected public LinkedIn profiles to build workforce analytics. LinkedIn sent a cease-and-desist and blocked it, and hiQ sued.
The CFAA part. The Ninth Circuit held that scraping publicly accessible profiles likely did not violate the CFAA, because data open to anyone on the internet has no "gate" to be unauthorized past. After the Supreme Court sent the case back for another look, the Ninth Circuit reaffirmed that conclusion in April 2022.
The part most articles leave out. The case went back to the district court in the Northern District of California. In a November 2022 summary judgment order, the court ruled that LinkedIn's user agreement provisions prohibiting scraping and fake profiles were enforceable in a breach of contract claim. hiQ had used accounts and fake profiles in parts of its operation. It then accepted a $500K judgment and a permanent injunction.
The practical lesson: winning on the CFAA does not protect you from a contract claim. If you or your contractors hold accounts on the platform, the terms you agreed to follow you.
Van Buren: the Supreme Court narrows the CFAA
In Van Buren v. United States (2021), the Supreme Court read the CFAA's "exceeds authorized access" language narrowly. It framed the question as whether a gate is up or down for you, not whether you used data for a purpose the owner dislikes. That ruling is why the Ninth Circuit's second hiQ decision came out the way it did.
What Van Buren does not do: it does not bless bypassing logins, CAPTCHAs, IP blocks or other technical barriers. Those look much more like a closed gate.
Meta v. Bright Data and X v. Bright Data (2024)
Both cases involve Bright Data, a large data and proxy provider, and both were decided by trial courts in the Northern District of California.
Meta v. Bright Data. The key holding turned on being logged off. The court found that Bright Data did not "use" Facebook or Instagram, as Meta's terms define it, when it scraped public data while logged out. Meta's terms bound users, and logged-off collection was not use. The ruling still allowed Meta to amend its allegations and to pursue a claim that Bright Data interfered with Meta's contracts with other companies, so it was not a blanket clearance.
X v. Bright Data. X argued its terms let it stop others from collecting public posts. The court rejected much of this, reasoning partly on copyright preemption: users own their posts and X holds a non-exclusive license, so X cannot use contract law to create something like a copyright over content it does not own. The court allowed only narrow access-based claims to be repleaded.
How much weight to give these. They are single district court rulings, not appellate precedent. They are persuasive and widely cited, but they do not bind other courts, and they do not make all commercial scraping "settled law." As of this writing, hiQ, Van Buren and these two rulings remain the main US reference points. Check for newer decisions before relying on any of them.
Why "no login" matters so much
The thread running through hiQ's contract loss and Meta's loss against Bright Data is the account:
- Logged in: you agreed to the terms. A scraping ban in those terms is a contract you can breach. Fake accounts make it worse.
- Logged out, public pages: you never agreed to anything, and there is no gate on the CFAA side. This is the strongest position in US law today.
- Bypassing a block: once you defeat a login wall, CAPTCHA or deliberate technical barrier, you are in a different and riskier legal zone.
Privacy law: public does not mean free to use
This is where vendor-written guides tend to go quiet. Data protection authorities from several countries issued joint statements in 2023 and 2024 on data scraping. Their message was direct: publicly accessible personal data remains subject to data protection and privacy laws in most jurisdictions.
EU and UK. GDPR treats a public profile of an individual (name, handle, photo, bio, posts) as personal data. You need a lawful basis, typically legitimate interests with a documented balancing test, plus transparency and data minimization. GDPR can apply to companies outside the EU when they monitor the behavior of people in the EU, so "we are a US company" is not a defense on its own.
US states. The CCPA gives Californians rights over personal information, and its exception for publicly available information is narrower than many assume. Illinois BIPA regulates biometric identifiers. Building face templates from scraped profile photos is a well-known way to create BIPA exposure.
Copyright. Facts like a follower count are not copyrightable. Captions, photos, videos and long-form text can be. Reading a number is a different act from republishing someone's photo.
Other jurisdictions. Rules differ widely. Any claim that scraping is legal "in most jurisdictions" based only on US cases is unsupported. Get local advice for each market you operate in.
Risk ladder: from lowest to highest risk
| Risk level | What you collect | How you collect it | Main exposure |
|---|---|---|---|
| Lowest | Public, non-personal data (brand pages, company accounts, aggregate counts) | Logged out, polite request rates | Low; still check copyright on content |
| Low to moderate | Public profiles of individuals, small scale, clear purpose | Logged out | GDPR/CCPA obligations apply |
| Moderate | Public personal data at scale, profiling, enrichment | Logged out | Privacy law, regulator scrutiny |
| High | Anything requiring an account | Logged in, terms accepted | Breach of contract, as in hiQ |
| Highest | Private accounts, DMs, biometrics, data behind blocks | Fake accounts, bypassed CAPTCHAs or blocks | CFAA, contract, BIPA, GDPR together |
A practical do and don't list
- Do stay logged out and read only what any visitor can see.
- Do keep request rates reasonable; don't degrade a platform's service.
- Do minimize: collect the fields you need, not everything you can.
- Do document your purpose and lawful basis if personal data is involved.
- Don't create fake accounts or use accounts in ways the terms ban.
- Don't bypass logins, CAPTCHAs or IP blocks.
- Don't touch private accounts or private messages.
- Don't build biometric data from photos.
- Don't republish copyrighted content wholesale without a basis to do so.
Official APIs: the most clearly authorized route
Official APIs are explicitly authorized by the platform, which removes the contract question for the data they cover. The trade-off is that they are often gated behind app review, rate limited, or restricted to a narrow set of fields, and they usually only cover accounts that connect to your app. Meta's Platform Terms and the TikTok for Developers portal are the places to check what each platform authorizes. For a side-by-side view, see Social Media APIs Compared and TikTok Research API vs a Public Data API.
Platform terms change. Reddit, X and others have revised data access terms in recent years, so check current terms rather than relying on an older blog post's claims about what a platform "permits."
Who carries the risk
Three parties sit in any data pipeline, and each carries different risk:
- The platform sets terms and can enforce them against anyone bound by them.
- The collector (whoever runs the requests) carries the access-method risk: logins, blocks, rate limits, fake accounts.
- The user of the data carries the use risk: what personal data you store, why, for how long, and what you do with it.
Using a data API shifts some collection-method risk to the provider. It does not shift your privacy obligations. If you build a profile database of EU individuals, GDPR applies to you no matter which tool fetched the data.
How SocialLens fits
SocialLens is a read-only public data API. It reads what a logged-out visitor can see on a public profile or post, across 17 networks, through one key and one JSON schema. It never posts, never acts as an account, and never reads private accounts, DMs or anything behind a login.
curl "https://api.sociallens.dev/v1/profile?platform=instagram&username=nike" \
-H "Authorization: Bearer sk_live_YOUR_KEY"
A private account comes back flagged rather than opened:
{ "exists": true, "private": true }
A handle that does not exist returns "exists": false, and fields the source does not expose come back null, not a guess. That design keeps you on the logged-out, public side of the ladder. It does not make your use of personal data compliant for you. Public profiles of individuals are still personal data under GDPR, so minimization and a lawful basis remain your job.
Options compared by collection model
| Option | Collection model | Login involved | Your remaining obligations |
|---|---|---|---|
| SocialLens | Read-only public data API, logged out | No | Privacy law for any personal data you keep |
| Official platform APIs | Platform-authorized, often app review | App plus connected accounts | Platform terms plus privacy law |
| Phyllo | Creator-permissioned connect flow | Creator authorizes access | Consent records plus privacy law |
| Apify | Platform of scraper actors | Depends on the actor you choose | Review each actor's method, plus privacy law |
| Bright Data | Proxies, scrapers and datasets | Depends on product and setup | Collection method review plus privacy law |
| DIY scraper | You run everything | Your choice | All of it: access, contract, privacy, maintenance |
If you are weighing self-hosted collection, Bright Data social media alternative and Apify Alternative for Social Media Data cover the operational side. Researchers should also read Social Media Data for Academic Research After CrowdTangle.
What this guide does not cover
This is a general overview, not legal advice. It does not cover criminal law outside the CFAA, sector rules (finance, health, employment screening), law in specific non-US and non-EU countries, or contractual terms in your own customer agreements. AI training on scraped content raises its own copyright and privacy questions that are actively being litigated. A lawyer who knows your jurisdiction and use case should review anything material.
FAQ
Is social media scraping legal in the US? Reading publicly accessible data while logged out is generally not a CFAA violation after hiQ v. LinkedIn and Van Buren. Contract, copyright and privacy law still apply, so "not a crime" is not the same as "no risk."
Did hiQ win against LinkedIn? On the CFAA question, yes. But in November 2022 the district court held LinkedIn's anti-scraping terms enforceable as a contract, and hiQ accepted a $500K judgment and a permanent injunction.
Does GDPR apply to public social media data? Yes, when it is personal data about individuals. Data protection authorities have stated that publicly accessible personal data remains subject to privacy law, and GDPR can reach non-EU companies that monitor people in the EU.
Why does being logged out matter? Logging in usually means accepting the platform's terms, which can ban scraping. In Meta v. Bright Data, the court found logged-off collection of public data was not "use" under Meta's terms.
Is using a data API safer than running my own scraper? A read-only, logged-out, public-data API removes the account and block-bypassing risks from your side. Your obligations for how you store and use personal data stay with you.
Should I talk to a lawyer? Yes, for anything commercial or involving personal data at scale. This article explains the landscape; counsel applies it to your facts.