Skip to main content
POST
/
v2
/
profiles
Get Profile Comments
curl --request POST \
  --url https://api.example.com/v2/profiles \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '
{
  "account_id": "<string>",
  "action": "<string>",
  "params": {
    "profile_url": "<string>",
    "count": 123,
    "cursor": "<string>"
  }
}
'
{
  "success": true,
  "data": {
    "comments": [
      {
        "comment_id": "urn:li:fsd_update:(urn:li:activity:7421592107020185600,PROFILE_COMMENTS,DEBUG_REASON,DEFAULT,false)",
        "comment_content": "Great insights! Completely agree.",
        "comment_time": "89d",
        "comment_time_days": 89,
        "commenter": {
          "name": "Jane Doe",
          "profile_url": "https://www.linkedin.com/in/jane-doe-42",
          "profile_picture": "https://media.licdn.com/dms/image/...",
          "entity_urn": "ACoAA...",
          "headline": "Product Manager at Acme Corp"
        },
        "post": {
          "urn": "urn:li:ugcPost:7421567698184323073",
          "url": "https://www.linkedin.com/feed/update/urn:li:ugcPost:7421567698184323073",
          "content": "After 6 years as a consultant, I'm thrilled to share...",
          "author": {
            "name": "John Smith",
            "profile_url": "https://www.linkedin.com/in/john-smith-99",
            "entity_urn": "urn:li:fsd_profile:ACoAA..."
          }
        }
      }
    ],
    "total_results": 1,
    "profile_url": "https://www.linkedin.com/in/jane-doe-42/",
    "entity_urn": "ACoAA...",
    "profile_urn": "urn:li:fsd_profile:ACoAA...",
    "pagination": {
      "results_per_page": 50,
      "pages_fetched": 1,
      "has_more": true,
      "next_cursor": "dXJuOmxpOmFjdGl2aXR5OjcyODE5ODI4NTAwOTMwMDI3NTItMTczNjE1OTk5MDE2OA=="
    }
  },
  "metadata": {
    "action": "get_comments",
    "account_id": "your-account-id",
    "credits_consumed": 1,
    "timestamp": "2026-04-26T08:35:34Z"
  }
}

Overview

Fetches the list of comments made by a specified user on posts and articles. Pagination is cursor-based — pass the next_cursor returned by a previous call to fetch the next page.
This endpoint consumes 1 credit per 10 results returned. LinkedIn returns up to 50 comments per internal request, so requesting count: 100 triggers only 2 upstream calls.

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

Response

success
boolean
Indicates whether the request was successful.
data
object
metadata
object
{
  "success": true,
  "data": {
    "comments": [
      {
        "comment_id": "urn:li:fsd_update:(urn:li:activity:7421592107020185600,PROFILE_COMMENTS,DEBUG_REASON,DEFAULT,false)",
        "comment_content": "Great insights! Completely agree.",
        "comment_time": "89d",
        "comment_time_days": 89,
        "commenter": {
          "name": "Jane Doe",
          "profile_url": "https://www.linkedin.com/in/jane-doe-42",
          "profile_picture": "https://media.licdn.com/dms/image/...",
          "entity_urn": "ACoAA...",
          "headline": "Product Manager at Acme Corp"
        },
        "post": {
          "urn": "urn:li:ugcPost:7421567698184323073",
          "url": "https://www.linkedin.com/feed/update/urn:li:ugcPost:7421567698184323073",
          "content": "After 6 years as a consultant, I'm thrilled to share...",
          "author": {
            "name": "John Smith",
            "profile_url": "https://www.linkedin.com/in/john-smith-99",
            "entity_urn": "urn:li:fsd_profile:ACoAA..."
          }
        }
      }
    ],
    "total_results": 1,
    "profile_url": "https://www.linkedin.com/in/jane-doe-42/",
    "entity_urn": "ACoAA...",
    "profile_urn": "urn:li:fsd_profile:ACoAA...",
    "pagination": {
      "results_per_page": 50,
      "pages_fetched": 1,
      "has_more": true,
      "next_cursor": "dXJuOmxpOmFjdGl2aXR5OjcyODE5ODI4NTAwOTMwMDI3NTItMTczNjE1OTk5MDE2OA=="
    }
  },
  "metadata": {
    "action": "get_comments",
    "account_id": "your-account-id",
    "credits_consumed": 1,
    "timestamp": "2026-04-26T08:35:34Z"
  }
}