Call it
curl https://api.peume.com/v1/call/search-linkedin-posts \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"search": "Microsoft",
"page": 1
}
}'const res = await fetch("https://api.peume.com/v1/call/search-linkedin-posts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"search": "Microsoft",
"page": 1
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-linkedin-posts",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"search": "Microsoft",
"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: search-linkedin-posts.
Parameters
searchstringKeywords to search for in posts
Example: Microsoft
profilestringFilter posts by author's profile URL (comma-separated). Note: LinkedIn returns fewer results per profile when using post search. To extract all posts by a profile, use the /linkedin/profile-posts endpoint
profileIdstringFilter posts by author's profile ID or IDs (comma-separated). It's faster to search by ID. Note: LinkedIn returns fewer results per profile when using post search. To extract all posts by a profile, use the /linkedin/profile-posts endpoint
companystringFilter posts by this company URL or URLs (comma-separated). Note: LinkedIn returns fewer results per company when using post search. To extract all posts by a company, use the /linkedin/company-posts endpoint
companyIdstringFilter posts by company ID or IDs (comma-separated). It's faster to search by ID. Note: LinkedIn returns fewer results per company when using post search. To extract all posts by a company, use the /linkedin/company-posts endpoint
authorsCompanystringList of LinkedIn companies where authors of posts work (comma-separated). It supports company URLs and IDs.
authorsIndustryIdstringList of LinkedIn industry IDs of authors' companies (comma-separated). It supports industry IDs. Full list of industry IDs:
mentioningMemberstringFilter posts mentioning this LinkedIn profile URL or ID (comma-separated). It supports profile URLs and IDs.
mentioningCompanystringFilter posts mentioning this LinkedIn company URL or ID (comma-separated). It supports company URLs and IDs.
contentTypestringFilter by content type. Supported values: 'videos', 'images', 'live_videos', 'documents', 'collaborative_articles', 'jobs'
authorKeywordsstringFilter by keywords in authors' profiles
groupstringGroup LinkedIn URL or Group ID
postedLimitstringFilter posts by maximum posted date. Supported values: '24h', 'week', 'month'. This parameter will be sent to LinkedIn, the filtering will be done on their side
scrapePostedLimitstringPost-Filter posts by maximum posted date. Supported values: '1h', '24h', 'week','month', '3months', '6months', 'year'. This parameter will be applied after receiving results from LinkedIn, the filtering will be done on our side
sortBystringSort by field. Supported values: 'relevance', 'date'
pageintegerPage number for pagination
Example: 1
paginationTokenstringRequired if it was returned by the previous page. Otherwise the page will always be 1 (on LinkedIn side). Doesn't apply for all queries, usually profile posts return this token
Other ways to do it
Same job, other sources, cheapest first.
