Call it
curl https://api.peume.com/v1/call/comments-on-a-linkedin-post \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"limit": 20,
"post": "https://www.linkedin.com/feed/update/urn:li:activity:7502080571335155713/"
}
}'const res = await fetch("https://api.peume.com/v1/call/comments-on-a-linkedin-post", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"limit": 20,
"post": "https://www.linkedin.com/feed/update/urn:li:activity:7502080571335155713/"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/comments-on-a-linkedin-post",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"limit": 20,
"post": "https://www.linkedin.com/feed/update/urn:li:activity:7502080571335155713/"
}
},
)
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: comments-on-a-linkedin-post.
Parameters
limitintegerdefault 20
Example: 20
postRequiredstringthe post URL (…-activity-<id>-… or …/feed/update/urn:li:activity:<id>) or the activity urn
Example: https://www.linkedin.com/feed/update/urn:li:activity:7502080571335155713/
Other ways to do it
Same job, other sources, cheapest first.
List a post's commentsBest sourceList a post's comments. Checks the cheapest source first and moves to the next one until it finds an answer.LinkedIn post comments by URL or URNFetch comments from a professional post with author information and replies.Get comments on a LinkedIn postGet comments of LinkedIn post by post URL.LinkedIn post comments by post idRetrieves a page of LinkedIn comments for a post with relevance or recent sorting and activity or UGC post types.
