Skip to main content
POST
/
v2
/
content
Get Post Comments
curl --request POST \
  --url https://api.example.com/v2/content \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '
{
  "account_id": "<string>",
  "action": "<string>",
  "params": {
    "post_url": "<string>",
    "count": 123,
    "offset": 123
  }
}
'
{
  "success": true,
  "data": {
    "comments": [
      {
        "comment_urn": "urn:li:comment:(activity:7453382311909445632,7453434056920387584)",
        "tracking_id": "tXyr6F5s8TwZ9U3ezehCwg==",
        "comment_text": "Great post! Very insightful.",
        "created_time": 1777037157279,
        "commenter": {
          "name": "Jane Doe",
          "profile_urn": "urn:li:fsd_profile:ACoAA...",
          "linkedin_url": "https://www.linkedin.com/in/jane-doe-42",
          "occupation": "Product Manager at Acme Corp"
        }
      }
    ],
    "total_results": 1,
    "total_available_results": 10,
    "pagination": {
      "offset": 0,
      "count": 1,
      "next_offset": 1,
      "has_more": true,
      "results_per_page": 10,
      "pages_fetched": 1
    }
  },
  "metadata": {
    "action": "get_comments",
    "account_id": "your-account-id",
    "credits_consumed": 1,
    "timestamp": "2026-04-26T10:35:00Z"
  }
}

Overview

Returns the comments on a specific LinkedIn post. Pagination is offset-based — set count for the page size and offset to skip ahead.
This endpoint consumes 1 credit per 10 results returned. LinkedIn returns up to 10 comments per internal request, so larger count values trigger multiple upstream calls automatically.

Request

x-api-key
string
required
Your API key for authentication.
account_id
string
required
The unique identifier of the account to use.
action
string
required
Must be "get_comments".
params
object
required

Response

success
boolean
Indicates whether the request was successful.
data
object
metadata
object
{
  "success": true,
  "data": {
    "comments": [
      {
        "comment_urn": "urn:li:comment:(activity:7453382311909445632,7453434056920387584)",
        "tracking_id": "tXyr6F5s8TwZ9U3ezehCwg==",
        "comment_text": "Great post! Very insightful.",
        "created_time": 1777037157279,
        "commenter": {
          "name": "Jane Doe",
          "profile_urn": "urn:li:fsd_profile:ACoAA...",
          "linkedin_url": "https://www.linkedin.com/in/jane-doe-42",
          "occupation": "Product Manager at Acme Corp"
        }
      }
    ],
    "total_results": 1,
    "total_available_results": 10,
    "pagination": {
      "offset": 0,
      "count": 1,
      "next_offset": 1,
      "has_more": true,
      "results_per_page": 10,
      "pages_fetched": 1
    }
  },
  "metadata": {
    "action": "get_comments",
    "account_id": "your-account-id",
    "credits_consumed": 1,
    "timestamp": "2026-04-26T10:35:00Z"
  }
}