YepAPI
POST/v1/reddit/search

Reddit Search API

Search all of Reddit or a single subreddit by keyword and get matching posts as clean JSON. $0.01 per call.

Search Reddit posts by keyword across the whole site or inside one subreddit. Sort by relevance, hot, top, new, or comment count, filter top results by time range, and page through with a cursor. Every post comes back with title, author, score, upvote ratio, comment count, body text, flair, and media.

Try it live

Fill in the fields and hit Run to see a real response.

POST/v1/reddit/search

Leave empty to search all of Reddit.

Pass the cursor from the previous response to get the next page.

Response
Example response — hit "Send Request" to see a live result
{
  "ok": true,
  "data": {
    "cursor": "t3_1rhul46",
    "posts": [
      {
        "author": "kirara0048",
        "created_at": "2026-10-30T08:05:21+00:00",
        "created_utc": 1793347521,
        "domain": null,
        "flair": null,
        "id": "t3_1xj9fse",
        "images": [],
        "is_self": false,
        "is_video": false,
        "locked": false,
        "name": null,
        "num_comments": 44,
        "num_crossposts": null,
        "over_18": false,
        "permalink": "https://www.reddit.com/r/Python/comments/1xj9fse/pep_851_add_listdiscard/",
        "score": 159,
        "selftext": "PEP 851 – Add list.discard()\n\nhttps://peps.python.org/pep-0851/\n\nDiscussions-To: Discourse thread\n\nAbstract\n\nAdd list.discard(x), which removes the first item equal to x if one is present and does not…",
        "spoiler": false,
        "stickied": false,
        "subreddit": "Python",
        "thumbnail": null,
        "title": "PEP 851 – Add list.discard()",
        "upvote_ratio": null,
        "url": null,
        "video_url": null
      }
    ]
  }
}

Features

✓
Search all of Reddit or one subreddit

Leave subreddit empty to search the whole site, or pass python, r/python, or a full subreddit URL to scope the query to a single community.

✓
Five sort modes

Sort by relevance (default), hot, top, new, or comments. Pair sort=top with a time range from the past hour to all time.

✓
25+ fields per post

Each post includes id, title, author, subreddit, permalink, url, domain, selftext, score, upvote_ratio, num_comments, created_at, flair, NSFW and spoiler flags, thumbnail, images, and video_url.

✓
Cursor pagination

Every response carries a cursor. Send it back to walk deeper into the results, and stop when it comes back null.

✓
Cached for 15 minutes

Results are cached for 15 minutes and requests are paced on our side. If a burst ever returns a 429, retry after a few seconds.

Use cases

Brand Monitoring

Find every Reddit thread that mentions your product, competitors, or category keywords.

Market Research

Collect real user opinions on a topic for product discovery and positioning work.

AI Training & RAG

Pull topical Reddit discussions into a retrieval pipeline or evaluation dataset.

Quick start

Copy this snippet and start making calls.

const res = await fetch('https://api.yepapi.com/v1/reddit/search', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "query": "rust vs go",
    "subreddit": "programming",
    "sort": "relevance"
  }),
});
const data = await res.json();
console.log(data);

The Reddit Search API for keyword-driven Reddit data

The YepAPI Reddit Search API turns any keyword into a structured feed of Reddit posts. Send a query to /v1/reddit/search and get back matching posts with title, author, subreddit, score, upvote ratio, comment count, body text, flair, and media links, plus a cursor for the next page. Each call costs $0.01.

Search the whole site or narrow it to one community with the subreddit field. Sort by relevance, hot, top, new, or comment count, and add a time range when you sort by top. It is the fastest way to answer "what is Reddit saying about X" from code.

What is a Reddit search API?

A Reddit search API takes a search term and returns matching Reddit posts as data instead of a web page. Rather than scraping search result HTML or registering a Reddit app and handling OAuth tokens, you send one POST request and get JSON with every post's metadata. The YepAPI version normalizes every result to the same Post shape used across all our Reddit endpoints, so the same parser works for search, subreddit feeds, user posts, and r/popular.

Build a Reddit keyword monitor

Run /v1/reddit/search on a schedule with sort=new and your brand or product keywords, store the post ids you have already seen, and alert on anything new. Add the subreddit field to watch a niche community closely, then send interesting posts to the Reddit Comments API to read the full discussion. Everything runs on one YepAPI key that also covers SEO, SERP, and AI endpoints.

Reddit Search API pricing: $0.01 per call

Every call costs a flat $0.01 and failed calls are free. There is no monthly minimum, no seat fee, and no Reddit app to register: you only need a YepAPI key. A page of results is one call, so monitoring 20 keywords every hour costs about $4.80 a day. Results are cached for 15 minutes, which keeps repeat lookups fast.

Search operators and sorting

Use sort=relevance for the best keyword match, sort=new for monitoring, sort=top with a time range (hour, day, week, month, year, all) for the highest-voted threads, or sort=comments to find the most-discussed posts. The subreddit field accepts python, r/python, or a full subreddit URL, so you can paste whatever your users type.

Try the Reddit Search API free

Sign up and get $5 in free credit with no card required. That is 500 calls at $0.01 each to test the Reddit Search API against live Reddit data before you spend anything. One key also unlocks the subreddit, post, comment, and user endpoints.

Start making API calls in 30 seconds

$5 free credit on signup. No credit card required. Pay per call.

What developers say

“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”

Marcus T.

SEO Platform Founder

“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”

Priya S.

Full-Stack Developer

“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”

Jake R.

Indie Hacker

Frequently asked questions

Search Reddit posts by keyword across the whole site or inside one subreddit. Sort by relevance, hot, top, new, or comment count, filter top results by time range, and page through with a cursor. Every post comes back with title, author, score, upvote ratio, comment count, body text, flair, and media.

Each API call costs $0.01. No monthly minimums or subscriptions — you only pay for what you use.

Sign up for a free API key, then send a POST request to /v1/reddit/search. Check the code example above for a ready-to-use snippet in JavaScript, cURL, or Python.

YepAPI bundles SEO, AI, and web scraping APIs under one key with no monthly minimums. You get lower per-call pricing, a unified dashboard, and one billing account instead of managing multiple providers.

Ready to integrate?

Get your API key and start making calls in 30 seconds. $5 free credit on signup — no credit card required.

More Reddit API endpoints