Call it
curl https://api.peume.com/v1/call/reddit-post-details-in-bulk-by-post-fullnames \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"post_ids": "t3_1ojnh50,t3_1ok432f,t3_1nwil8j",
"include_comment_id": false,
"need_format": false
}
}'const res = await fetch("https://api.peume.com/v1/call/reddit-post-details-in-bulk-by-post-fullnames", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"post_ids": "t3_1ojnh50,t3_1ok432f,t3_1nwil8j",
"include_comment_id": false,
"need_format": false
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/reddit-post-details-in-bulk-by-post-fullnames",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"post_ids": "t3_1ojnh50,t3_1ok432f,t3_1nwil8j",
"include_comment_id": False,
"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-post-details-in-bulk-by-post-fullnames.
Parameters
post_idsRequiredstringReddit post FULLNAMES (t3_ prefix required) comma-separated, max 5
Example: t3_1ojnh50,t3_1ok432f,t3_1nwil8j
include_comment_idbooleanInclude specific comment ID
Example: false
comment_idstringComment FULLNAME, t1_ prefix required (when include_comment_id is True)
need_formatbooleanWhether to clean and format the data
Example: false
Other ways to do it
Same job, other sources, cheapest first.
Get a post's content & statsBest sourceGet a post's content & stats. Checks the cheapest source first and moves to the next one until it finds an answer.Reddit post details by post fullnameReddit: fetch post details (app)Reddit post details by post idRetrieves details for a Reddit post identified by its full post ID.Reddit post details by thread URLReddit - PostsReddit post details in large bulk by post fullnamesReddit: fetch post details batch large (app)
