Call it
curl https://api.peume.com/v1/call/reddit-search-3 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"limit": 10,
"keyword": "your keyword"
}
}'const res = await fetch("https://api.peume.com/v1/call/reddit-search-3", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"limit": 10,
"keyword": "your keyword"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/reddit-search-3",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"limit": 10,
"keyword": "your keyword"
}
},
)
print(res.json()["output"])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: reddit-search-3.
Parameters
limitintegerMaximum number of results, 1 to 25 (default 10). For some actions it counts pages or items per parent rather than final rows.
Example: 10
sortstringOrders Reddit post listings by `newest`, `popular`, `relevance`, `rising`, or `top`. The `post_detail` and `comments` actions do not accept `sort`. One of: controversial, newest, popular, relevance, rising, top.
controversial · newest · popular · relevance · rising · top
keywordRequiredstringSpecifies the post search query for `search`. Does not search full comment text. Defaults to `relevance` sorting; the time window is fixed to the past month. Only posts that contain every word of the query are returned (common words such as the, best or vs, and AND/OR, don't count): at least one in the title or community name and the rest anywhere in the post, or all of them close together in the title or body. To get every post in a community, use `subreddit_posts`.
include_post_textbooleanOptional for `search`, `subreddit_posts` and `user_posts`, true or false (default false). With true, image, video and link posts also carry the text attached to them in `text`. Each post page is read for this, so the call is slower; a post whose text could not be read has `text` null. The price is the same.
