Call it
curl https://api.peume.com/v1/call/reddit-popular-posts \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"limit": 25
}
}'const res = await fetch("https://api.peume.com/v1/call/reddit-popular-posts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"limit": 25
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/reddit-popular-posts",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"limit": 25
}
},
)
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-popular-posts.
Parameters
date_rangestringTime range for `popular_posts`: `past_hour`, `past_day`, `past_week`, `past_month`, `past_year` or `all_time`. It takes effect only when `sort` is `top` or `controversial`; with any other sort it does nothing. One of: all_time, past_day, past_hour, past_month, past_week, past_year.
all_time · past_day · past_hour · past_month · past_week · past_year
countrystringCountry whose popular posts to read: a two-letter code such as `US`, `GB`, `DE` or `JP`, or `global`. Leave it out and Reddit decides.
limitintegerMaximum number of results, 1 to 100 (default 25). For some actions it counts pages or items per parent rather than final rows.
Example: 25
sortstringOrder of the posts: `popular` (default, Reddit's Hot), `newest`, `top`, `rising` or `controversial`. One of: controversial, newest, popular, rising, top.
controversial · newest · popular · rising · top
