Skip to Content

Post Comments

A post's comments with their replies, a page at a time.

GET
/v1/reddit/post/comments

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the dashboard: Authorization: Bearer sapi_….

Query Parameters

url?string

The post's link.

id?string

The post's id, instead of url.

sort?string

best (the default), top, new, old, controversial or qa.

Value in"best""top""new""old""controversial""qa"
cursor?string

nextCursor of the previous page.

maxAge?integer

How old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.

Formatint64
Range0 <= value

Response Body

The answer.

application/json
  1. response

A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.

data*array<>
pagination*
Example Request
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data, pagination } = await client.reddit.postComments({ url: "https://www.reddit.com/r/AskReddit/comments/1y53ynl/donald_trump_just_called_senatorelect_abdul/", sort: "top" });
Example Response
{  "data": [    {      "id": "19t5xa8ukwu80",      "postId": "1y53ynl",      "parentId": null,      "text": "Appealing to his ego is ridiculously easy.",      "createdAt": "2026-11-25T10:23:15.661Z",      "author": {        "id": "",        "username": "skywalker777",        "displayName": null,        "avatarUrl": "https://www.redditstatic.com/avatars/defaults/v2/avatar_default_6.png",        "verified": false,        "url": "https://www.reddit.com/user/skywalker777/"      },      "likes": 1066,      "replies": null,      "ext": {        "url": "https://www.reddit.com/r/AskReddit/comments/1y53ynl/comment/19t5xa8ukwu80/",        "depth": 0,        "score": 1066,        "byPoster": false,        "removed": false,        "stickied": false,        "subreddit": null,        "postTitle": null,        "awards": null      }    },    {      "id": "19t5xuz1xfkzp",      "postId": "1y53ynl",      "parentId": "19t5xa8ukwu80",      "text": "If it's this easy for a Senator who hasn't even taken office yet, how difficult is it for foreign intelligence professionals?",      "createdAt": "2026-11-25T10:36:10.200Z",      "author": {        "id": "",        "username": "_SCHULTZY_",        "displayName": null,        "avatarUrl": "https://preview.redd.it/snoovatar/avatars/c95e41fc-c8bd-4cdf-aa4b-bb73980623d4-headshot.png?width=64&height=64&crop=smart&auto=webp&s=f9a69626a96f1177d6e2cb9d955adee8b5424229",        "verified": false,        "url": "https://www.reddit.com/user/_SCHULTZY_/"      },      "likes": 327,      "replies": null,      "ext": {        "url": "https://www.reddit.com/r/AskReddit/comments/1y53ynl/comment/19t5xuz1xfkzp/",        "depth": 1,        "score": 327,        "byPoster": false,        "removed": false,        "stickied": false,        "subreddit": null,        "postTitle": null,        "awards": null      }    }  ],  "pagination": {    "nextCursor": "L3N2Yy9zaHJlZGRpdC9tb3JlLWNvbW1lbnRzL0Fza1JlZGRpdC90M18xeTUzeW5sP3NvcnQ9dG9wJnRvcC1sZXZlbD0xJmNvbW1lbnRzLXJlbWFpbmluZz03NSZjb21tZW50UG9zaXRpb25PZmZzZXQ9OQpZMjl0YldWdWRIUnlaV1U2WkRCbE1tTTNaallzT2pvd09tVjRPaXhZVWtVcWFtUkZlRkk2ZEhRaWZqcFhjemQ2WDBaZ1hUZ2tSMUU5UXlWY1YxSkVmV0pqVFhWSFlGdzRSVmtwWFhNaGJtRW9OM1ZyTDM1Nkl6UnliU01yV3c9PQ",    "hasMore": true  }}