Call it
curl https://api.peume.com/v1/call/list-commented-posts \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"sortBy": "date",
"sortOrder": "desc",
"limit": 50,
"view": "full"
}
}'const res = await fetch("https://api.peume.com/v1/call/list-commented-posts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"sortBy": "date",
"sortOrder": "desc",
"limit": 50,
"view": "full"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/list-commented-posts",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"sortBy": "date",
"sortOrder": "desc",
"limit": 50,
"view": "full"
}
},
)
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-commented-posts.
Parameters
platformstringFilter by platform. `metaads` is a synthetic value meaning the user's ads (boosted/dark posts) only; `facebook`/`instagram` return organic posts only. `tiktok` covers accounts connected through the TikTok Business app only; developer-app TikTok accounts are returned under `meta.accountsSkipped`.
facebook · instagram · twitter · bluesky · threads · youtube · linkedin · reddit · tiktok · metaads
minCommentsintegerMinimum comment count, applied to each page after pagination
sincestringPosts created after this date
sortBystringSort field
date · comments
Example: date
sortOrderstringSort order
asc · desc
Example: desc
limitintegerExample: 50
viewstringfull returns every post as before. summary leaves out `picture` and cuts `content` to 280 characters, marking a cut caption with `contentTruncated: true`.
full · summary
Example: full
cursorstringPass back `pagination.nextCursor` of the previous page unchanged, with the same `sortBy` and `sortOrder`.
accountIdstringFilter by specific account ID. With `platform=metaads` it takes the account ID, or the Facebook or Instagram account ID the connection belongs to, which returns that connection's ad rows. A Facebook or Instagram account with no connection returns no rows. An account on any other platform returns 400.
