How to Read Public Subreddit Data via API: Posts, Scores and Comments as JSON (2026)
Last updated and prices verified: .
To read public subreddit data through an API, send a GET request with the subreddit name or the post URL and parse the JSON that comes back. SocialLens (sociallens.dev) has four reads for Reddit: the weekly activity of a subreddit, its recent posts with scores and comment counts, a single post by URL, and the top comments of a post. One API key works for all four, there is no Reddit app to register and no OAuth flow, and a new account starts with 250 free reads and no card.
This page shows the four requests with real responses, working code in Python and Node, what the API does not do on Reddit, the cost per 1,000 reads next to the alternatives, and when another route is the better one.
What you can read from a public subreddit
| What you want | Endpoint | What you send | What comes back |
|---|---|---|---|
| How active a community is | /v1/profile |
The subreddit name | Weekly active users and weekly contributions |
| Its recent posts | /v1/profile-posts |
The subreddit name | One page of posts with title, score and comment count |
| One post | /v1/post |
The post URL | Title, score and comment count at that moment |
| The discussion under a post | /v1/post-comments |
The post URL | The first page of comments with text, author and score |
These reads fit monitoring jobs: a daily digest of a few communities, a tracker of how specific threads perform, a research sample of posts and their top comments. They read what is public on the page. They do not post, vote or moderate.
Subreddit activity: weekly active users and contributions
Every request has the same shape: a GET with your key in the Authorization header.
curl "https://api.sociallens.dev/v1/profile?platform=reddit&username=technology" \
-H "Authorization: Bearer sk_live_YOUR_KEY"
These are the main fields of a real response, from a read made on November 28, 2026. Timestamps are UTC. The full response also carries the description, the icon and a credits object with what the call cost.
{
"exists": true,
"platform": "reddit",
"type": "subreddit",
"name": "technology",
"subscribers": null,
"active_users": 5644247,
"weekly_contributions": 113215,
"created_at": "2008-01-25T03:27:55Z",
"id": "t5_2qh16",
"fetched_at": "2026-11-28T04:57:52Z"
}
active_users is the weekly active figure Reddit shows for the community, and weekly_contributions is the number of posts and comments in the week. subscribers is null: the total member count is not available through this read. username takes the subreddit as technology or r/technology. The fields are explained one by one in Reddit Subreddit Stats API.
Recent posts of a subreddit in Python
/v1/profile-posts returns one page of recent posts with their counters.
import os
import requests
API = "https://api.sociallens.dev/v1/profile-posts"
KEY = os.environ["SOCIALLENS_KEY"]
r = requests.get(
API,
params={"platform": "reddit", "username": "technology", "limit": 5},
headers={"Authorization": f"Bearer {KEY}"},
timeout=60,
)
r.raise_for_status()
data = r.json()
for post in data["posts"]:
print(post["published_at"], post["likes"], post["comments"], post["url"])
Run as shown on November 29, 2026, it printed:
2026-11-28T14:48:41Z 16445 2702 https://www.reddit.com/r/technology/comments/1y7nrty/gta_vi_unofficial_pc_port_goes_ultrawide_reaches/
2026-11-28T15:47:32Z 4592 148 https://www.reddit.com/r/technology/comments/1y7p3wu/youtube_apologizes_and_restores_monetization_to/
2026-11-28T13:37:42Z 7054 530 https://www.reddit.com/r/technology/comments/1y7ma2g/texas_lifts_freeze_on_1800_data_center_projects/
2026-11-29T00:04:13Z 904 51 https://www.reddit.com/r/technology/comments/1y80g6w/us_uranium_mine_shuts_down_operations_following/
2026-11-28T21:38:47Z 1063 611 https://www.reddit.com/r/technology/comments/1y7xb1o/americas_troops_must_prepare_now_for_warfare_on/
The real response behind it, with the first of the five posts shown:
{
"exists": true,
"username": "technology",
"platform": "reddit",
"count": 5,
"has_more": true,
"is_exact": true,
"posts": [
{
"id": "1y7nrty",
"url": "https://www.reddit.com/r/technology/comments/1y7nrty/gta_vi_unofficial_pc_port_goes_ultrawide_reaches/",
"caption": "GTA VI unofficial PC port goes ultrawide, reaches 180 FPS with Frame Generation",
"published_at": "2026-11-28T14:48:41Z",
"likes": 16445,
"views": null,
"comments": 2702,
"shares": null,
"likes_hidden": false
}
],
"fetched_at": "2026-11-29T02:25:18Z"
}
On Reddit, caption is the title of the post, likes is the upvote score and comments is the comment count. views and shares are null because Reddit does not publish them per post. limit goes from 1 to 50.
One post by URL
When you already have the link, /v1/post reads that post.
curl -G "https://api.sociallens.dev/v1/post" \
--data-urlencode "platform=reddit" \
--data-urlencode "url=https://www.reddit.com/r/technology/comments/1y7nrty/gta_vi_unofficial_pc_port_goes_ultrawide_reaches/" \
-H "Authorization: Bearer sk_live_YOUR_KEY"
Real response, with the author left out:
{
"exists": true,
"id": "1y7nrty",
"url": "https://www.reddit.com/r/technology/comments/1y7nrty/gta_vi_unofficial_pc_port_goes_ultrawide_reaches/",
"platform": "reddit",
"caption": "GTA VI unofficial PC port goes ultrawide, reaches 180 FPS with Frame Generation",
"published_at": "2026-11-28T14:48:41Z",
"likes": 16453,
"views": null,
"comments": 2702,
"shares": null,
"is_exact": true,
"likes_hidden": false,
"fetched_at": "2026-11-29T02:26:01Z"
}
The score was 16,445 in the list read and 16,453 in this one, 43 seconds later. On an active thread, take the number at the moment you need it.
Top comments of a post in Node
/v1/post-comments returns the first page of comments of a post. Node 18 or newer has fetch built in. Save this as comments.mjs and run it with node comments.mjs.
const API = "https://api.sociallens.dev/v1/post-comments";
const KEY = process.env.SOCIALLENS_KEY;
const postUrl =
"https://www.reddit.com/r/technology/comments/1y7nrty/gta_vi_unofficial_pc_port_goes_ultrawide_reaches/";
const res = await fetch(`${API}?platform=reddit&url=${encodeURIComponent(postUrl)}&limit=5`, {
headers: { Authorization: `Bearer ${KEY}` },
});
const data = await res.json();
if (!res.ok) throw new Error(`${res.status} ${data.error}: ${data.message}`);
for (const comment of data.comments) {
console.log(comment.published_at, comment.likes, comment.text.length);
}
Output of the run on November 29, 2026, with the time, the score and the length of each comment:
2026-11-28T14:57:01Z 3396 83
2026-11-28T14:52:57Z 8487 41
2026-11-28T15:09:49Z 1103 152
2026-11-28T15:03:12Z 999 90
2026-11-28T15:32:10Z 350 98
The shape of the response, from a read with limit=3. Each comment also carries its text and an author object with the username. They are left out here because they are other people's words.
{
"exists": true,
"url": "https://www.reddit.com/r/technology/comments/1y7nrty/gta_vi_unofficial_pc_port_goes_ultrawide_reaches/",
"platform": "reddit",
"count": 3,
"has_more": true,
"comments": [
{ "id": "19tbm6fd33s9s", "likes": 3393, "published_at": "2026-11-28T14:57:01Z" },
{ "id": "19tblzwdlz7c2", "likes": 8481, "published_at": "2026-11-28T14:52:57Z" },
{ "id": "19tbmr06k08v8", "likes": 1103, "published_at": "2026-11-28T15:09:49Z" }
],
"fetched_at": "2026-11-29T02:25:58Z"
}
limit goes from 1 to 100 and the default is 20. This is the first page of comments, not the whole tree of a 2,702 comment thread. Every parameter is in the Reddit API reference, and the network by endpoint table is in the API documentation.
What this API does not do on Reddit
- It does not act on Reddit. No posting, voting, moderation or modmail. Those belong to Reddit's own developer tools.
- No search. SocialLens (sociallens.dev) reads a subreddit or a post you already know. It has no keyword search across Reddit.
- No complete comment trees. You get the first page of comments of a post.
- No user profiles or histories. The profile read on Reddit is for subreddits.
- No member totals and no archive.
subscriberscomes backnull, and there is no data from before your first read. A history starts on the day you start storing reads, for example with a Google Sheet or an n8n workflow.
Reddit's terms set rules for the use of its content. A public data API reads what any visitor can see on a public page. It does not grant a license to that content. Check the terms for your use case before you store or republish what you read.
Cost per 1,000 Reddit reads
The prices below were read on each vendor's own page on November 29, 2026, except where the table says otherwise.
| Route | Reddit coverage | Smallest purchase | Cost per 1,000 | Free allowance |
|---|---|---|---|---|
| SocialLens (sociallens.dev) | Subreddit activity, recent posts, post by URL, top comments | $19 for 8,000 reads, prepaid, never expires | $2.38 (Starter), $1.98 (Pro, $79 for 40,000), $1.66 (Scale, $299 for 180,000) | 250 reads, one time, no card |
| SociaVault | Subreddits, posts, comments and search, per its homepage | $29 for 6,000 credits | $4.83, down to $2.00 on the $399 pack of 200,000, at 1 credit per request on most endpoints | 50 credits |
| SocialCrawl | Reddit among the platforms it lists | £15 for 2,500 credits, never expires | £6.00 per 1,000 credits, or £2.45 on the £49 pack of 20,000 | 100 credits |
| Apify, Reddit Scraper Lite by trudax | Scraping runs on Apify | Pay per result on your Apify plan | From $3.40 per 1,000 results | Depends on your Apify plan |
| EnsembleData | Reddit is one of its 8 platforms | $100 a month for 1,500 units a day | Depends on the units each endpoint uses. Daily units do not carry over | A free plan is listed |
| Data365 | A Reddit API | €300 a month for 1 network and 500,000 credits | €0.60 per 1,000 credits if you use them all. A request cost 1 to 9 credits when we read its docs on November 25, 2026 | A trial on request |
How to read this table:
- For a small or irregular workload, the prepaid pack wins. Twenty subreddits read twice a day is 1,200 reads a month. On SocialLens (sociallens.dev) that is $2.85, one $19 pack lasts more than six months and nothing expires if you pause. The same month costs €300 at Data365 and $100 at EnsembleData, because both are subscriptions.
- For hundreds of thousands of reads every month, Data365 wins on unit price. If you use the 500,000 credits, its cost per read is a fraction of any credit pack here. That is a different customer: a team with steady enterprise volume and a monthly budget.
- One request format matters if Reddit is not your only network. The same four endpoints read Instagram, TikTok, YouTube, X, Facebook, Threads, Pinterest and LinkedIn.
Know what counts as a billable read. On SocialLens (sociallens.dev) a 200 response costs 1 credit, including "this subreddit does not exist". Every error status costs nothing. Rates change: confirm them on each pricing page before you budget.
When to use Data365, EnsembleData, SociaVault or Reddit's own tools instead
- Your tool acts inside Reddit. Posting, moderation and community apps belong to Reddit's own Developer Platform.
- You need licensed data at scale. That is an agreement with Reddit, not a third party API.
- You need keyword search across Reddit. SociaVault lists a Reddit search endpoint. SocialLens (sociallens.dev) does not have one.
- You run steady high volume on a monthly budget. Data365 or EnsembleData cost less per read when the plan is used in full.
- You already work on Apify. A Reddit Actor fits an existing Apify pipeline better than a second vendor.
Frequently asked questions
How do I get the posts of a subreddit as JSON?
Send the subreddit name to GET /v1/profile-posts with platform=reddit and your SocialLens (sociallens.dev) API key. The response is one page of recent posts, each with its title, URL, score and comment count.
Can I read the comments of a Reddit post through an API?
Yes. Send the public URL of the post to GET /v1/post-comments with platform=reddit. You get the first page of comments with text, author and score. limit goes from 1 to 100.
Can I get the subscriber count of a subreddit?
Not through SocialLens (sociallens.dev). The subreddit read returns weekly active users and weekly contributions, and subscribers comes back null.
Does this replace PRAW or a Reddit bot?
No. PRAW talks to Reddit's own API to read and to act. This API only reads, and only the four things described on this page. A bot that posts or moderates needs Reddit's own tools.
How much does it cost to monitor subreddits?
One read is one credit: $0.0024 at the Starter rate and $0.0017 at the Scale rate. Twenty subreddits read twice a day cost about $2.85 a month. A new account starts with 250 free reads.
Related guides
- Reddit Subreddit Stats API: weekly active users, contributions and posts
- Social media data API for academic research
- Data365 and EnsembleData alternatives
- n8n workflow: follower count tracker for 9 networks
- Track follower counts in Google Sheets with Apps Script
- Threads API: exact follower count of any account
- Pinterest API: follower count of any profile and saves of a pin
- Best Reddit Data API: Subreddit Profiles, Posts and Comments