PeumeAPI

Social media data · Reddit

Search Reddit posts by keyword

Searches across all of Reddit for posts matching a query.

$0.0028 per callUsually answers in about a second

Call it

curl https://api.peume.com/v1/call/search-reddit-posts-by-keyword \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "query": "ai",
    "sort": "relevance",
    "filter": "posts",
    "timeframe": "all",
    "trim": false
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: search-reddit-posts-by-keyword.

Parameters

queryRequiredstring

Search query

Example: ai

sortstring

Prefer relevance when you want posts matching the query. One of: relevance | new | top | comment_count. sort=new is chronological newest-first and often returns weakly related or unrelated sitewide posts (not "recent posts about X"). Brand/token queries may also match colloquial substrings under new. Comment search supports relevance, new, and top; comment_count is for post search only.

relevance · new · top · comment_count

Example: relevance

filterstring

Search posts or comments. Default posts.

posts · comments

Example: posts

timeframestring

Post search timeframe. One of: all | day | week | month | year.

all · day · week · month · year

Example: all

afterstring

Pagination token from the previous response (after) to get the next page

trimboolean

Set to true for a trimmed down version of the response

Example: false

Other ways to do it

Same job, other sources, cheapest first.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.