Call it
curl https://api.peume.com/v1/call/reddit-games-posts \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"date_range": "all_time",
"page_token": "your page token"
}
}'const res = await fetch("https://api.peume.com/v1/call/reddit-games-posts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"date_range": "all_time",
"page_token": "your page token"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/reddit-games-posts",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"date_range": "all_time",
"page_token": "your page token"
}
},
)
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-games-posts.
Parameters
date_rangestringTime window, used only with `sort=top` or `controversial`: `past_hour`, `past_day`, `past_week`, `past_month`, `past_year` or `all_time`. 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
page_tokenstringPage token. Leave it out for the first page (about 5 rows), then pass back the previous response's `next_page_token` exactly as received; later pages have about 25 rows. Each page is one call.
sortstringSort order: `popular` (default), `newest`, `top`, `rising` or `controversial`. One of: controversial, newest, popular, rising, top.
controversial · newest · popular · rising · top
