API referenceLinkedin posts
GET
/api/v1/posts/{postId}/reactions

The reactions: each reactor with LinkedIn's reaction type, a page of limit; a comment's with comment_id. Pass cursor back for the next page; null on the last.

Authorization

X-API-KEY<token>

Your API key from the console (gw_live_…).

In: header

Path Parameters

postId*string

The post's social_id (urn:li:activity:… or urn:li:ugcPost:…), as a post read gives it.

Query Parameters

account_id*string

The LinkedIn account (lg_…) to act as.

Length1 <= length
limit?integer

Reactions per page, 1 to 50. Default 50. A reactor LinkedIn names no id for is left out, so a page can hold fewer.

Range1 <= value <= 50
Default50
cursor?string

The cursor the previous page answered, passed back unchanged, for the next page. Leave it out for the first page; a null cursor means there is no next page. Opaque: its form differs by route.

comment_id?string

A comment's id from this list, or its number alone: the reactions on that comment instead of the post.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/posts/urn:li:activity:7390000000000000000/reactions?account_id=lg_3f9c2a7b1d"
{  "object": "PostReactionList",  "items": [    {      "object": "PostReaction",      "value": "LIKE",      "post_id": "urn:li:activity:7390000000000000000",      "author": {        "id": "ACoAAB1a2b3c4d5e6f",        "type": "INDIVIDUAL",        "name": "Jane Doe",        "headline": "Head of Sales at Example Corp",        "profile_url": "https://www.linkedin.com/in/jane-doe",        "profile_picture_url": null      }    }  ],  "cursor": "50",  "paging": {    "page_count": 1  }}