st.retrievePersonReactions
This action allows you to retrieve reactions made by a person.
In the Node SDK this action runs inside fetchPerson with retrieveReactions enabled; its result comes back in data.reactions, and its errors in errors.
Up to
@linkedapi/node2.3.19 theTReactiontype declares the reaction kind asreactionType, while the API returns it astype, described below. At runtime the value is intype;reactionTypeis always undefined.
In the Python SDK this action runs inside fetch_person with retrieve_reactions enabled; its result comes back in result.data.reactions, and its errors in result.errors.
Up to
linkedapi1.4.7 theReactionmodel drops the reaction kind: the API returns it astype, described below, butreaction_typeis alwaysNoneand the model has notype. To read it, run the same workflow withcustom_workflow, whose completion keeps every field as the API returns it.
In the CLI this action runs inside linkedin person fetch with --reactions; that command's other options are on st.openPersonPage.
Constraints
⏺️ Root Start: not allowed.
⬆️ Parent Actions: st.openPersonPage.
⬇️ Child Actions: N/A.
Parameters
{
"actionType": "st.retrievePersonReactions",
"label": "person1Reactions",
"limit": 10,
"since": "2023-01-01T00:00:00Z"
}label(optional) – custom label for tracking this action in workflow completion.limit(optional) – number of reactions to retrieve. Defaults to 20, with a maximum value of 100.since(optional) – timestamp to filter reactions made after the specified time.
Note: both limit and since conditions are applied simultaneously. For example:
- If
limitis 10, but there are more than 10 reactions since the specified timestamp, only 10 reactions will be returned. - If
limitis 15, but only 5 reactions exist after the specified timestamp, only those 5 reactions will be returned.
Result options
This action always completes successfully. Even if the person has no reactions, it returns an empty array.
{
"actionType": "st.retrievePersonReactions",
"label": "person1Reactions",
"success": true,
"data": [
{
"postUrl": "https://www.linkedin.com/posts/example1",
"time": "2023-01-02T12:30:00Z",
"type": "like"
},
{
"postUrl": "https://www.linkedin.com/posts/example2",
"time": "2023-01-03T12:30:00Z",
"type": "celebrate"
}
]
}label– included only if specified in the action parameters.data– array of person reactions.postUrl– URL of the post the reaction belongs to.time– timestamp when the reaction was made.type– enum describing the reaction type. May take one of the following values:like– standard "like".celebrate– celebrates an achievement.support– shows support.love– expresses love or admiration.insightful– appreciates insightful content.funny– reacts to something humorous.