Is Scraping Twitter Legal? X's Terms and Court Cases (2026)
Is scraping Twitter legal? What X's October 2026 terms say, five court cases with dates, the public vs logged-in line, and how the risk changes by use.
Tarun Khatri
Published · Updated · 7 min read
Scraping public Twitter posts is unlikely to be a crime in the US, but X's terms forbid it, so it can still get you sued.
This guide is for developers, researchers and marketers who want X (Twitter) data and want to know the risk first. You get X's own words, five court cases with dates, and a table of how the risk changes by use.
We run Weir, a paid API for public X data, so weigh our view knowing that. This is not legal advice.
Here is the line in X's terms that matters most, as of October 2026:
crawling or scraping the Services in any form, for any purpose
without our prior written consent is expressly prohibited
Is scraping Twitter legal? What X's terms say
X's Terms of Service forbid scraping in plain words. The version in force since 9 October 2026 says you "cannot scrape the Services without X's express written permission."
The same terms ban trying "to work around any technical limitations we impose." They also put a price on heavy use:
The damages clause covers "requesting, viewing, or accessing" more than 1,000,000 posts in a day. Users in the EU, EFTA states and the UK get a version priced in euros.
One phrase softens it. The ban applies "except as required by applicable law," which leaves room for any law that requires access.
So breaking X's terms is a contract question first. A contract claim is a lawsuit for money or an order to stop. It is not a criminal charge.
What courts have said about scraping
US courts have heard five cases that shape the answer. Here is the short version, newest last:
| Case | Year | Court | Result |
|---|---|---|---|
| Van Buren v. US | 2021 | Supreme Court | Narrowed the anti-hacking law |
| hiQ v. LinkedIn | 2022 | 9th Cir., N.D. Cal. | hiQ lost on contract, paid |
| Meta v. Bright Data | 2024 | N.D. Cal. | Logged-out scraping no breach |
| X v. CCDH | 2024 | N.D. Cal. | Dismissed as a SLAPP |
| X v. Bright Data | 2025 | N.D. Cal. | Settled, terms confidential |
The table hides the details that matter, so here they are.
- Van Buren (June 2021). The Supreme Court read the US anti-hacking law, the CFAA, as a "gates-up-or-down" question. Either you may enter a system or you may not. A footnote left open whether a website's terms can close the gate.
- hiQ v. LinkedIn (2022). The Ninth Circuit found "serious questions" over whether scraping public profiles broke the CFAA. Then a trial court found hiQ broke LinkedIn's user agreement through scraping and fake accounts, and hiQ agreed to a $500,000 judgment.
- Meta v. Bright Data (January 2024). Judge Edward Chen held that Meta's terms did not bar Bright Data's logged-out scraping. Meta then dropped the case.
- X v. CCDH (March 2024). X sued a nonprofit for scraping X for its research reports. The court threw the case out as a SLAPP, a suit meant to punish speech. X appealed, and we could not confirm how the appeal ended.
- X v. Bright Data (2024 to 2025). In May 2024 Judge William Alsup dismissed X's scraping claims, holding that copyright law preempted them. In November 2024 he let X revive claims that scrapers strained its servers. The two sides settled in June 2025.
Public data vs logged-in scraping
The clearest line in these cases is the login. Public pages are, in Van Buren's words, a gate that is up.
Logging in changes three things for you:
- You accepted the terms. A signed-in account is a clear contract, and Meta's loss turned on Bright Data being logged out.
- Fake accounts count against you. hiQ's use of them helped LinkedIn win on contract.
- Protected posts are not public. Reading them means going past a gate X closed.
Getting around blocks is a separate risk. X's terms ban it outright, and it moves you toward the "gates down" side of the CFAA. We don't explain how to do it, and Weir doesn't either.
Is it legal to scrape Twitter for research, business or AI?
What you do with the data moves the risk as much as how you got it. This table is a starting point for a talk with a lawyer, not a ruling:
| Your use | Main risk | Safer route |
|---|---|---|
| Read a few posts by hand | Very low | X's own search |
| Academic research | Terms, ethics review | Research access, small samples |
| Brand monitoring | Terms, volume damages | Official or paid API |
| Reselling raw posts | Contract, copyright | A license from X |
| Training an AI model | Terms, copyright, privacy | Ask a lawyer first |
| Profiling one person | Privacy, stalking laws | Don't |
Privacy law is the part people forget. In August 2023, 12 privacy regulators said that public personal information "is subject to data protection and privacy laws" in most places.
That group included the UK, Canada and Australia. In the EU, GDPR covers the name and posts of anyone you collect, even when the posts are public.
For studies, our guide to Twitter data for academic research covers X's route for EU research and an ethics checklist.
Where Weir fits, honestly
Weir is an API that reads public X posts and profiles for you, billed per result. It never reads protected accounts or DMs, never posts, and never needs your X account.
Weir is not licensed by or affiliated with X, so access can change. Using an API instead of your own scraper doesn't move X's terms off your desk. Our terms say you are responsible for how you use the content, and our acceptable use policy bans profiling people.
The route X permits is its own API. As of October 2026, X's pricing page lists $0.005 per post read. Our Weir vs the official X API page lays out when each one fits.
When not to use Weir
- You need X's written permission. Only X can give it, through its API or a deal.
- Your company requires licensed data. A third party can't give you that.
- You want to train a commercial AI model. Get legal advice before you collect anything.
- You want what one private person posted or liked. Don't, with any tool.
FAQ
Is it legal to scrape Twitter?
Scraping public posts is unlikely to be a crime in the US after Van Buren and hiQ. But X's terms forbid scraping without written consent, so X can still sue for breach of contract. Privacy laws like GDPR also apply. This isn't legal advice.
Can X sue you for scraping?
Yes. X has sued scrapers, including Bright Data in 2023 and a nonprofit, CCDH. X lost the main claims in both at first. The Bright Data case settled in June 2025 on terms nobody has published.
Is scraping public data illegal?
Not by itself in the US, based on the cases so far. Courts look at how you got in, whether you were logged in, and what you did with the data. The EU and UK add privacy rules for any personal data.
Does X allow scraping?
No. X's Terms of Service say "crawling or scraping the Services in any form, for any purpose" needs X's prior written consent. X's paid API is the route it permits, at $0.005 per post read as of October 2026.
Sources
All checked on 26 October 2026:
- X Terms of Service, effective 9 October 2026 (Wayback copy of 17 October 2026): https://web.archive.org/web/20261017135543/https://x.com/en/tos
- X API pricing: https://docs.x.com/x-api/getting-started/pricing
- Van Buren v. United States, No. 19-783 (decided 3 June 2021): https://www.supremecourt.gov/opinions/20pdf/19-783_k53l.pdf
- Proskauer on hiQ v. LinkedIn (8 December 2022): https://www.proskauer.com/blog/hiq-and-linkedin-reach-proposed-settlement-in-landmark-scraping-case
- Farella Braun + Martel on Meta v. Bright Data (January 2024): https://www.fbm.com/technology/publications/major-decision-affects-law-of-scraping-and-online-data-collection-meta-platforms-v-bright-data/
- MediaPost on Meta dropping its case (1 March 2024): https://www.mediapost.com/publications/article/393996/None
- Sheppard Mullin on X suing Bright Data (July 2023): https://www.sheppard.com/insights/blogs/scraping-the-bottom-of-the-barrel-x-corp-sues-bright-data-over-site-scraping
- EFF on X v. CCDH and the appeal (7 November 2024): https://www.eff.org/deeplinks/2024/11/eff-court-reject-xs-effort-revive-speech-chilling-lawsuit-against-nonprofit
- Pearl Cohen on the X v. Bright Data dismissal of 9 May 2024 (2 June 2024): https://www.pearlcohen.com/federal-court-dismisses-xs-data-scraping-claims/
- MediaPost on X reviving server claims (29 November 2024): https://www.mediapost.com/publications/article/401510/x-corp-can-revive-scraping-battle-with-bright-dat.html
- Bloomberg Law on the X and Bright Data settlement (23 June 2025): https://news.bloomberglaw.com/ip-law/musks-x-settles-data-scraping-dispute-against-israeli-data-firm
- Joint statement on data scraping by 12 privacy authorities (24 August 2023): https://www.priv.gc.ca/en/opc-news/speeches-and-statements/2023/js-dc_20230824/
- Weir terms and acceptable use policy: https://weirapp.io/terms and https://weirapp.io/acceptable-use