Call it
curl https://api.peume.com/v1/call/linkedin-profile-posts-full \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"includeQuotePosts": true,
"includeReposts": true,
"limit": 10,
"url": "https://www.linkedin.com/in/williamhgates/"
}
}'const res = await fetch("https://api.peume.com/v1/call/linkedin-profile-posts-full", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"includeQuotePosts": true,
"includeReposts": true,
"limit": 10,
"url": "https://www.linkedin.com/in/williamhgates/"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/linkedin-profile-posts-full",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"includeQuotePosts": True,
"includeReposts": True,
"limit": 10,
"url": "https://www.linkedin.com/in/williamhgates/"
}
},
)
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-profile-posts-full.
Parameters
fieldsstringComma-separated keys (dotted paths descend) to keep on each result item. Trims the response, not the charge.
max_itemsintegerCaps the result rows returned; `_truncated` says how many were withheld. Not the charge.
summaryboolean`true` returns only an outline: keys, item counts, per-field sizes.
jqstringjq expression over the result envelope; its output replaces `output`. A failed expression returns the full result with `jqError`.
contextCountrystringRegional LinkedIn context used when retrieving posts.
any · US · GB · DE · FR
cursorstringPagination cursor from a previous response's nextCursor.
includeQuotePostsbooleanWhether to include quote posts that add commentary to shared content.
Example: true
includeRepostsbooleanWhether to include reposts that share content without added commentary.
Example: true
limitintegerMost posts to return (1-100, default 10). Ignored on sources that page: each call returns one full page of 50 posts; follow nextCursor for more. Sources that cannot page return up to `limit` posts in one call with no nextCursor.
Example: 10
postedLimitstringOnly return posts published within this relative time window.
any · 1h · 24h · week · month · 3months · 6months · year
postedLimitDatestringOnly return posts published on or after this date or timestamp, using a JavaScript-compatible date-time string.
urlRequiredstringFull URL of the public LinkedIn profile whose posts should be returned.
Example: https://www.linkedin.com/in/williamhgates/
