Reacting to posts
This endpoint allows you to react to LinkedIn posts, applying different reaction types.
POST https://api.linkedapi.io/account/posts.react
Body
{
"reactions": [
{
"post": "https://www.linkedin.com/posts/post1",
"type": "like"
},
{
"post": "https://www.linkedin.com/posts/post2",
"type": "celebrate"
}
]
}
post
– LinkedIn URL of the post to react.type
– enum describing the reaction type, must be one of the following values:like
– standard "like".celebrate
– to celebrate an achievement.support
– to show support.love
– to express love or admiration.insightful
– to appreciate insightful content.funny
– to react to something humorous.
Response
- If all reactions are successful:
{
"status": "complete",
"completion": [
{
"post": "https://www.linkedin.com/posts/post1",
"result": {
"success": true
}
},
{
"post": "https://www.linkedin.com/posts/post2",
"result": {
"success": true
}
}
]
}
- If some reactions are unsuccessful:
{
"status": "complete",
"completion": [
{
"post": "https://www.linkedin.com/posts/post1",
"result": {
"success": true
}
},
{
"post": "https://www.linkedin.com/posts/post2",
"result": {
"success": false,
"error": {
"errorType": "postNotFound",
"message": "The provided URL is not an existing LinkedIn post."
}
}
}
]
}
errorType
– enum with the following possible values:postNotFound
– provided URL is not an existing LinkedIn post.
Throughout the documentation, for simplicity, only the request body and final response (when status is
complete
) are shown. Consider possible global errors and result handling options for proper implementation.