Call it
curl https://api.peume.com/v1/call/linkedin-comments \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"limit": 20,
"url": "your url"
}
}'const res = await fetch("https://api.peume.com/v1/call/linkedin-comments", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"limit": 20,
"url": "your url"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/linkedin-comments",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"limit": 20,
"url": "your url"
}
},
)
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-comments.
Parameters
num_commentsintegerProvides a compatibility input for setting an upper cap on fetched comments rather than filtering for a minimum comment count. Results are not guaranteed to be truncated to this number.
limitintegerMaximum number of results, 1 to 200 (default 20). For some actions it counts pages or items per parent rather than final rows.
Example: 20
num_likesintegerProvides a compatibility input for setting an upper cap on retrieved like data rather than filtering posts by a minimum number of likes. It does not serve as a stable post popularity filter.
sortstringSets the sorting order to newest or relevance for post search and comment fetching. Because these actions target different object types, this parameter does not sort people, companies, or job listings. One of: newest, relevance.
newest · relevance
urlRequiredstringSpecifies the full LinkedIn post URL used by the comments action to fetch comments for that post; company or personal profile URLs are not supported. For other endpoints offering URL compatibility inputs, required parameters like username or company must still be supplied.
