# Get Trending Reddit Posts API

> Fetch trending, hot, rising, top, or new posts from any subreddit with pagination and time filtering. Requires a Reddit session cookie in sessionCookies (obtain it from reddit-login.post, or copy reddit_session out of a signed-in browser) — Reddit has blocked every anonymous read surface since 2026-07-30.

Category: [Social Media APIs](https://upapi.io/apis/social-media) · Last updated 2026-09-04

## How to call it

- Endpoint: `POST https://api.upapi.io/reddit-get-trending.get`, key in the `X-Api-Key` header, JSON body.
- Cost: 4 weighted units per call.
- Timeout: 60 seconds.
- Cache: identical requests are served from cache for 300 seconds, unbilled.
- Try it without writing code: https://app.upapi.io/try/reddit-get-trending.get

```bash
curl -X POST https://api.upapi.io/reddit-get-trending.get \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{ "time": "day", "limit": 25, "listing": "hot", "subreddit": "example" }'
```

## Request parameters

- `time` (string) — Time filter for 'top' listing: hour, day, week, month, year, all
- `after` (string) — Pagination cursor
- `limit` (integer) — Max posts to return
- `listing` (string) — Listing type: hot, new, rising, top, controversial
- `proxyUrl` (string) — User-provided proxy URL
- `subreddit` (string, required) — Subreddit name (without r/)
- `sessionCookies` (string) — REQUIRED IN PRACTICE. Reddit account session cookies, as a JSON object or a '; '-delimited cookie header; the blob must contain reddit_session. Since 2026-07-30 Reddit blocks EVERY anonymous read surface, so a call without cookies returns a classified UPSTREAM_BLOCKED rather than data. Obtain the blob from reddit-login.post, or copy the reddit_session cookie out of a signed-in browser. A lead-gen account-pool row stores it nested at cookies->>'sessionCookies', not at the row's top level.

## Response fields

- `after` (string, required)
- `posts` (array, required)
- `posts[].id` (string, required)
- `posts[].url` (string, required)
- `posts[].score` (integer, required)
- `posts[].title` (string, required)
- `posts[].author` (string, required)
- `posts[].isNsfw` (boolean, required)
- `posts[].isSelf` (boolean, required)
- `posts[].selftext` (string, required)
- `posts[].linkFlair` (string, required)
- `posts[].permalink` (string, required)
- `posts[].subreddit` (string, required)
- `posts[].createdUtc` (number, required)
- `posts[].numComments` (integer, required)
- `posts[].upvoteRatio` (number, required)
- `listing` (string, required)
- `elapsedMs` (integer, required)
- `fetchedAt` (string, required)
- `subreddit` (string, required)
- `totalResults` (integer, required)

## Example request and response

The example response is generated from the published output schema: it shows the shape and field names, not values from a recorded call.

```json
{
  "time": "day",
  "limit": 25,
  "listing": "hot",
  "subreddit": "example"
}
```

```json
{
  "after": "example",
  "posts": [
    {
      "id": "example",
      "url": "https://github.com",
      "score": 1,
      "title": "Alan Turing",
      "author": "example",
      "isNsfw": false,
      "isSelf": false,
      "selftext": "example",
      "linkFlair": "example",
      "permalink": "example",
      "subreddit": "example",
      "createdUtc": 1,
      "numComments": 1,
      "upvoteRatio": 1
    }
  ],
  "listing": "example",
  "elapsedMs": 1,
  "fetchedAt": "example",
  "subreddit": "example",
  "totalResults": 1
}
```

## Frequently asked questions

### How much does the Get Trending Reddit Posts API cost per call?

Each call spends 4 weighted units of your plan's monthly quota. Full pricing is at https://upapi.io/pricing.

### How do I authenticate to the Get Trending Reddit Posts API?

Send your key in the X-Api-Key header. A free guest key is available without creating an account.

### Are Get Trending Reddit Posts API responses cached?

Yes — identical requests are served from cache for 300 seconds, and a cache hit is not billed.

## More Social Media APIs

- [Search Reddit Posts](https://upapi.io/apis/social-media/reddit-search-posts)
- [Get Subreddit Info](https://upapi.io/apis/social-media/reddit-subreddit-info)
- [Reddit - post a comment as a registered app](https://upapi.io/apis/social-media/reddit-oauth-post-comment)
- [Reddit - who does this OAuth app speak as?](https://upapi.io/apis/social-media/reddit-oauth-me)
- [Scrape Reddit Post & Comments](https://upapi.io/apis/social-media/reddit-scrape-post)
- [Check Reddit Account Health](https://upapi.io/apis/social-media/reddit-check-account-health)
- [Check Reddit Comment Visibility](https://upapi.io/apis/social-media/reddit-check-comment-visibility)
- [Instagram Get User Posts](https://upapi.io/apis/social-media/instagram-get-user-posts)
