Social Media Data for Academic Research After CrowdTangle and the X API Paywall: An Affordable Multi-Platform API (2026)
Last updated and prices verified: .
Two of the data sources that social media research was built on are gone or behind a price. Twitter dismantled its free academic API access in 2023, and Meta closed CrowdTangle on August 14, 2024. This page describes one affordable way to keep collecting public social media data for research: SocialLens, a pay as you go API that reads public profiles, posts and comments on 9 networks with one request format. It also states plainly what this route cannot do, and it includes a methods paragraph and a collection script that you can adapt.
It is written for researchers and students who do not qualify for a platform research program, whose project spans several networks, or whose budget is a few hundred dollars and not a contract.
Social media data access for academic research: what changed
| When | What changed | Source |
|---|---|---|
| February 2023 | Twitter announces the end of free API access. The Academic Research access level is replaced by paid tiers | TechCrunch |
| 2023 | Twitter dismantles its academic access program and prices the Enterprise API at $42,000 a month | Murtfeldt et al., "RIP Twitter API", arXiv:2404.07340 |
| August 14, 2024 | CrowdTangle is no longer available. Meta points researchers to Meta Content Library and its API | Meta Transparency Center |
| 2026 | The X API is pay per usage, with no subscriptions: $0.005 per post read and $0.010 per user read | X API pricing documentation |
The official research routes that remain, and who qualifies
If you qualify for a platform program, use it. These are the sanctioned routes, and they offer things no third party API can, starting with search across public content.
| Route | What it covers | Who can get access |
|---|---|---|
| Meta Content Library and API | Public content on Facebook and Instagram | Researchers affiliated with a qualified academic institution, or with a not for profit institution whose main activity is scientific or public interest research. By application |
| TikTok Research Tools | Public TikTok data from accounts of creators aged 18 and over | Researchers at non profit universities in the United States and Europe, and some other not for profit organizations under limited conditions. By application, with a research proposal |
| X API | Posts and users on X | Anyone, at $0.005 per post read and $0.010 per user read. Higher volume goes through an Enterprise plan |
The gap is everyone else: independent researchers and students without an approved project, journalists, teams outside the eligible regions and institutions, and studies that compare networks which have no research program at all.
What an affordable multi-platform API reads, and what it does not
SocialLens reads public data only, with no login to any social account. One GET request per read, the same on every network:
- A profile: follower count and public profile fields on Instagram, TikTok, YouTube, X, Facebook, LinkedIn, Threads and Pinterest, and the weekly activity of a subreddit on Reddit.
- The recent posts of an account or a subreddit, each with its public counters: likes, views, comments and shares where the network publishes them.
- One post by URL, with the same counters.
- A page of comments of a post on TikTok, Instagram, YouTube, Facebook and Reddit.
A real example: the recent posts of the World Health Organization on X.
curl "https://api.sociallens.dev/v1/profile-posts?platform=x&username=WHO&limit=5" \
-H "Authorization: Bearer sk_live_YOUR_KEY"
Response read on November 25, 2026, with the first 2 of 5 posts. Timestamps are UTC. Post text is returned in the caption field and is left out here:
{
"exists": true,
"username": "WHO",
"platform": "x",
"private": false,
"count": 5,
"has_more": false,
"is_exact": true,
"posts": [
{
"id": "2125477127508107629",
"url": "https://x.com/WHO/status/2125477127508107629",
"published_at": "2026-11-25T06:30:11Z",
"likes": 307,
"views": 39590,
"comments": 17,
"shares": 154,
"likes_hidden": false
},
{
"id": "2125740730379317454",
"url": "https://x.com/WHO/status/2125740730379317454",
"published_at": "2026-11-25T23:57:39Z",
"likes": 13,
"views": 12511,
"comments": 1,
"shares": 8,
"likes_hidden": false
}
],
"fetched_at": "2026-11-26T01:01:53Z"
}
Comments come as one page per call. This is a real response for a post in r/science, with one comment shown. The comment text and the author's username are removed here on purpose, for the reasons given in the ethics section below:
{
"exists": true,
"url": "https://www.reddit.com/r/science/comments/1y5ekcu/ai_art_is_destroying_human_content_producers_in/",
"platform": "reddit",
"count": 5,
"has_more": true,
"comments": [
{
"id": "19t6iu190kqmd",
"text": "[removed on this page]",
"author": { "username": "[removed on this page]", "name": null, "verified": null },
"likes": 217,
"replies": 2,
"published_at": "2026-11-25T18:26:24Z"
}
],
"fetched_at": "2026-11-26T01:02:04Z"
}
What this route cannot do
These limits decide whether a study design is feasible, so read them before you plan:
- No search. There is no keyword, hashtag or full text search. You need a list of accounts, subreddits or post URLs fixed in advance. The search that CrowdTangle offered, and that Meta Content Library offers, is not replaced.
- No archive. A read returns what is public at the moment of the call. There are no date range queries and no historical counters. Your time series starts on the day you start collecting.
- Recent posts only. The posts call returns one page of the most recent posts of an account, about 10 to 30 depending on the network, and has no parameter to go further back. An account that publishes more than a page between two of your reads leaves a gap.
- Comments are a first page, not a census. One call returns one page of comments in the platform's default order. It is not the full thread and not a random sample.
- Nothing private or deleted. Private accounts, removed posts, direct messages and owner only metrics such as reach or audience demographics are never returned.
- No platform wide sample. There is no firehose and no random sample of a network, so prevalence across a whole platform cannot be estimated this way.
- Modest throughput. A key allows 60 requests per minute and the requests of one account are processed one at a time. That suits a panel of hundreds or a few thousand accounts, not millions.
- Not a platform program. SocialLens is an independent commercial service. Using it gives you no data use agreement with any platform and no status under a platform's research program.
The design it fits is a panel: a fixed list of public accounts or communities, such as parties, public agencies, news outlets, creators or subreddits, read on a schedule and compared over time and across networks. That is close to how many teams used CrowdTangle lists.
What a small research budget buys
Prices read on November 25, 2026. SocialLens sells prepaid packs with no subscription, and credits never expire: $19 for 8,000 reads, $79 for 40,000 and $299 for 180,000. One read is one profile, one post, one page of recent posts or one page of comments. A new account has 250 free reads, with no card, which is enough to pilot a collection script. There is no academic plan or discount: the public prices apply to everyone.
| Study design | Reads | Cost on SocialLens |
|---|---|---|
| Pilot: 100 accounts, profile once a day for 2 days | 200 | Free, inside the 250 free reads |
| Panel: 200 accounts, profile and recent posts once a day for 90 days | 36,000 | One $79 pack, with 4,000 reads left |
| Panel: 500 accounts, profile and recent posts once a day for 180 days | 180,000 | One $299 pack |
For X, the official price gives a point of comparison. A page of 10 recent posts of one account is 10 post reads on the X API, $0.05. The same page through SocialLens is 1 read, about $0.002 at the $79 pack rate. The official API gives what this route does not: search, a sanctioned relationship with the platform and, on Enterprise plans, volume. If your design needs search on X, the official API is the tool, and $200 buys 40,000 post reads there.
How this compares with other public data APIs, per 1,000 reads, is in Data365 and EnsembleData Alternatives. SocialLens is not the cheapest per read. Its fit for a research budget is the small entry price, credits that do not expire between field periods, and one schema across 9 networks.
A methods section you can adapt
Reviewers ask how the data were collected, when, with which fields, and how much is missing. The paragraph below covers those points. Replace the brackets.
Data collection. We collected public data from [networks] for a predefined list of [N]
public accounts ([sampling frame and inclusion criteria]) using the SocialLens API
(https://sociallens.dev), a commercial service that returns publicly visible profile and
post data as JSON. No platform account was logged in and no private content was accessed.
Each account was read [once per day at HH:MM UTC] between [start date] and [end date].
For every request we stored the request time, the HTTP status, the outcome (ok, private,
not found or failed) and the fetched_at timestamp returned by the API (UTC). We recorded
the fields [followers, likes, views, comments, shares] as returned. YouTube subscriber
counts are published rounded to three significant figures and are flagged is_exact: false;
the other follower counts are exact integers. Requests answered with an error status were
retried up to [3] times; [x] of [n] requests ([y]%) remained undelivered and are treated
as missing, not imputed. [k] accounts were reported as not found or private at least once.
The data reflect what was public at the time of each request: content deleted or made
private before a request is absent, and counters are point in time values. [Usernames of
private individuals were pseudonymised / no comment text was stored.] The study was
reviewed by [ethics board and reference].
A reference line for the tool, if your style guide asks for one: SocialLens (2026). SocialLens API [web service]. https://sociallens.dev. Accessed [date].
A collection script that logs every request
The failure rate in that paragraph has to come from a log, not from memory. This script reads a fixed list of accounts, writes one row per request and prints the outcome counts. It is complete and was run as shown on November 25, 2026.
import csv
import os
import time
from collections import Counter
import requests
BASE = "https://api.sociallens.dev/v1"
KEY = os.environ["SOCIALLENS_KEY"]
# The sampling frame: fixed before collection and reported in the paper.
TARGETS = [
("x", "WHO"),
("x", "NASA"),
("youtube", "WHO"),
("facebook", "WHO"),
("instagram", "who"),
("threads", "who"),
("reddit", "science"),
("x", "sl_no_such_account_4k7q9"), # does not exist: kept to show how it is logged
]
FIELDS = ["requested_at_utc", "platform", "target", "http_status", "outcome",
"audience", "audience_field", "is_exact", "fetched_at"]
def read_profile(platform, target):
requested_at = time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime())
status, body = None, {}
for attempt in range(3):
r = requests.get(f"{BASE}/profile", params={"platform": platform, "username": target},
headers={"Authorization": f"Bearer {KEY}"}, timeout=90)
status = r.status_code
if status in (409, 429, 503) and attempt < 2: # not delivered and not charged: wait, retry
time.sleep(10)
continue
if "json" in r.headers.get("content-type", ""):
body = r.json()
break
if status != 200:
outcome = "failed" # still not delivered after 3 attempts: report it, do not impute
elif not body.get("exists"):
outcome = "not_found"
elif body.get("private"):
outcome = "private"
else:
outcome = "ok"
field = "active_users" if platform == "reddit" else "followers"
return {
"requested_at_utc": requested_at, "platform": platform, "target": target,
"http_status": status, "outcome": outcome,
"audience": body.get(field), "audience_field": field,
"is_exact": body.get("is_exact"), "fetched_at": body.get("fetched_at"),
}
rows = [read_profile(platform, target) for platform, target in TARGETS]
with open("collection_log.csv", "w", newline="") as f:
writer = csv.DictWriter(f, fieldnames=FIELDS)
writer.writeheader()
writer.writerows(rows)
counts = Counter(row["outcome"] for row in rows)
print(f"requests: {len(rows)}")
for outcome in ("ok", "private", "not_found", "failed"):
print(f"{outcome}: {counts[outcome]} ({100 * counts[outcome] / len(rows):.1f}%)")
Output:
requests: 8
ok: 7 (87.5%)
private: 0 (0.0%)
not_found: 1 (12.5%)
failed: 0 (0.0%)
The log it wrote, collection_log.csv:
requested_at_utc,platform,target,http_status,outcome,audience,audience_field,is_exact,fetched_at
2026-11-26T01:02:17Z,x,WHO,200,ok,12652986,followers,True,2026-11-26T01:02:19Z
2026-11-26T01:02:19Z,x,NASA,200,ok,92087117,followers,True,2026-11-26T01:02:21Z
2026-11-26T01:02:21Z,youtube,WHO,200,ok,967000,followers,False,2026-11-26T01:02:23Z
2026-11-26T01:02:23Z,facebook,WHO,200,ok,36789422,followers,True,2026-11-26T01:02:27Z
2026-11-26T01:02:27Z,instagram,who,200,ok,11727990,followers,True,2026-11-26T01:02:32Z
2026-11-26T01:02:32Z,threads,who,200,ok,2162797,followers,True,2026-11-26T01:02:36Z
2026-11-26T01:02:36Z,reddit,science,200,ok,1838898,active_users,,2026-11-26T01:02:38Z
2026-11-26T01:02:38Z,x,sl_no_such_account_4k7q9,200,not_found,,followers,,2026-11-26T01:02:40Z
Points worth carrying into your own version:
- Keep "not found" apart from "failed". A 200 response with
exists: falseis a result: the account did not exist at that time. An error status is missing data. They belong in different lines of the paper. - Store
fetched_at. It is the time of the reading, in UTC, set by the API. Counters are meaningless without it. - Record precision. The YouTube row has
is_exactfalse because YouTube publishes a rounded subscriber count. Reddit has no follower count, so the script stores the weekly active users of the subreddit and names the field. - Read in sequence. Requests of one account are processed one at a time, so a parallel pool does not finish sooner and can produce
409responses. - Know what is billed. A delivered answer costs 1 credit, including "not found" and "private". Error statuses cost nothing, so retries do not use the budget.
The storage design for a daily panel, with snapshots in SQLite and the query that computes change over time, is in How to Track TikTok Follower Growth Programmatically. Field definitions per network are in How to Get Likes, Views and Comments for Any Post by URL, X (Twitter) Follower Count API and Reddit Subreddit Stats API.
Public data, ethics and terms of service
Affordable access does not settle the questions an ethics board will ask. These are the ones that apply to this route.
- Public is not the same as free of obligations. Posts and comments by private individuals are personal data in many jurisdictions even when anyone can see them. Data protection law and your institution's ethics review apply to the collection, the storage and the publication.
- Platform terms. The terms of service of most networks restrict automated collection. How that bears on a research project depends on the platform, the country and your institution. Raise it with your ethics board or legal office before you collect. Nothing on this page is legal advice.
- Collect the minimum. Counters of public accounts of institutions raise few issues. Comment text and usernames of ordinary users raise many. If the research question can be answered with counts, do not store text or usernames. If it cannot, pseudonymise at ingestion. That is why the comment example above has its text and author removed.
- Deletion. A post or account that is deleted after you read it stays in your dataset. Decide in advance what you will do: for example, read the URLs again before publication and drop what answers
exists: false. - Publication. Verbatim quotes can be traced to their authors with a search. Paraphrase or aggregate unless the author is a public figure acting in a public role, or you have consent.
- Sharing data for replication. Sharing post IDs or URLs with your collection timestamps lets others read the public state again without you redistributing content.
- Limits of the instrument. State in the paper that the source is a commercial API reading public pages, not a platform research program, and report the missing data rate from your log.
SocialLens reads only what a logged out visitor could see, and it does not log in to any social account. It cannot tell you whether your project is permitted. That judgment belongs to you and your institution.
The endpoint references for the networks used on this page: X API, Reddit API, YouTube API, Facebook API, Instagram API, Threads API and TikTok API.
Frequently asked questions
Is there an affordable CrowdTangle alternative for researchers?
For researchers who qualify, the official replacement is Meta Content Library. For those who do not, or whose study covers several networks, a public data API such as SocialLens can track a fixed list of public accounts and their posts on a schedule. It does not replace CrowdTangle's search.
Can I collect X data for research without the Enterprise API?
Yes, in two ways. The X API is now pay per usage, at $0.005 per post read. A public data API reads the profile and the recent posts of accounts you list, for about $0.002 per page of posts. Neither gives the free, large scale access that academic researchers had before 2023.
Do I need an institutional affiliation to use SocialLens?
No. Signup is self serve and a key is issued after you confirm your email. Responsibility for ethics review and for the terms of each platform stays with you.
Can I get historical posts or search by keyword?
No. There is no archive and no search. A read returns the current public state of an account, a post or one page of recent posts.
Is there an academic discount?
No. There is no academic plan. The public packs apply: $19, $79 and $299, with credits that never expire, and 250 free reads to test.
How do I report missing data?
Log every request with its status and outcome, as the script above does, and report the share of requests that stayed undelivered after retries, separately from accounts that were not found or private.
Which networks are covered?
Instagram, TikTok, YouTube, X, Facebook, LinkedIn, Threads, Pinterest and Reddit. Comments are available on TikTok, Instagram, YouTube, Facebook and Reddit.
Related guides
- Social media followers count API for SMM panels
- Enrich a Clay table with follower counts
- Engagement rate API for indie influencer apps
- Data365 and EnsembleData alternatives
- Track follower counts in Google Sheets with Apps Script
- Verify an affiliate applicant's social media followers
- n8n workflow: follower count tracker for 9 networks