Call it
curl https://api.peume.com/v1/call/reddit-post-comments-by-post-fullname \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"post_id": "t3_1ojnvca",
"sort_type": "CONFIDENCE",
"need_format": false
}
}'const res = await fetch("https://api.peume.com/v1/call/reddit-post-comments-by-post-fullname", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"post_id": "t3_1ojnvca",
"sort_type": "CONFIDENCE",
"need_format": false
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/reddit-post-comments-by-post-fullname",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"post_id": "t3_1ojnvca",
"sort_type": "CONFIDENCE",
"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-comments-by-post-fullname.
Parameters
post_idRequiredstringReddit post FULLNAME - the t3_ prefix is required. Build it from the URL: reddit.com/r/.../comments/1v7z1m7/ → t3_1v7z1m7. An unknown or bare (un-prefixed) id still answers HTTP 200 with data.postInfoById null, and bills the call anyway: fix the id, do not retry.
Example: t3_1ojnvca
sort_typestringSort method: CONFIDENCE, NEW, TOP, HOT, CONTROVERSIAL, OLD, RANDOM
Example: CONFIDENCE
afterstringPagination parameter for fetching next page
need_formatbooleanWhether to clean and format the data
Example: false
Other ways to do it
Same job, other sources, cheapest first.
