Platforms
Read Reddit accounts and communities, posts with their comment threads and captions, search and trending.
Read accounts with their posts and comments, communities with their rules and posts, a post with its comment thread, and what Reddit shows by search and trend.
Quick Reference
| Property | Value |
|---|---|
| Endpoints | 17 |
| Accounts by | handle or url |
| Communities by | name or url |
| Posts by | url or id |
| Posts a page | 25 |
| Transcripts | Yes, 10 credits |
| Counts | Score and comments, no views |
Accounts
| Endpoint | Returns | Credits |
|---|---|---|
profile | A profile with its karma and trophies. | 1 |
profile/comments | An account's comments, newest first, 25 a page. | 2 |
profile/posts | An account's posts, newest first, 25 a page. | 1 |
Read a Profile
import { SocialAPI } from "@socialapihq/sdk";
const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });
const { data } = await client.reddit.profile({ handle: "spez" });{
"data": {
"id": "1w72",
"username": "spez",
"displayName": null,
"bio": "Reddit CEO",
"avatarUrl": "https://styles.redditmedia.com/t5_3k30p/styles/profileIcon_uj015iwx9s7g1.png?width=256&height=256&crop=256:256,smart&s=aa819b0964f6e3019e769d1cc8ede7318c3869a3",
"url": "https://www.reddit.com/user/spez/",
"verified": true,
"private": false,
"followers": null,
"following": null,
"likes": null,
"posts": null,
"externalUrl": null,
"createdAt": "2005-06-06T04:00:00.000Z",
"ext": {
"karma": {
"total": 941417,
"post": 184793,
"comment": 756624,
"awardee": 0,
"awarder": 0
},
"employee": true,
"moderator": true,
"premium": true,
"suspended": false,
"bannerUrl": "https://b.thumbs.redditmedia.com/KWeEpVxXOGLoloMbM0IxGt9EiKPXizpwFgcSeWqtpZM.png",
"trophies": [
{
"name": "15-Year Club",
"iconUrl": "https://www.redditstatic.com/awards2/15_year_club-70.png",
"grantedAt": "2026-06-06T04:00:00.000Z"
},
{
"name": "Second",
"iconUrl": "https://www.redditstatic.com/awards2/second_participant-70.png",
"grantedAt": "2021-04-08T03:50:00.000Z"
},
{
"name": "Inciteful Link",
"iconUrl": "https://www.redditstatic.com/awards2/inciteful_link-70.png",
"grantedAt": "2021-03-25T08:28:08.000Z"
}
]
}
}
}- A profile's
ext.karmasplits its karma by posts, comments and awards. - Its
extalso says whether it is an employee or a moderator, with its trophies. - A suspended account returns
410 SUSPENDED, at no cost. - An account's posts and comments take
sort:new(the default),hot,toporcontroversial, andtime.
Communities
| Endpoint | Returns | Credits |
|---|---|---|
subreddit | A community with its members, rules and weekly visitors. | 1 |
subreddit/posts | A community's posts, 25 a page. | 1 |
subreddit/search | Posts in one community matching a query, about 7 a page. | 1 |
- A community has its members, its visitors and contributions over the week, and its rules.
- Its posts take
sort:hot(the default),new,top,risingorcontroversial. - Top and controversial posts take
time:hour,day,week,month,yearorall. - The
newfeed has titles, scores and comment counts; read a post for its text and media.
Posts
| Endpoint | Returns | Credits |
|---|---|---|
post | One post with its score, comment count and media. | 1 |
post/comments | A post's comments with their replies, a page at a time. | 5 |
post/comment/replies | A comment's replies, 10 a page. | 1 |
post/transcript | A video post's captions as text. | 10 |
Post Fields
- The
textis the body, andext.titlethe title. - The
stats.likesis its score, withext.upvoteRatio. - Its
mediais its video, its gallery or its image, and a crosspost's are the original's.
Comments
- A page has about 25 comments with their replies a few levels deep, 10 more a next page.
- A reply's
parentIdnames the comment it answers, andext.depthhow deep it sits. - Comments take
sort:best(the default),top,new,old,controversialorqa. - A comment's further replies come from
post/comment/replies, by itsext.url.
Transcripts
A transcript is the caption track Reddit made for a video post. A video without one returns 404, at no cost.
Discovery
| Endpoint | Returns | Credits |
|---|---|---|
search | Posts matching a query across Reddit, about 7 a page. | 1 |
search/comments | Comments matching a query across Reddit, about 9 a page. | 1 |
search/media | Image and video posts matching a query, about 7 a page. | 1 |
search/subreddits | Communities matching a query, 25 a page. | 1 |
search/users | Accounts matching a name, the first 25. | 1 |
trending | What is hot on Reddit now, 25 a page. | 1 |
trending/searches | The searches Reddit shows as trending now. | 1 |
- Search takes
sort:relevance(the default),hot,top,neworcomments, andtime. - A search result has the words it matched in
ext.snippet. - Trending is
r/popularwhere the request is answered from, and the searches Reddit shows as trending.