Platforms/Reddit/Subreddit posts

Reddit Subreddit Posts API

GET ยท 1 credit

Send a subreddit's name or link, and get its posts in the order you pick: hot, best, new, top, rising or controversial.

GET /v1/reddit/subreddits/posts

What people use it for

  • Community monitoring: read a subreddit's new posts every hour and catch mentions of your product.
  • Content research: see what a community upvotes most this week with sort=top&time=week.
  • Dataset building: collect a subreddit's posts with their scores and comment counts.

How it works with other endpoints

Start from the same input Subreddit takes. Each post's id goes to Post and Post comments.

Limits

  • time applies with sort=top or sort=controversial only.
  • Send page.next_cursor as cursor for the next page.

Example request

const url = `${process.env.API_URL}/v1/reddit/subreddits/posts?subreddit=Python`;

const response = await fetch(url, {
  headers: { "x-api-key": process.env.API_KEY },
});

const { data } = await response.json();
console.log(data);

Parameters

ParameterRequiredDescription
subredditNoA subreddit's name, without r/. Give subreddit or url.
urlNoA subreddit's link: reddit.com/r/<name>, with anything after it. Give subreddit or url.
sortNoThe order: hot, best, new, top, rising or controversial.
timeNoWith sort top or controversial: how far back to look.
cursorNoFor the next page: page.next_cursor from the page before. Send the other parameters again with it.

Example response

{
  "data": [
    {
      "id": "t3_1wkziub",
      "url": "https://www.reddit.com/r/Python/comments/1wkziub/whats_a_python_feature_you_wish_you_learned/",
      "title": "What's a Python feature you wish you'd learned sooner?",
      "text": "Mine is enumerate(). I wrote index counters by hand for a year.",
      "author": "loop_and_learn",
      "subreddit": "Python",
      "score": 1840,
      "comment_count": 612,
      "upvote_ratio": 0.97,
      "post_type": "text",
      "images": [],
      "created_at": "2026-11-27T14:05:00Z"
    }
  ],
  "page": {
    "next_cursor": "eyJ0b2tlbiI6IkVnWlEifQ",
    "has_more": true
  },
  "meta": {
    "platform": "reddit",
    "endpoint": "subreddit_posts",
    "params": {
      "subreddit": "Python",
      "sort": "hot"
    },
    "request_id": "sp_req_1f8c2d3e4a5b6c7d",
    "api_version": "v1",
    "fetched_at": "2026-11-30T09:30:00Z",
    "cached": false
  }
}

An illustrative answer: live answers have the same shape, with the page's current data.

Every field, with its type, is in the API reference, and every error code in Errors.

Price

Each call costs 1 credit, a not-found answer too. Cached answers and other errors cost nothing, and credits never expire. New accounts start with 100 free credits. See pricing for the packs.

FAQ

Which orders can I pick?

hot (the default), best, new, top, rising or controversial. With top or controversial, time picks how far back: hour, day, week, month, year or all.

Does it include images?

Yes. images holds an image post's, each of a gallery's or a gif's links, full size.

How do I read a post's comments?

Send its id to Post comments.

Works with

Use cases

Reddit guides

Start free

Your first 100 credits are on us

Sign up, create a key and make your first call in a few minutes.

No credit card required