Call it
curl https://api.peume.com/v1/call/linkedin-post-search-full \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"datePosted": "last-week",
"limit": 10,
"query": "artificial intelligence",
"sort": "relevance"
}
}'const res = await fetch("https://api.peume.com/v1/call/linkedin-post-search-full", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"datePosted": "last-week",
"limit": 10,
"query": "artificial intelligence",
"sort": "relevance"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/linkedin-post-search-full",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"datePosted": "last-week",
"limit": 10,
"query": "artificial intelligence",
"sort": "relevance"
}
},
)
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-post-search-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`.
authorCompanyNamesarrayOnly return posts by people associated with these company names.
authorIndustryIdsarrayOnly return posts by authors associated with these LinkedIn industry IDs.
authorKeywordsstringOnly return posts whose author profile headline or job title contains at least one of these keywords.
authorUrlsarrayOnly return posts authored by these LinkedIn profile or company URLs.
contentTypestringOnly return posts carrying this content type.
all · videos · images · jobs · live-videos · documents · collaborative-articles
datePostedstringOnly return posts published within this relative time window. Last-hour and windows beyond one month route to the provider that supports them.
last-hour · last-day · last-week · last-month · last-three-months · last-six-months · last-year
Example: last-week
limitintegerMaximum number of posts to return (1-100, default 10). The upper bound is one LinkedIn search page.
Example: 10
mentioningMemberUrlsarrayOnly return posts mentioning these LinkedIn member profile URLs.
queryRequiredstringLinkedIn post search query, including quoted terms or Boolean operators accepted by LinkedIn search.
Example: artificial intelligence
sortstringOrder results by search relevance or publication date.
relevance · date
Example: relevance
Other ways to do it
Same job, other sources, cheapest first.
