Call it
curl https://api.peume.com/v1/call/pull-linkedin-profile-posts \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"includeQuotePosts": true,
"includeReposts": true
}
}'const res = await fetch("https://api.peume.com/v1/call/pull-linkedin-profile-posts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"includeQuotePosts": true,
"includeReposts": true
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/pull-linkedin-profile-posts",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"includeQuotePosts": True,
"includeReposts": True
}
},
)
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: pull-linkedin-profile-posts.
Parameters
targetUrlsarrayList of LinkedIn profile or company URLs to scrape. Example: `https://www.linkedin.com/in/satyanadella/` will fetch posted or re-posted content by Bill Gates.
maxPostsintegerMaximum number of posts to scrape per each profile or company. Default is 10. This overrides pagination. If you set this to 0, it will scrape all posts.
postedLimitstringFetch posts no older than X time. Options: '24h', 'week', 'month'.
any · 1h · 24h · week · month · 3months · 6months · year
postedLimitDatestringScrape posts from now up to and including this date. It supports the [Date time string format]. For example, "2011-10-10", or "2011-10-10T14:48:00.000+09:00" or a timestamp: "628021800000"
includeQuotePostsbooleanInclude quote posts (shared posts with comments). By default, all posts are scraped.
Example: true
includeRepostsbooleanInclude reposts (shared posts without comments). By default, all posts are scraped.
Example: true
scrapeReactionsbooleanScrape reactions of posts.
maxReactionsintegerMaximum number of reactions to scrape per post. Default is 5.
scrapeCommentsbooleanScrape comments of posts.
maxCommentsintegerMaximum number of comments to scrape per post. Default is 5.
commentsPostedLimitstringFetch comments no older than X time. Options: '24h', 'week', 'month'.
any · 1h · 24h · week · month
contextCountrystringSet the context country for LinkedIn. This can affect the content you see on LinkedIn, as it may vary by region.
any · US · GB · DE · FR
