Call it
curl https://api.peume.com/v1/call/search-linkedin-posts-by-keyword \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"query": "ai agents",
"date_posted": "last-week",
"cursor": "2"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-linkedin-posts-by-keyword", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"query": "ai agents",
"date_posted": "last-week",
"cursor": "2"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-linkedin-posts-by-keyword",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"query": "ai agents",
"date_posted": "last-week",
"cursor": "2"
}
},
)
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-by-keyword.
Parameters
queryRequiredstringKeyword or phrase to search for in public LinkedIn posts
Example: ai agents
date_postedstringGoogle-indexed date window. One of: last-hour | last-day | last-week | last-month | last-year. Values like past-week / past-day are NOT accepted (provider rejects them).
last-hour · last-day · last-week · last-month · last-year
Example: last-week
cursorstringThe cursor returned from the previous response. The maximum cursor is 11; cursor 12 or greater returns a 400 response.
Example: 2
Other ways to do it
Same job, other sources, cheapest first.
