Post
One post with its score, comment count and media.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
url?stringThe post's link (https://www.reddit.com/r/AskReddit/comments/1y4hcb5/…), or a
redd.it one.
id?stringThe post's id (1y4hcb5), instead of url.
maxAge?integerHow old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.
Format
int64Range
0 <= valueThe answer.
application/json- response
One item, as every single-item endpoint answers: { "data": … }.
data*A post: text, a link, an image, a gallery, a video or a poll.
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data } = await client.reddit.post({ url: "https://www.reddit.com/r/AskReddit/comments/1y53ynl/donald_trump_just_called_senatorelect_abdul/" });Example Response
{ "data": { "id": "1y53ynl", "url": "https://www.reddit.com/r/AskReddit/comments/1y53ynl/donald_trump_just_called_senatorelect_abdul/", "text": null, "createdAt": "2026-11-25T10:21:39.000Z", "author": { "id": "g2ee64y4", "username": "Sad_Artist8183", "displayName": null, "avatarUrl": null, "verified": false, "url": "https://www.reddit.com/user/Sad_Artist8183/" }, "stats": { "views": null, "likes": 615, "comments": 343, "shares": null, "saves": null, "engagementRate": null }, "media": [], "hashtags": [], "mentions": [], "ext": { "title": "Donald Trump just called Senator-elect Abdul El-Sayed a “smart guy” and said “maybe there’s some place in the middle” on a universal “Trumpcare” plan. Americans, what are your thoughts?", "kind": "text", "subreddit": "AskReddit", "score": 615, "upvoteRatio": 0.87, "link": null, "domain": null, "flair": null, "nsfw": false, "spoiler": false, "locked": false, "stickied": false, "crossposts": 0, "crosspostOf": null, "awards": 0, "editedAt": null, "snippet": null } }}