Facebook Pixel
APILinkedIn Posts

Get reactions from a post

Retrieve reactions (likes, celebrates, etc.) from a LinkedIn post. Identical to /posts/reactions/v2 — both return vanity names in actorPublicIdentifier. Pages by token like /posts/comments: pass the previous response's pagination.nextPaginationToken back as paginationToken.

POST/posts/reactions
Authentication requiredPosts

Code Examples

curl -X POST 'https://api.connectsafely.ai/linkedin/posts/reactions' \
-H 'Authorization: Bearer <your_api_key>' \
-H 'Content-Type: application/json' \
-d '{"postUrl":"https://linkedin.com/posts/example-post"}'

Retrieve reactions (likes, celebrates, etc.) from a LinkedIn post. Identical to /posts/reactions/v2 — both return vanity names in actorPublicIdentifier. Pages by token like /posts/comments: pass the previous response's pagination.nextPaginationToken back as paginationToken.

Parameters

No parameters.

Request Body

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID to use. If not provided, uses the default account.
postUrlstringYesFull URL of the LinkedIn post to get reactions from
countnumberNoNumber of reactions per page (default 10)
paginationTokenstringNoToken from previous response to fetch next page
pageTokenstringNoDeprecated alias for paginationToken, kept for existing v2 clients
startnumberNoDeprecated. LinkedIn pages this endpoint by token only, so this value is ignored. Use paginationToken.

Example

{
  "postUrl": "https://linkedin.com/posts/example-post"
}

Responses

StatusDescription
200Reactions retrieved successfully
400Bad request - Missing required fields
401Unauthorized - Invalid or missing API key

200 Response Parameters

NameTypeDescription
successboolean
postUrlstringURL of the post
accountIdstringLinkedIn account ID used for the request
reactionsarray
paginationobject
postDetailsobject

200 Example

{
  "success": true,
  "postUrl": "https://www.linkedin.com/feed/update/urn:li:activity:7430667226199830528/",
  "accountId": "696ce9e780e0483585e4e553",
  "reactions": [
    {
      "actorUrn": null,
      "postUrn": "urn:li:activity:7430667226199830528",
      "reactionType": "LIKE",
      "actorType": "profile",
      "actorName": "John Doe",
      "actorHeadline": "Software Engineer at Tech Company",
      "actorPublicIdentifier": "john-doe-123",
      "actorProfilePicture": "https://media.licdn.com/dms/image/...",
      "actorProfileUrl": "https://www.linkedin.com/in/john-doe-123",
      "connectionDegree": "1st"
    }
  ],
  "pagination": {
    "count": 5,
    "hasNextPage": false,
    "nextPaginationToken": null
  },
  "postDetails": {
    "activityUrn": "urn:li:activity:7430667226199830528",
    "ugcPostUrn": null,
    "shareUrn": "urn:li:share:7430667225633550337",
    "featuredActivityUrn": null,
    "content": "Post content here..."
  }
}

400 Response Parameters

NameTypeDescription
successboolean
errorobject

400 Example

{
  "success": false,
  "error": {
    "issues": [
      {
        "code": "invalid_type",
        "expected": "string",
        "received": "undefined",
        "path": [
          "postUrl"
        ],
        "message": "Required"
      }
    ],
    "name": "ZodError"
  }
}

401 Response Parameters

NameTypeDescription
errorstring

401 Example

{
  "error": "Unauthorized - Invalid credentials"
}

On this page