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

Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset failure behavior

Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150

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