Call it
curl https://api.peume.com/v1/call/recent-linkedin-posts-by-profile-url-with-engagement \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"linkedin_url": "https://linkedin.com/in/johndoe"
}
}'const res = await fetch("https://api.peume.com/v1/call/recent-linkedin-posts-by-profile-url-with-engagement", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"linkedin_url": "https://linkedin.com/in/johndoe"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/recent-linkedin-posts-by-profile-url-with-engagement",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"linkedin_url": "https://linkedin.com/in/johndoe"
}
},
)
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: recent-linkedin-posts-by-profile-url-with-engagement.
Parameters
linkedin_urlRequiredstringLinkedIn person profile URL.
Example: https://linkedin.com/in/johndoe
cursorstringPagination token from a previous response's pagination.cursor.
limitintegerPosts to return per call (1-50, default 20). Follow pagination.cursor to reach the rest.
Other ways to do it
Same job, other sources, cheapest first.
List a member's recent postsBest sourceList a member's recent posts. Checks the cheapest source first and moves to the next one until it finds an answer.Posts of a LinkedIn memberList one LinkedIn member's recent posts and reposts, newest first, with text, time, likes and comments.LinkedIn person's posts by profile URL or slugLinkedin: get user posts (web_v2)LinkedIn posts by member URL, slug or URNFetch posts from a professional profile with engagement metrics.Get a member’s LinkedIn postsGet LinkedIn profile posts by profile URL, ID, or public identifier.LinkedIn user posts by user URNRetrieves posts published by a LinkedIn user URN with page and pagination-token support.
