reddit/
subreddit-search

The Reddit Subreddit Search API searches public discussions and posts within one specific subreddit by query, timeframe, and sort order.

Reddit Subreddit Search API

In-community search
Focused post discovery
Subreddit discussions
0.6 credits / result
Ready
Ready

Enter parameters and send a request. The task status and normalized results will appear here.

README

Reddit Subreddit Search

Searching within a designated subreddit isolates relevant conversations from wider platform noise. Scoped community searches return normalized post titles, body text, author handles, comment counts, upvotes, and media links.

Reddit Subreddit Search API Features

  • Scoped community queryThe Reddit Subreddit Search API limits keyword queries to specific /r/{subreddit} communities rather than querying the entire platform.
  • Granular sort optionsSort matched posts by relevance, hot, top, new, or comment count to suit research requirements.
  • Flexible timeframe filtersFilter results by hour, day, week, month, year, or all-time publication windows.
  • Rich post detailsReceive normalized post records with title, body, author, upvote count, comment count, and permalinks.

Reddit Subreddit Search API Parameters

ParametersRequiredDescription
queryRequiredSearch keyword query to execute inside the specified subreddit community.
urlsRequiredArray of public Reddit /r/{subreddit} URLs defining the community scope for the search.
results_limitOptionalMaximum number of posts to return per community; defaults to 100 with an allowed range of 1 to 2,000.
sort_byOptionalOrdering mode for matched posts: relevance (default), hot, top, new, or comments.
published_withinOptionalPublication timeframe filter: all (default), year, month, week, day, or hour.

How to Use the Reddit Subreddit Search API

Submit a search query alongside target community URLs to the Reddit Subreddit Search API as an asynchronous task, then retrieve matched posts.

  1. Specify your search query and provide one or more /r/{subreddit} community URLs in urls.
  2. Optionally select sort_by (relevance, hot, top, new, comments) and published_within (hour to all).
  3. Send a POST request to /v1/reddit/subreddit-search with your SocQ API key.
  4. Poll /v1/tasks/{task_id} and paginate through data.results.items using next_cursor.
curl -X POST "https://api.socq.ai/v1/reddit/subreddit-search" \
  -H "Authorization: Bearer $SOCQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"AI agents","urls":["https://www.reddit.com/r/technology/"],"results_limit":20,"sort_by":"relevance"}'

# Poll GET /v1/tasks/{task_id}, then fetch data.results.items.

Reddit Subreddit Search API Use Cases

  • Community sentiment tracking: Monitor what members of dedicated tech, finance, or gaming subreddits are saying about your brand or competitors.
  • Customer problem discovery: Search troubleshooting and question keywords within specialized product subreddits to find user pain points.
  • Archival niche research: Retrieve historical top discussions on specific technical or cultural topics confined to authoritative communities.

Reddit Subreddit Search API Pro Tips

  • Always supply full /r/{subreddit} URLs in the urls array; the backend extracts the community name automatically.
  • Use this endpoint instead of Reddit Search when you need to avoid cross-community noise and focus on one subreddit.
  • Sorting by comments helps identify high-engagement debate threads where community opinion is deeply expressed.
  • Pair with Reddit Comments to pull the full comment tree from the most relevant posts discovered.

Beyond the Reddit Subreddit Search API, use these APIs when you need a different type of public Reddit data.

  • Reddit Comments API — Collect public comment text, authors, post and parent-comment references, community context, timestamps, and visible engagement from supported post URLs.
  • Reddit Subreddit Posts API — Discover public posts from subreddit URLs with new, top, or hot sorting, a per-subreddit result limit, and normalized community and engagement context.
  • Reddit Search API — Search public Reddit posts by text query and publication window, returning normalized content, authors, community context, timestamps, media, and visible engagement.
  • Reddit Subreddit Details API
  • Reddit Trending Searches API — Get the searches trending on Reddit today with no input, each with its rank and a link to Reddit's results.
  • Reddit Answers API — Ask a question and get Reddit's AI answer with the quoted comments, source posts and recommended subreddits.

Explore other platforms

Combine Reddit data with public data from other supported social platforms.

Reddit Subreddit Search API — FAQ

Reddit Subreddit Search API allows targeted keyword searching across posts inside specific Reddit communities. It returns normalized post items, author data, timestamps, upvote counts, and comment volume.

Reddit Search searches across all public subreddits simultaneously, whereas Reddit Subreddit Search restricts your query to the specific communities provided in the urls parameter.

Yes. Provide multiple community links in the urls array; the endpoint will search each specified subreddit and aggregate the results.

By SocQ · Updated