Skip to Content

Trending

What is hot on Reddit now, 25 a page.

GET
/v1/reddit/trending

Authorization

apiKey
headerAuthorizationBearer <token>

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

Query Parameters

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.trending();
Example Response
{  "data": [    {      "id": "1y534j8",      "url": "https://www.reddit.com/r/unitedkingdom/comments/1y534j8/cornwall_christmas_market_cancels_all_bookings/",      "text": null,      "createdAt": "2026-11-25T09:28:20.000Z",      "author": {        "id": "5cznv",        "username": "pajamakitten",        "displayName": null,        "avatarUrl": null,        "verified": false,        "url": "https://www.reddit.com/user/pajamakitten/"      },      "stats": {        "views": null,        "likes": 596,        "comments": 183,        "shares": null,        "saves": null,        "engagementRate": null      },      "media": [        {          "kind": "image",          "url": "https://external-preview.redd.it/Co7XrLvEAeTz__51JqWHKQUHdMyolbOXyDx48FweNqQ.png?auto=webp&s=ebb84473caccafe5114465e1a65b4398d3dbf2b2",          "thumbnailUrl": null,          "width": 1200,          "height": 675,          "durationSeconds": null        }      ],      "hashtags": [],      "mentions": [],      "ext": {        "title": "Cornwall Christmas market cancels all bookings after AI backlash",        "kind": "link",        "subreddit": "unitedkingdom",        "score": 596,        "upvoteRatio": 0.98,        "link": "https://www.bbc.co.uk/news/articles/cm0qjglj3ejlo",        "domain": "bbc.co.uk",        "flair": null,        "nsfw": false,        "spoiler": false,        "locked": false,        "stickied": false,        "crossposts": 1,        "crosspostOf": null,        "awards": 0,        "editedAt": null,        "snippet": null      }    },    {      "id": "1y511s7",      "url": "https://www.reddit.com/r/unitedkingdom/comments/1y511s7/household_energy_prices_to_rise_by_26_in_january/",      "text": null,      "createdAt": "2026-11-25T07:13:00.000Z",      "author": {        "id": "2mnppr3vuu",        "username": "AgilityEnjoyer",        "displayName": null,        "avatarUrl": null,        "verified": false,        "url": "https://www.reddit.com/user/AgilityEnjoyer/"      },      "stats": {        "views": null,        "likes": 313,        "comments": 467,        "shares": null,        "saves": null,        "engagementRate": null      },      "media": [        {          "kind": "image",          "url": "https://external-preview.redd.it/AKWiBRYqYi8iTfHMCP2eajM74YHmdo-dfxUYCyZ2SvU.jpeg?auto=webp&s=38c353e888ba6fed9d588917d6abb8c34fed195c",          "thumbnailUrl": null,          "width": 1200,          "height": 675,          "durationSeconds": null        }      ],      "hashtags": [],      "mentions": [],      "ext": {        "title": "Household energy prices to rise by 26% in January as new price cap confirmed",        "kind": "link",        "subreddit": "unitedkingdom",        "score": 313,        "upvoteRatio": 0.94,        "link": "https://www.bbc.co.uk/news/articles/cm20qnq33e90o",        "domain": "bbc.co.uk",        "flair": null,        "nsfw": false,        "spoiler": false,        "locked": false,        "stickied": false,        "crossposts": 0,        "crosspostOf": null,        "awards": 0,        "editedAt": null,        "snippet": null      }    }  ],  "pagination": {    "nextCursor": "t3_1y509bk",    "hasMore": true  }}