Call it
curl https://api.peume.com/v1/call/get-comments-on-a-linkedin-post \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"post": "https://www.linkedin.com/posts/williamhgates_ive-been-thinking-a-lot-about-the-idea-of-activity-7503320303024926720-1t50",
"page": 1
}
}'const res = await fetch("https://api.peume.com/v1/call/get-comments-on-a-linkedin-post", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"post": "https://www.linkedin.com/posts/williamhgates_ive-been-thinking-a-lot-about-the-idea-of-activity-7503320303024926720-1t50",
"page": 1
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/get-comments-on-a-linkedin-post",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"post": "https://www.linkedin.com/posts/williamhgates_ive-been-thinking-a-lot-about-the-idea-of-activity-7503320303024926720-1t50",
"page": 1
}
},
)
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-comments-on-a-linkedin-post.
Parameters
postRequiredstringURL of the LinkedIn post (required)
Example: https://www.linkedin.com/posts/williamhgates_ive-been-thinking-a-lot-about-the-idea-of-activity-7503320303024926720-1t50
sortBystringSort comments by field. Supported values: 'relevance', 'date'
pageintegerPage number for pagination. Default is 1
Example: 1
paginationTokenstringRequired only if sortBy is 'relevance' and page > 1. Use this token from the previous page response.
Other ways to do it
Same job, other sources, cheapest first.
