LinkedIn GetPostAnalytics

LinkedIn GetPostAnalytics

Certified

Fetch LinkedIn post reactions

Retrieves reactions for one or more LinkedIn activity URNs using the REST reactions endpoint. Returns per-post totals, reaction breakdown, and actor metadata; uses LinkedIn-Version 202509 and X-Restli-Protocol-Version 2.0.0.

yaml
type: io.kestra.plugin.linkedin.GetPostAnalytics

Get reactions for multiple posts

yaml
id: linkedin_post_analytics
namespace: company.team

tasks:
  - id: authenticate
    type: io.kestra.plugin.linkedin.OAuth2
    clientId: "{{ secret('LINKEDIN_CLIENT_ID') }}"
    clientSecret: "{{ secret('LINKEDIN_CLIENT_SECRET') }}"
    refreshToken: "{{ secret('LINKEDIN_REFRESH_TOKEN') }}"

  - id: get_analytics
    type: io.kestra.plugin.linkedin.GetPostAnalytics
    accessToken: "{{ outputs.authenticate.accessToken }}"
    activityUrns:
      - "urn:li:activity:7374025671234244609"
Properties

Access Token

OAuth2 access token sent as Bearer auth for LinkedIn REST API calls

SubTypestring

Activity URNs

List of LinkedIn activity URNs to fetch reactions for

Defaulthttps://api.linkedin.com/rest

Base API URL

LinkedIn REST base URL; defaults to https://api.linkedin.com/rest

Default202509

LinkedIn API Version

LinkedIn-Version header value; defaults to 202509

Defaultkestra-linkedin-plugin

Application Name

Application identifier included in requests; defaults to kestra-linkedin-plugin

Reference (ref) of the pluginDefaults to apply to this task.

Per-post reaction data

Reaction details for each requested activity URN

Definitions
activityUrnstring
errorstring
reactionsarray
actorUrnstring
createdTimeinteger
impersonatorUrnstring
lastModifiedTimeinteger
reactionIdstring
reactionTypestring
rootUrnstring
reactionsSummaryobject
SubTypeinteger
totalReactionsinteger

Total posts processed

Number of activity URNs for which reactions were fetched

Total reactions

Sum of reactions across all processed posts