YepAPI
Reddit API

Reddit Popular Posts API

Reddit Popular Posts API — get the posts trending on r/popular, worldwide or for one country, sorted by hot, new, top, or rising. JSON, $0.01 per call.

Pricing, live playground and use cases: Reddit Popular Posts API on YepAPI

POST/v1/reddit/popular
$0.01/call

The Reddit Popular Posts API returns what's trending on Reddit right now — the r/popular feed. Pass country to get a country's version of r/popular (for example GB or DE, with hot or top), and sort to switch between hot, new, top, and rising. Use it for trend monitoring, content ideas, or daily digests.

Usage

const res = await fetch('https://api.yepapi.com/v1/reddit/popular', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({"country": "GB"}),
});
const { data } = await res.json();
console.log(data);
curl -X POST https://api.yepapi.com/v1/reddit/popular \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"country": "GB"}'
import requests

res = requests.post(
    "https://api.yepapi.com/v1/reddit/popular",
    headers={"x-api-key": "YOUR_API_KEY"},
    json={"country": "GB"},
)
print(res.json()["data"])

Request Body

ParameterTypeRequiredDescriptionDefault
sortstringNoOne of: hot, new, top, risinghot
timestringNoTime window, only used with sort: "top". One of: hour, day, week, month, year, allday
countrystringNoTwo-letter country code, e.g. GB, for that country's r/popular. Works with sort hot or top—
cursorstringNocursor from the previous response, to fetch the next page—

Response

{
  "ok": true,
  "data": {
    "cursor": "t3_1xjmbmn",
    "posts": [
      {
        "author": "vaultofechoes",
        "created_at": null,
        "created_utc": null,
        "domain": null,
        "flair": null,
        "id": "t3_1xjrnee",
        "images": [],
        "is_self": false,
        "is_video": false,
        "locked": false,
        "name": null,
        "num_comments": null,
        "num_crossposts": null,
        "over_18": false,
        "permalink": "https://www.reddit.com/r/TheTraitors/comments/1xjrnee/the_celebrity_traitors_s02e10_finale_postepisode/",
        "score": null,
        "selftext": null,
        "spoiler": false,
        "stickied": false,
        "subreddit": "TheTraitors",
        "thumbnail": null,
        "title": "The Celebrity Traitors S02E10 [FINALE] Post-Episode Discussion Thread",
        "upvote_ratio": null,
        "url": null,
        "video_url": null
      },
      {
        "author": "AfcWimbledon_",
        "created_at": null,
        "created_utc": null,
        "domain": null,
        "flair": null,
        "id": "t3_1xjqn08",
        "images": [],
        "is_self": false,
        "is_video": false,
        "locked": false,
        "name": null,
        "num_comments": null,
        "num_crossposts": null,
        "over_18": false,
        "permalink": "https://www.reddit.com/r/bigbrotheruk/comments/1xjqn08/big_brother_2026_episode_42_friday_30th_october/",
        "score": null,
        "selftext": null,
        "spoiler": false,
        "stickied": false,
        "subreddit": "bigbrotheruk",
        "thumbnail": null,
        "title": "Big Brother 2026 - Episode 42 (Friday 30th October)",
        "upvote_ratio": null,
        "url": null,
        "video_url": null
      }
    ]
  }
}

Response Fields

FieldTypeDescription
okbooleanWhether the request succeeded
data.postsobject[]Popular posts
data.posts[].idstringPost ID (base36)
data.posts[].namestringFullname, t3_ + ID — the same value Reddit uses in cursors
data.posts[].titlestringPost title
data.posts[].authorstring | nullAuthor username, null if the account was deleted
data.posts[].subredditstringSubreddit name without r/
data.posts[].permalinkstringFull reddit.com URL of the post — pass it to /v1/reddit/post or /v1/reddit/post-comments
data.posts[].urlstringLink target: the external URL, image, or the post itself for text posts
data.posts[].domainstringDomain of url (self.<subreddit> for text posts)
data.posts[].selftextstring | nullBody of a text post in Markdown (empty for link posts); null if removed or deleted
data.posts[].is_deletedbooleanAuthor or text was deleted / removed
data.posts[].scorenumberNet upvotes
data.posts[].upvote_rationumberShare of upvotes, 0–1
data.posts[].num_commentsnumberComment count
data.posts[].num_crosspostsnumberCrosspost count
data.posts[].created_utcnumberUnix timestamp (seconds)
data.posts[].created_atstringISO 8601 timestamp
data.posts[].flairstring | nullPost flair text
data.posts[].is_selfbooleanText post (no external link)
data.posts[].is_videobooleanReddit-hosted video
data.posts[].over_18booleanMarked NSFW
data.posts[].spoilerbooleanMarked as spoiler
data.posts[].stickiedbooleanPinned by moderators
data.posts[].lockedbooleanComments locked
data.posts[].thumbnailstring | nullThumbnail image URL
data.posts[].imagesstring[]Full-size image URLs (preview images and gallery items)
data.posts[].video_urlstring | nullMP4 URL for Reddit-hosted videos
data.cursorstring | nullCursor for the next page

Pagination

Each response includes a cursor. Send the same request again with that value in cursor to get the next page. When cursor is null, there are no more results. A query with no matches returns 200 with an empty list and cursor: null. Every page is a separate $0.01 call.

Caching

Responses are cached for 15 minutes.

Errors

StatusCodeWhen
400VALIDATION_ERRORsort, time, or country is invalid, or country is combined with new or rising
429RATE_LIMITED_UPSTREAMToo many requests in a short burst — retry after a few seconds
502UPSTREAM_ERRORTemporary problem fetching data from Reddit — retry

Failed calls are not charged.

On this page