InsightSocial API
LinkedIn

Post › Comments

GET
/v1/linkedin/post/comments

Returns the comments on a LinkedIn post: commenter name, comment text, reaction counts, reply count, pinned and edited flags, and timestamps.

Use it for the top-level comments on a post, then pass a comment's id to post/comments/replies to open one thread.

100 credits per call.

Re-running the exact same call within 6h is free.

Paginates by cursor — see Pagination.

x-api-key<token>

Your key from the dashboard. It starts with isk_.

In: header

Query Parameters

url*string

Full URL of the LinkedIn post. It has to carry the post's ACTIVITY id, either https://www.linkedin.com/feed/update/urn:li:activity:<id> or https://www.linkedin.com/posts/<slug>-activity-<id>-<code>. Every endpoint that lists posts publishes the activity form as post.url, so copy that field rather than rebuilding the URL from post.id, which is not always the activity id.

page?integer

Page number for pagination (default 1).

Range1 <= value
post_type?string

Post type: 'activity' (default) or 'ugc'.

Value in

  • "activity"
  • "ugc"
sort_order?string

Comment ordering: 'relevance' or 'recent'.

Value in

  • "recent"
  • "relevance"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/linkedin/post/comments?url=string"
{  "success": true,  "platform": "instagram",  "endpoint": "/v1/instagram/profile/posts",  "data": {    "items": [      "…"    ],    "dropped": 0  },  "pagination": {    "next_cursor": "is2.eyJwIjoyfQ",    "has_more": true,    "page_size": 12  },  "credits_used": 20,  "credits_remaining": 9980,  "request_id": "req_1a2b3c4d5e6f",  "cached": false,  "idempotent_replay": false,  "charge_reason": "miss",  "free_call": false}