X API Access for Academic Research: What You Get in 2026
The End of Free Academic Access
In early 2023, Twitter (now X) shut down the Academic Research API, a program that gave verified researchers free access to the full archive of public tweets. For years this was the backbone of computational social science, and thousands of published papers relied on it for everything from tracking misinformation to monitoring public health crises
The shutdown wasn't gradual either. One day the keys worked, the next they didn't. Research teams with multi-year longitudinal studies suddenly lost their data pipeline, and IRB-approved projects had to scramble for alternatives mid-study
If you're a researcher in 2026, here's what you need to know about the current landscape
Current X API Pricing for Research
X now bills its API pay-per-use (since February 2026). The older flat Basic ($200/month) and Pro ($5,000/month) subscriptions are legacy plans. Here's what the official rates mean for research:
Pay-per-use made small pilots affordable, but cost still scales linearly with volume. A typical NSF grant allocates $5K-15K for the entire data collection phase, not per month, and that buys roughly 1M to 3M post reads at $0.005, before counting retries and duplicate reads
The math still bites at scale: a study that needs 5M tweets costs roughly $25,000 at $0.005 per post, which is more than many graduate student stipends
What Data Do Researchers Actually Need?
Based on published methodology sections across top venues (ICWSM, CHI, WWW, CSCW), academic Twitter research typically requires:
Tweet Collections
Network Data
User Metadata
Temporal Data
Legal Considerations
Before collecting any Twitter data, researchers must navigate several legal frameworks:
X Terms of Service
GDPR (EU Researchers)
CCPA (US/California)
Copyright
Ethical Guidelines
Legal compliance is the floor, not the ceiling. Here's what IRBs and ethics boards expect:
Informed Consent
The standard in social media research is evolving. Most IRBs accept that public tweets don't require individual consent, but:
Anonymization
Standard practice includes:
IRB Requirements
Data Retention
Alternative Data Collection Methods
With the official API priced out of reach for most academics, researchers have turned to several alternatives:
1. Third-Party API Services
Services that aggregate Twitter data and offer it at lower price points. These typically maintain their own data collection infrastructure and pass savings to users. Pricing ranges from $5-50/month for volumes that would cost $5K+ on the official API
2. Pre-Built Datasets
Several repositories host curated Twitter datasets:
The downside: you're limited to what someone else already collected
3. Pushshift / Archive Projects
Community-driven archives that capture public social media data. Availability and legality vary by jurisdiction
4. Collaborative Collection
Pool resources with other research groups. If five labs each contribute $1K/month to a shared pay-per-use API account, everyone benefits
5. Qualitative Approaches
For smaller studies, manual collection of publicly visible tweets is both legal and ethically straightforward. Tools like screenshots with consent can work for studies under 1,000 tweets
Sample Research Use Cases
Misinformation Tracking
Collecting tweets containing specific claims during breaking news events, tracking how they spread through retweet networks, and measuring the reach of corrections
Data needs: Real-time search, conversation threads, retweet cascades, user network data. Typically 100K-1M tweets over 1-4 weeks
Public Health Surveillance
Monitoring symptom mentions, vaccine sentiment, or health behavior discussions across geographic regions
Data needs: Keyword-based search with location filtering, longitudinal collection over months, user bio parsing for demographics. Typically 500K-5M tweets
Political Discourse Analysis
Studying how political narratives form, spread, and evolve on the platform during elections or policy debates
Data needs: Full conversation threads, quote tweet chains, user political alignment classification, temporal analysis. Typically 1M-10M tweets
Community Detection
Identifying and mapping online communities around specific topics (crypto, gaming, activism) through interaction networks
Data needs: Follower/following graphs, mention networks, reply threads, user metadata. Typically 50K-500K users
Structuring a Research Dataset
Here's a practical Python example for collecting and organizing Twitter data for research. This covers the anonymization and metadata layer; for the full collection/export toolkit (search pagination, batch user lookup, network data, CSV/JSON export, credit budgeting) see Export Twitter Data for Research
import requests import json import hashlib import os from datetime import datetime class ResearchDataCollector: """Collect and structure Twitter data for academic research.""" def __init__(self, api_key, output_dir="research_data"): self.api_key = api_key self.base_url = "https://xcrop.io/api/v2" self.headers = {"Authorization": "Bearer " + api_key} self.output_dir = output_dir os.makedirs(output_dir, exist_ok=True) def anonymize_user(self, username): """Generate a consistent anonymous ID for a username.""" hash_val = hashlib.sha256(username.encode()).hexdigest()[:12] return "USER_" + hash_val def collect_search_results(self, query, max_pages=5): """Collect tweets matching a search query.""" all_tweets = [] cursor = None for page in range(max_pages): payload = { "query": query, "count": 20, "sort": "latest" } if cursor: payload["cursor"] = cursor response = requests.post( self.base_url + "/search", headers=self.headers, json=payload ) if response.status_code != 200: print("Error on page " + str(page) + ": " + str(response.status_code)) break result = response.json() tweets = result.get("data", []) all_tweets.extend(tweets) cursor = result.get("meta", {}).get("next_cursor") if not cursor: break print("Page " + str(page + 1) + ": collected " + str(len(tweets)) + " tweets") return all_tweets def anonymize_dataset(self, tweets, follower_counts=None): """Remove identifying information from tweets. follower_counts: optional {username: followers} map, e.g. built from POST /v2/users/batch (the tweet author already carries id, username, name, followers, verified badge and avatar; the batch call is for the other profile fields). """ follower_counts = follower_counts or {} anonymized = [] for tweet in tweets: metrics = tweet.get("metrics", {}) username = tweet.get("author", {}).get("username", "unknown") record = { "tweet_id": tweet.get("id"), "text": tweet.get("text", ""), "created_at": tweet.get("created_at", ""), "likes": metrics.get("likes", 0), "retweets": metrics.get("retweets", 0), "replies": metrics.get("replies", 0), "views": metrics.get("views", 0), "user_anon_id": self.anonymize_user(username), "user_followers_bucket": self._bucket_followers( follower_counts.get(username, 0) ), "is_reply": bool(tweet.get("is_reply")), "is_quote": bool(tweet.get("is_quote")), "is_retweet": bool(tweet.get("is_retweet")) } anonymized.append(record) return anonymized def _bucket_followers(self, count): """Bin follower counts to prevent re-identification.""" if count < 100: return "<100" elif count < 1000: return "100-1K" elif count < 10000: return "1K-10K" elif count < 100000: return "10K-100K" else: return "100K+" def save_dataset(self, data, filename): """Save dataset as JSON Lines (one record per line).""" filepath = os.path.join(self.output_dir, filename) with open(filepath, "w") as f: for record in data: f.write(json.dumps(record) + "\n") print("Saved " + str(len(data)) + " records to " + filepath) def generate_metadata(self, query, tweet_count): """Generate a metadata file documenting the collection.""" metadata = { "collection_date": datetime.now().isoformat(), "query": query, "total_tweets": tweet_count, "anonymized": True, "follower_counts_bucketed": True, "fields_removed": [ "username", "display_name", "profile_url", "bio", "location", "profile_image" ], "retention_plan": "Delete raw data after publication", "irb_protocol": "YOUR_IRB_NUMBER_HERE" } filepath = os.path.join(self.output_dir, "collection_metadata.json") with open(filepath, "w") as f: json.dump(metadata, f, indent=2) print("Metadata saved to " + filepath) # Usage example collector = ResearchDataCollector(api_key=os.environ["XCROP_API_KEY"]) # Collect tweets about a research topic tweets = collector.collect_search_results("vaccine sentiment", max_pages=10) # Anonymize the dataset clean_data = collector.anonymize_dataset(tweets) # Save for analysis collector.save_dataset(clean_data, "vaccine_sentiment_anon.jsonl") collector.generate_metadata("vaccine sentiment", len(clean_data))
Data Storage Best Practices
Once you have your dataset, proper storage is critical:
File Formats
Storage Security
Version Control
Reproducibility
Common Pitfalls
A few things that trip up first-time Twitter researchers:
Getting Started
For researchers needing cost-effective access to Twitter data, XCROP's Basic plan starts at $4.90/month ($47.04/yr if you pay yearly) with 700K credits, enough for most pilot studies. The search endpoint supports complex queries, and batch endpoints let you look up 100 tweets or users in a single call, making it practical to build research datasets without burning through a grant budget
The most important step is starting small: define your research question, estimate your data needs, run a pilot collection, and scale up once you've validated your methodology
Frequently Asked Questions
Can you still get free academic access to the Twitter/X API in 2026?
No. X retired the free Academic Research API in early 2023, and there is no dedicated academic tier in 2026. Researchers now pay the same per-request rates as everyone else, or turn to lower-cost third-party data providers
See [Current X API Pricing for Research](#current-x-api-pricing-for-research) for the current rates
How much does Twitter/X API access cost for academic research in 2026?
Since February 2026 the official API is pay-per-use: $0.005 per post read and $0.010 per user read, with no free monthly allowance and a cap of 3 million post reads per billing cycle. A 100,000 post collection costs about $500 and a 5 million post study about $25,000. Enterprise has no public price, and 2023 reports put it at $42,000 a month and up. Most grant budgets stretch only so far at those rates, which is why many researchers collect data through cheaper third-party services instead
What happened to the Twitter Academic Research API?
It was shut down in early 2023 with almost no notice. The program had given verified researchers free access to the full public tweet archive and underpinned thousands of computational social science papers. When it closed, ongoing longitudinal and IRB-approved studies lost their data pipeline overnight and had to find alternatives mid-project
Is collecting Twitter/X data legal for academic research?
Collecting public tweets through authorized API access is allowed, but you must work within X's Terms of Service (share tweet IDs rather than redistributing full text), GDPR or CCPA where they apply, and your institution's IRB or ethics review. Automated scraping without API access violates the ToS. See [Legal Considerations](#legal-considerations) and [Ethical Guidelines](#ethical-guidelines) for the full breakdown
What is the cheapest way to collect Twitter/X data for a research project?
For most pilot studies the cheapest reliable route is a third-party API that resells X data at a fraction of the official price. XCROP's Basic plan starts at $4.90/month ($47.04/yr if you pay yearly) with 700K credits, which covers a typical pilot collection without burning a grant budget. Pre-built datasets on Zenodo or Harvard Dataverse are free but limit you to what someone else already gathered
One API for X (formerly Twitter) data: profiles, tweets, followers, search and real-time streams. Start free with 10,000 credits/month, no card required