Call it
curl https://api.peume.com/v1/call/reddit-home-feed \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"sort": "BEST",
"filter_posts": [
"t3_1ojjquz",
"t3_1ohepm2",
"t3_1ojxzzz",
"t3_1ojnvca",
"t3_1oj9dcb",
"t3_1ojxubp",
"t3_1oj5x2b"
],
"after": "dDNfMW9qNXgyYg==",
"need_format": false
}
}'const res = await fetch("https://api.peume.com/v1/call/reddit-home-feed", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"sort": "BEST",
"filter_posts": [
"t3_1ojjquz",
"t3_1ohepm2",
"t3_1ojxzzz",
"t3_1ojnvca",
"t3_1oj9dcb",
"t3_1ojxubp",
"t3_1oj5x2b"
],
"after": "dDNfMW9qNXgyYg==",
"need_format": false
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/reddit-home-feed",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"sort": "BEST",
"filter_posts": [
"t3_1ojjquz",
"t3_1ohepm2",
"t3_1ojxzzz",
"t3_1ojnvca",
"t3_1oj9dcb",
"t3_1ojxubp",
"t3_1oj5x2b"
],
"after": "dDNfMW9qNXgyYg==",
"need_format": False
}
},
)
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-home-feed.
Parameters
sortstringSort method: HOT, NEW, TOP, BEST, CONTROVERSIAL
Example: BEST
filter_postsarrayFilter out specified posts, by fullname (t3_ prefix)
Example: ["t3_1ojjquz","t3_1ohepm2","t3_1ojxzzz","t3_1ojnvca","t3_1oj9dcb","t3_1ojxubp","t3_1oj5x2b"]
afterstringPagination parameter for fetching next page
Example: dDNfMW9qNXgyYg==
need_formatbooleanWhether to clean and format the data
Example: false
