Platforms/Reddit/Subreddit post search

Reddit Subreddit Post Search API

GET ยท 1 credit

Send words and a subreddit's name or link, and get the posts in it that match.

GET /v1/reddit/subreddits/search

What people use it for

  • Niche research: find what a community says about a product, a problem or a competitor.
  • FAQ mining: collect the questions a subreddit asks most about a topic.

How it works with other endpoints

Each post's id goes to Post for its text and images, and to Post comments. To search all of Reddit, use Search.

Limits

  • Results carry title, author, subreddit, score, comment count and date; Post has the rest.
  • time applies with sort=relevance, top or comments.

Example request

const url = `${process.env.API_URL}/v1/reddit/subreddits/search?q=push+ups&subreddit=Fitness`;

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

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

Parameters

ParameterRequiredDescription
qYesWhat to search for.
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: relevance, hot, top, new, or comments (most commented first).
timeNoWith sort relevance, top or comments: how far back to search.
cursorNoFor the next page: page.next_cursor from the page before. Send the other parameters again with it.

Example response

{
  "data": [
    {
      "id": "t3_1wm3abc",
      "url": "https://www.reddit.com/r/Fitness/comments/1wm3abc/push_ups_every_day_for_90_days/",
      "title": "Push ups every day for 90 days: what changed",
      "text": null,
      "author": "steady_reps",
      "subreddit": "Fitness",
      "score": 3200,
      "comment_count": 410,
      "upvote_ratio": null,
      "post_type": null,
      "images": null,
      "created_at": "2026-11-18T09:30:00Z"
    }
  ],
  "page": {
    "next_cursor": "eyJ0b2tlbiI6IkVnWlEifQ",
    "has_more": true
  },
  "meta": {
    "platform": "reddit",
    "endpoint": "subreddit_post_search",
    "params": {
      "q": "push ups",
      "subreddit": "Fitness",
      "sort": "relevance"
    },
    "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?

relevance (the default), hot, top, new, or comments for the most commented first. With relevance, top or comments, time sets how far back to search.

Why are text and images empty?

Search results give each post's title, author, score and comment count. Send a post's id to Post for its text and images.

How is it different from Search?

It searches one subreddit; Search covers all of Reddit.

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