Call it
curl https://api.peume.com/v1/call/linkedin-post-comments-by-url-or-urn \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"postUrlOrUrn": "urn:li:activity:7508596155145043968",
"count": 100,
"start": 0
}
}'const res = await fetch("https://api.peume.com/v1/call/linkedin-post-comments-by-url-or-urn", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"postUrlOrUrn": "urn:li:activity:7508596155145043968",
"count": 100,
"start": 0
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/linkedin-post-comments-by-url-or-urn",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"postUrlOrUrn": "urn:li:activity:7508596155145043968",
"count": 100,
"start": 0
}
},
)
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-url-or-urn.
Parameters
postUrlOrUrnRequiredstringPost URL, activity URN or share URN.
Example: urn:li:activity:7508596155145043968
countintegerExample: 100
startintegerExample: 0
paginationTokenstringPass the token from the previous response unchanged when present.
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.Comments on a LinkedIn postList the top-level comments on one LinkedIn post with author, profile link, text, time and likes.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.
