Skip to Content

Post Comments

The top replies to a post.

GET
/v1/x/post/comments

Authorization

apiKey
headerAuthorizationBearer <token>

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

Query Parameters

url?string

The post's link (https://x.com/NASA/status/2125641758432284978).

id?string

The post's id, instead of url.

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.x.postComments({ url: "https://x.com/NASA/status/2125318351341994436" });
Example Response
{  "data": [    {      "id": "2125343817897480679",      "postId": "2125318351341994436",      "parentId": null,      "text": "The fact that NASA is not only involved in this, but making statements to the public, tells me that we’re completely fucked.",      "createdAt": "2026-11-24T21:40:27.822Z",      "author": {        "id": "1511396637918339072",        "username": "drawkkwast",        "displayName": "Drawk Kwast",        "avatarUrl": "https://pbs.twimg.com/profile_images/1940340278776209408/18IGwbVJ_400x400.jpg",        "verified": true,        "url": "https://x.com/drawkkwast"      },      "likes": 20520,      "replies": 89,      "ext": {        "url": "https://x.com/drawkkwast/status/2125343817897480679",        "views": 1215786,        "reposts": 455,        "quotes": 9,        "saves": 376,        "media": [],        "language": "en",        "byAuthor": false      }    },    {      "id": "2125412853821620459",      "postId": "2125318351341994436",      "parentId": null,      "text": "Everyone in that area needs to go immediately to get bloodwork done to test for lead concentrations NOW before the detonation. This will provide a baseline in your medical records before exposure. Without that it will be much harder to prove in court damages.",      "createdAt": "2026-11-25T02:14:47.269Z",      "author": {        "id": "1684768461099073537",        "username": "ArgileNoland",        "displayName": "Bud C. 🇺🇸",        "avatarUrl": "https://pbs.twimg.com/profile_images/2115138626770128896/BWxEaPTY_400x400.jpg",        "verified": true,        "url": "https://x.com/ArgileNoland"      },      "likes": 7203,      "replies": 43,      "ext": {        "url": "https://x.com/ArgileNoland/status/2125412853821620459",        "views": 664465,        "reposts": 231,        "quotes": 7,        "saves": 199,        "media": [],        "language": "en",        "byAuthor": false      }    }  ],  "pagination": {    "nextCursor": null,    "hasMore": false  }}