Skip to Content

Platforms

Reddit

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

PropertyValue
Endpoints17
Accounts byhandle or url
Communities byname or url
Posts byurl or id
Posts a page25
TranscriptsYes, 10 credits
CountsScore and comments, no views

Accounts

EndpointReturnsCredits
profileA profile with its karma and trophies.1
profile/commentsAn account's comments, newest first, 25 a page.2
profile/postsAn 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" });
Response
{
  "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.karma splits its karma by posts, comments and awards.
  • Its ext also 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, top or controversial, and time.

Communities

EndpointReturnsCredits
subredditA community with its members, rules and weekly visitors.1
subreddit/postsA community's posts, 25 a page.1
subreddit/searchPosts 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, rising or controversial.
  • Top and controversial posts take time: hour, day, week, month, year or all.
  • The new feed has titles, scores and comment counts; read a post for its text and media.

Posts

EndpointReturnsCredits
postOne post with its score, comment count and media.1
post/commentsA post's comments with their replies, a page at a time.5
post/comment/repliesA comment's replies, 10 a page.1
post/transcriptA video post's captions as text.10

Post Fields

  • The text is the body, and ext.title the title.
  • The stats.likes is its score, with ext.upvoteRatio.
  • Its media is 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 parentId names the comment it answers, and ext.depth how deep it sits.
  • Comments take sort: best (the default), top, new, old, controversial or qa.
  • A comment's further replies come from post/comment/replies, by its ext.url.

Transcripts

A transcript is the caption track Reddit made for a video post. A video without one returns 404, at no cost.

Discovery

EndpointReturnsCredits
searchPosts matching a query across Reddit, about 7 a page.1
search/commentsComments matching a query across Reddit, about 9 a page.1
search/mediaImage and video posts matching a query, about 7 a page.1
search/subredditsCommunities matching a query, 25 a page.1
search/usersAccounts matching a name, the first 25.1
trendingWhat is hot on Reddit now, 25 a page.1
trending/searchesThe searches Reddit shows as trending now.1
  • Search takes sort: relevance (the default), hot, top, new or comments, and time.
  • A search result has the words it matched in ext.snippet.
  • Trending is r/popular where the request is answered from, and the searches Reddit shows as trending.