Call it
curl https://api.peume.com/v1/call/get-post-comments \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"accountId": "your accountId",
"limit": 25,
"view": "full",
"postId": "your postId"
}
}'const res = await fetch("https://api.peume.com/v1/call/get-post-comments", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"accountId": "your accountId",
"limit": 25,
"view": "full",
"postId": "your postId"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/get-post-comments",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"accountId": "your accountId",
"limit": 25,
"view": "full",
"postId": "your postId"
}
},
)
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: get-post-comments.
Parameters
accountIdRequiredstringsubredditstring(Reddit only) Subreddit name
limitintegerMaximum number of comments to return
Example: 25
cursorstringPagination cursor, returned by a previous call as `pagination.cursor`. This is the platform's own opaque paging value passed through verbatim: never construct, decode or validate it client-side.
commentIdstring(Facebook, Instagram, Reddit and TikTok) Get replies to a specific comment. On Facebook and Instagram, the requested comment is returned in the top-level `comment` field and comments[] holds its replies.
viewstring`full` returns every comment as before. `summary` is a lighter page for agents and large polls: - Each comment leaves out `from.picture`, `url`, `platform` and every flag that is false. - At most 3 nested replies per comment. A comment with more replies than it carries has `repliesHasMore: true`: fetch the rest with `commentId` (Facebook, Instagram, Reddit, TikTok) or with view=full. - `post` leaves out `thumbnailUrl` and `mediaUrl`.
full · summary
Example: full
postIdRequiredstringpost ID or platform-specific post ID. IDs are auto-resolved. - **LinkedIn:** pass the post id exactly as the feed returns it (urn:li:share:<id> or urn:li:ugcPost:<id>). A bare number is read as an activity id (urn:li:activity:<n>, the number in a linkedin.com/feed/update URL), so a share or ugcPost number passed bare returns an empty list. - **Facebook:** a comment ID is also accepted and returns that comment's replies (kept for backwards compatibility). Prefer the `commentId` query parameter, which also works on Instagram.
