reddit/
search

With the Reddit Search API, search public Reddit posts by query and publication window, returning normalized titles, text, authors, community context, timestamps, media, and visible engagement.

Reddit Search API

Post search
Publication window
Discovery context
0.2 credits / result
Ready
Ready

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

README

Reddit Search

Reddit Search results are public posts matched to a text query, with titles, body text, authors, subreddit context, media, publication times, and visible voting and comment signals. These records support topic discovery, source review, time-window research, and engagement comparison across defined queries.

Reddit Search API Features

  • Query-driven post discoveryGive the Reddit Search API one non-empty text query to discover public Reddit posts without supplying post or subreddit URLs.
  • Publication window filteringLimit discovery to the past hour, day, week, month, or year, or use all for the full supported time range.
  • Bounded result requestsSet results_limit from 1 through 2,000 to control the maximum number of posts requested for the query.
  • Normalized post and discovery contextReturn post content, author and community fields, media, timestamps, visible engagement, and the discovery input in a consistent record.

Reddit Search API Parameters

ParametersRequiredDescription
queryRequiredRequired non-empty text used to discover public Reddit posts.
results_limitOptionalMaximum posts to request. Defaults to 100 and accepts integers from 1 through 2,000.
published_withinOptionalPublication window for matched posts. Defaults to all and supports hour, day, week, month, year, or all.

How to Use the Reddit Search API

Submit a focused query with the desired time window and result cap, then read the normalized post records from the completed asynchronous task.

  1. Prepare one non-empty text query and choose an optional published_within window and results_limit.
  2. POST the parameters to /v1/reddit/search and store the returned task_id.
  3. Poll /v1/tasks/{task_id} until the task succeeds or returns a failure.
  4. Read data.results.items, then request the returned next_cursor while has_more remains true.
curl -X POST "https://api.socq.ai/v1/reddit/search" \
  -H "Authorization: Bearer $SOCQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"machine learning","results_limit":100,"published_within":"month"}'

# Poll GET /v1/tasks/{task_id}
# Read data.results.items and follow next_cursor while has_more is true

Reddit Search API Use Cases

  • Topic discussion discovery: Use post titles, body text, community names, and source URLs to find public discussions matching a defined subject.
  • Source-traceable research datasets: Preserve post IDs, URLs, authors, publication times, and discovery_input so each collected record remains connected to its source and query.
  • Time-window engagement comparison: Combine published_within with created_at, collected_at, upvotes_count, comments_count, and upvote_ratio to compare bounded result samples.

Reddit Search API Pro Tips

  • Use a focused query that represents one research question so matching post text and community context remain interpretable.
  • Choose published_within for the period you need; leave it at all when a publication cutoff would remove relevant older posts.
  • Treat results_limit as a request ceiling, then continue through task-result cursors until has_more is false to read every stored result.
  • Deduplicate repeated searches by post ID while retaining extra.discovery_input and collected_at for query and observation context.
  • Handle author, media, community, timestamp, and engagement fields as nullable because the public source may omit individual values.

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

  • Reddit Posts API — Collect public post text, authors, community context, media, timestamps, and visible engagement from supported Reddit URLs.
  • 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 Subreddit Search 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 Search API — FAQ

Reddit Search API discovers public posts from a non-empty text query with an optional publication window and result cap. It returns normalized post content, authors, subreddit context, media, timestamps, visible engagement, and discovery input.

The request accepts query, results_limit, and published_within. query is required; the endpoint does not expose subreddit URL, content-type, or sort controls.

Each normalized post can include its ID, URL, title, text, author, community context, media, publication and collection times, visible upvotes and comments, upvote ratio, and discovery input.

published_within accepts hour, day, week, month, year, or all. The default is all.

results_limit defaults to 100 and accepts integers from 1 through 2,000 as the requested maximum. After the task succeeds, continue with next_cursor while has_more is true to read all stored result pages.

The Reddit Search API charges 0.2 SocQ credits for each returned normalized search result. An empty result set has no result charge.

By SocQ · Updated