Reddit API
Reddit Trending posts API
Get currently trending Reddit posts across all subreddits with stable cursor pagination.
POST/v1/run/reddit.trending_posts
Uptime
100.00%
30d · 9 calls
Requests
9
30d · weekly, last 12 wks
Response
1.5s
median · 30d
Try it
Make your first request
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
"data": {
"nextCursor": "example",
"posts": [
{
"author": "Alex Rivera",
"authorId": "Alex Rivera",
"createdUtc": 12.5,
"domain": "example.com",
"id": "a1b2c3d4",
"isArchived": false,
"isLocked": true,
"nsfw": true,
"numComments": 12500,
"permalink": "https://example.com/page",
"score": 5,
"selftext": "A short example description of this item.",
"subreddit": "example",
"title": "Example title",
"upvoteRatio": 12.5,
"url": "https://example.com/page"
}
]
},
"found": true,
"reason": "not_found"
}Response interface
interface RedditTrendingPostsResponse {
data: {
nextCursor: string | null;
posts: {
author: string;
authorId?: string;
createdUtc: number;
domain?: string;
id: string;
isArchived?: boolean;
isLocked?: boolean;
nsfw?: boolean;
numComments: number;
permalink: string;
score: number;
selftext?: string;
subreddit: string;
title: string;
upvoteRatio?: number;
url: string;
}[];
} | null;
found: boolean;
reason?: "not_found";
}Full parameter and response reference - every field, type, and example for this endpoint.
Reference
Request, response, and price
Last verified 2026-09-20 · uptime and latency measured over 30dPOST /v1/run/reddit.trending_posts
curl -X POST https://api.getanyapi.com/v1/run/reddit.trending_posts \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"limit":25}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| after | string | Pagination cursor from a previous response's nextCursor. Omit for the first page. |
| limit | integer | 25Maximum number of trending posts to return (1-100, default 25). |
| Response | ||
| data | object | |
| data.nextCursor | string | Cursor for the next page; pass it back as after. Null when no more results exist. |
| data.posts | object[] | Populated whenever the provider has data for the entity. |
| data.posts[].author | string | Author username, without the u/ prefix. Populated whenever the provider has data for the entity. |
| data.posts[].authorId | string | Reddit account ID of the author, without the t2_ prefix. |
| data.posts[].createdUtc | number | UTC epoch timestamp in seconds (Unix time). Populated whenever the provider has data for the entity. |
| data.posts[].domain | string | Domain the post links to, for example "self.IAmA" for a text post. |
| data.posts[].id | string | Reddit post ID (base-36, without the t3_ prefix). Populated whenever the provider has data for the entity. |
| data.posts[].isArchived | boolean | True when Reddit has archived the thread, which blocks new comments and votes. Archiving is a per-community setting, so an old thread is not necessarily archived. Absent when the source that served this request does not report it, which means unknown rather than false. |
| data.posts[].isLocked | boolean | True when a moderator has locked the thread, which blocks new comments. Absent when the source that served this request does not report it, which means unknown rather than false. |
| data.posts[].nsfw | boolean | Whether the post is marked not-safe-for-work. |
| data.posts[].numComments | integer | Total number of comments on the post. |
| data.posts[].permalink | string | Canonical reddit.com thread path for the post. Populated whenever the provider has data for the entity. |
| data.posts[].score | integer | Net score (upvotes minus downvotes) at fetch time. |
| data.posts[].selftext | string | Body text of a self post, as Markdown. Empty on a link post, which has no body. |
| data.posts[].subreddit | string | Subreddit name, without the r/ prefix. Populated whenever the provider has data for the entity. |
| data.posts[].title | string | Post title. Populated whenever the provider has data for the entity. |
| data.posts[].upvoteRatio | number | Share of votes on the post that are upvotes, between 0 and 1. |
| data.posts[].url | string | The post's destination link. Populated whenever the provider has data for the entity. |
| found | boolean | |
| reason | "not_found" | Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost. |
| Price | ||
| Price per request | USD | $0.0002 |
| Price /1k req | USD | $0.20 |
FAQ
About the Reddit Trending posts API
The AnyAPI Reddit Trending posts API returns Reddit trending posts data as normalized JSON from one POST call to /v1/run/reddit.trending_posts. Get currently trending Reddit posts across all subreddits with stable cursor pagination. AnyAPI returns one normalized schema whichever source serves it. It costs from $0.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of Reddit trending posts calls through AnyAPI succeeded, with a median response time of 1.5 seconds across 9 measured calls.
It costs from $0.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.
Get currently trending Reddit posts across all subreddits with stable cursor pagination. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.
Over the last 30 days, 100.0% of Reddit trending posts calls through AnyAPI succeeded, with a median response time of 1.5 seconds across 9 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.
More to call
Other Reddit endpoints
Searchfrom $0.38 /1k reqSubreddit postsfrom $0.38 /1k reqSubreddit searchfrom $0.38 /1k reqPost commentsfrom $0.60 /1k reqSubreddit detailsfrom $0.38 /1k reqPost transcriptfrom $1.20 /1k reqAvatarfrom $0.38 /1k reqPostfrom $0.50 /1k reqProfilefrom $2.25 /1k reqUser commentsfrom $0.60 /1k reqUser postsfrom $0.38 /1k req