Call it
curl https://api.peume.com/v1/call/linkedin-post-comments-by-post-id \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"postId": "your postId",
"page": 1,
"sortOrder": "relevance",
"postType": "activity"
}
}'const res = await fetch("https://api.peume.com/v1/call/linkedin-post-comments-by-post-id", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"postId": "your postId",
"page": 1,
"sortOrder": "relevance",
"postType": "activity"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/linkedin-post-comments-by-post-id",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"postId": "your postId",
"page": 1,
"sortOrder": "relevance",
"postType": "activity"
}
},
)
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: linkedin-post-comments-by-post-id.
Parameters
postIdRequiredstringLinkedIn post ID.
pageintegerPage number, starting from 1.
Example: 1
sortOrderstringComment sort order. Available Values: - `RELEVANCE`: Sort comments by relevance - `RECENT`: Sort comments from most recent One of: RELEVANCE, RECENT.
RELEVANCE · RECENT · relevance · recent
Example: relevance
postTypestringLinkedIn post identifier type. Available Values: - `ACTIVITY`: LinkedIn activity post - `UGC`: LinkedIn user-generated content post One of: ACTIVITY, UGC.
ACTIVITY · UGC · activity · ugc
Example: activity
Other ways to do it
Same job, other sources, cheapest first.
