API referenceLinkedin posts
GET
/api/v1/users/{identifier}/comments

The comments a member wrote, newest first, one page of limit posts commented on (a post commented twice gives two comments). Pass cursor back for the next page; null on the last. An account connected with email and password only: an account connected with a cookie (access_token) answers 422. A sandbox account answers however it connected. A public identifier is resolved to the provider id first.

Authorization

X-API-KEY<token>

Your API key from the console (gw_live_…).

In: header

Path Parameters

identifier*string

The member: a provider id (ACoA…), or a public identifier (jane-doe), which costs one more profile read to resolve.

Query Parameters

account_id*string

The LinkedIn account (lg_…) to act as.

Length1 <= length
limit?integer

Posts commented on per page, 1 to 20. Default 10. A post commented twice gives two comments, so a page can hold more than limit.

Range1 <= value <= 20
Default10
cursor?string

The previous page's cursor (opaque).

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/users/ACoAAB1a2b3c4d5e6f/comments?account_id=lg_3f9c2a7b1d"
{  "object": "CommentList",  "items": [    {      "object": "Comment",      "id": "urn:li:fsd_comment:(7521098475422539776,urn:li:activity:7506287029048078337)",      "post_id": "urn:li:activity:7506287029048078337",      "post_urn": "urn:li:share:7506287026313404416",      "author": "Jane Doe",      "author_details": {        "id": "ACoAAB1a2b3c4d5e6f",        "headline": "Head of Sales at Example Corp",        "profile_url": "https://www.linkedin.com/in/jane-doe",        "profile_picture_url": null,        "network_distance": null      },      "date": "2026-10-28T06:40:11.795Z",      "text": "Great point on hiring.",      "reaction_counter": 0,      "reply_counter": 0,      "impressions_counter": 5    }  ],  "cursor": "eyJzdGFydCI6NCwidG9rZW4iOiJ4In0",  "paging": {    "page_count": 1  }}