Call it
curl https://api.peume.com/v1/call/get-linkedin-org-analytics \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"accountId": "your accountId",
"metricType": "total_value"
}
}'const res = await fetch("https://api.peume.com/v1/call/get-linkedin-org-analytics", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"accountId": "your accountId",
"metricType": "total_value"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/get-linkedin-org-analytics",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"accountId": "your accountId",
"metricType": "total_value"
}
},
)
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-linkedin-org-analytics.
Parameters
accountIdRequiredstringThe SocialAccount ID for the LinkedIn organization account.
metricsstringComma-separated list. Defaults to "impressions,clicks,engagement_rate,organic_followers_gained,followers_gained,followers_lost". Share statistics (support both total_value and time_series): - impressions - unique_impressions - clicks - likes - comments - shares - engagement_rate (0..1, LinkedIn-computed) Follower-gain statistics (support total_value and time_series): - organic_followers_gained (per-day organic gains for time_series; sum of organic gains over the range for total_value) - paid_followers_gained (per-day paid gains for time_series; sum of paid gain
fromDatestringStart date (YYYY-MM-DD). Defaults to 30 days ago.
toDatestringEnd date (YYYY-MM-DD). Defaults to today.
sincestringAlias of fromDate, kept for existing callers
untilstringAlias of toDate, kept for existing callers
metricTypestringtime_series · total_value
Example: total_value
