Facebook Pixel
APILinkedIn Analytics

List an account's own comments

Return a single page of the LinkedIn account's own comment history (the comments this account left on posts), newest first. Lightweight — one LinkedIn call per request. To page, pass the returned `paginationToken` on the next request; keep going until `paginationToken` is null.

GET/account/{accountId}/comments
Authentication requiredAnalytics

Code Examples

curl -X GET 'https://api.connectsafely.ai/linkedin/account/<accountId>/comments' \
-H 'Authorization: Bearer <your_api_key>'

Return a single page of the LinkedIn account's own comment history (the comments this account left on posts), newest first. Lightweight — one LinkedIn call per request. To page, pass the returned paginationToken on the next request; keep going until paginationToken is null.

Parameters

NameInRequiredTypeDescription
accountIdpathYesstringLinkedIn account ID (24-character hex string)
countqueryNonumberNumber of comments to return per page
startqueryNonumberPagination offset (0-indexed). Ignored when paginationToken is provided.
paginationTokenqueryNostringToken from a previous response to fetch the next page

Request Body

No request body.

Responses

StatusDescription
200Comment history page retrieved successfully

200 Response Parameters

NameTypeDescription
successboolean
accountIdstringLinkedIn account ID used
profileIdstringLinkedIn profile URN
countnumberNumber of comments returned in this page
paginationTokenstringToken for the next page; null when there are no more pages
commentsarray

200 Example

{
  "success": true,
  "accountId": "6971843ca43920b1889fa28f",
  "profileId": "ACoAAFntzT4BELbT50_fDUyqwwNPXPXu-8P3HWc",
  "count": 1,
  "paginationToken": "dXJuOmxpOmFjdGl2aXR5Ojc0NzQ5NzY5OTU3...",
  "comments": [
    {
      "activityUrn": "7475541592183848960",
      "timestamp": 1782308004423,
      "isoDate": "2026-06-24T13:33:24.423Z",
      "type": "comment"
    }
  ]
}