Get Analytics
A single analytics endpoint that returns metrics by time period and dimension, covering campaigns, invitations, messages, posts, reactions, comments, profile, and content. The post, profile, and content dimensions use live sub-handlers, while aggregate dimensions like posts and campaigns serve a nightly cache that is 1 to 23 hours old. Use dimension='post' with an id for per-post metrics, or refresh to force a recompute. Returns empty slices when no data exists yet.
Example prompt: Give me last week's analytics across campaigns, invitations, and messages
{
"period": "week",
"dimension": "all",
"invitations": { "sent": 96, "accepted": 31 },
"messages": { "sent": 54, "replies": 12 },
"campaigns": { "active": 3 }
}What you can build
Parameters
Inputs accepted by get_analytics.
| Name | Type | Description |
|---|---|---|
| period | "day" | "week" | "month" | Time period. 'day'=yesterday, 'week'=last 7 days, 'month'=last 30 days. |
| dimension | "campaigns" | "invitations" | "messages" | "posts" | "reactions" | "comments" | "all" | "post" | "profile" | "content" | Analytics dimension. 'post' (singular): per-post metrics, requires id. 'profile': profile views/followers. 'content': content dashboard. 'posts' (plural): aggregate daily posts stats. |
| id | string | Post ID or URN required when dimension='post' (e.g. 'urn:li:activity:1234'). Ignored for other dimensions. |
| expand | string[] | Reserved for future sub-slice expansion. |
| refresh | boolean | Force recompute before returning cached data. |
Related tools
Get Post Analytics
Pull impressions, reactions, comments, and reposts for any LinkedIn post by ID so your agent can measure reach and engagement instantly.
Get Activity Analytics
See a daily breakdown of invitations, messages, and posts over the last week so your agent can track outreach output and pacing.
Get Campaign Variant Stats
Variant statistics are unavailable until campaign send paths apply and record the selected message arm.
The complete LinkedIn API. Ready when you are.
Connect your first LinkedIn profile in under 5 minutes. Every tool, every seat, no feature gates. Safe limits, warm-up, and full permission control built in.