Call it
curl https://api.peume.com/v1/call/list-reddit-post-comments \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"url": "your url"
}
}'const res = await fetch("https://api.peume.com/v1/call/list-reddit-post-comments", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"url": "your url"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/list-reddit-post-comments",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"url": "your url"
}
},
)
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: list-reddit-post-comments.
Parameters
cursorstringOne opaque cursor returned by the previous response to get more comments or replies. Do not combine multiple cursors.
trimbooleanSet to true for a trimmed down version of the response
sortstringComment sort for the first page: confidence (Best), top, new, old, controversial, or qa (Q&A). Use confidence, not best, for Best. Best is the recommended starting point for collecting more comments; browser checks found substantially more top-level comments with Best and Top than with the default, New, or Old on the tested post. This is not a guarantee for every post. Reddit can return different subsets for each sort. For broader coverage, start separate confidence, new, and old runs and deduplicate by comment ID. Follow each run's returned cursors unchanged; a cursor retains its sort, so cha
confidence · top · new · old · controversial · qa
urlRequiredstringReddit post URL
