Call it
curl https://api.peume.com/v1/call/get-a-company-s-linkedin-posts \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"companyUniversalName": "google",
"page": 1
}
}'const res = await fetch("https://api.peume.com/v1/call/get-a-company-s-linkedin-posts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"companyUniversalName": "google",
"page": 1
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/get-a-company-s-linkedin-posts",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"companyUniversalName": "google",
"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: get-a-company-s-linkedin-posts.
Parameters
companystringFilter posts by this company URL
companyIdstringFilter posts by company ID. It's faster to search by ID
companyUniversalNamestringFilter posts by company universal name (last part in the URL)
Example: google
postedLimitstringFilter posts by maximum posted date. Supported values: '24h', 'week', 'month'. Since LinkedIn doesn't offer a way to filter by date, the filtering will be done on our side, due to that the pagination might have incorrect values, because pagination is returned by LinkedIn without applying the postedLimit filter
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
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.
