Reddit API
17 endpoints for users, communities and comments.
Every Reddit endpoint, by group. Each is a GET under /v1/reddit.
Quick Reference
| Property | Value |
|---|---|
| Base path | /v1/reddit |
| Endpoints | 17 |
| Credits | See Below |
| Guide |
Accounts
GETProfile
/v1/reddit/profileA profile with its karma and trophies.1 creditGETProfile Comments/v1/reddit/profile/commentsAn account's comments, newest first, 25 a page.2 creditsGETProfile Posts/v1/reddit/profile/postsAn account's posts, newest first, 25 a page.1 creditCommunities
GETSubreddit
/v1/reddit/subredditA community with its members, rules and weekly visitors.1 creditGETSubreddit Posts/v1/reddit/subreddit/postsA community's posts, 25 a page.1 creditGETSubreddit Search/v1/reddit/subreddit/searchPosts in one community matching a query, about 7 a page.1 creditPosts
GETPost
/v1/reddit/postOne post with its score, comment count and media.1 creditGETPost Comments/v1/reddit/post/commentsA post's comments with their replies, a page at a time.5 creditsGETPost Comment Replies/v1/reddit/post/comment/repliesA comment's replies, 10 a page.1 creditGETPost Transcript/v1/reddit/post/transcriptA video post's captions as text.10 creditsDiscovery
GETSearch
/v1/reddit/searchPosts matching a query across Reddit, about 7 a page.1 creditGETSearch Comments/v1/reddit/search/commentsComments matching a query across Reddit, about 9 a page.1 creditGETSearch Media/v1/reddit/search/mediaImage and video posts matching a query, about 7 a page.1 creditGETSearch Subreddits/v1/reddit/search/subredditsCommunities matching a query, 25 a page.1 creditGETSearch Users/v1/reddit/search/usersAccounts matching a name, the first 25.1 creditGETTrending/v1/reddit/trendingWhat is hot on Reddit now, 25 a page.1 creditGETTrending Searches/v1/reddit/trending/searchesThe searches Reddit shows as trending now.1 creditExample Request
Every Reddit endpoint is called this way: its path, and what to read as query parameters.
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"
}
]
}
}
}Errors
A call that fails costs nothing. See Errors for every code.