PeumeAPI

Social media data · Reddit

Search within a subreddit by keyword — posts, comments

Searches within a specific subreddit for posts, comments, and media matching a query.

$0.0028 per callUsually answers in a few seconds

Call it

curl https://api.peume.com/v1/call/search-within-a-subreddit-by-keyword-posts-comments \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "subreddit": "your subreddit",
    "query": "push ups",
    "cursor": "eyJjYW5kaWRhdGVzX3JldHVybmVkIjoi..."
  }
}'

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-within-a-subreddit-by-keyword-posts-comments.

Parameters

subredditRequiredstring

Subreddit name (e.g. 'Fitness', not 'r/Fitness' or a full URL)

querystring

Search query to find matching content

Example: push ups

sortstring

Sort order. For posts/media: relevance, hot, top, new, comments. For comments: relevance, top, new

timeframestring

Timeframe to filter results

cursorstring

Cursor to get more results. Get 'cursor' from previous response.

Example: eyJjYW5kaWRhdGVzX3JldHVybmVkIjoi...

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.