Get LinkedIn post comments

Fetch commenters and comment text for a public LinkedIn post by post URL.

Returns up to maxComments comments (default 100, max 1000).

Recommended client timeout: 90 seconds. Larger maxComments values take longer because multiple pages are fetched.

Credits

Each successful response deducts 1 credit per comment returned. Requests that fail (4xx / 5xx) are not billed.

See the credits documentation for the full rate table.


POST
/data/linkedin/posts/comments

Authorization

bearerAuth
AuthorizationBearer <token>

Organization API key from Integrations → API keys.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Request body for POST /data/linkedin/posts/comments.

postUrl*string

Public LinkedIn post URL (e.g. https://www.linkedin.com/posts/... or a feed/update/urn:li:activity:... URL).

Length1 <= length <= 2048
maxComments?integer

Maximum comments to return (100-1000). Default 100. Charged at 1 credit per comment returned.

Range100 <= value <= 1000

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/data/linkedin/posts/comments" \  -H "Content-Type: application/json" \  -d '{    "postUrl": "string"  }'
{  "requestId": "string",  "comments": [    {      "profileUrl": "string",      "authorName": "string",      "authorHeadline": "string",      "text": "string",      "timestamp": "string",      "permalink": "string"    }  ],  "meta": {    "returnedCount": 0,    "total": 0,    "creditsCharged": 0  }}
{  "requestId": "01HXYZABCDEF",  "error": {    "code": "validation_error",    "message": "query: String must contain at least 1 character(s)",    "issues": [      {        "path": "query",        "message": "String must contain at least 1 character(s)"      }    ]  }}
{  "requestId": "01HXYZABCDEF",  "error": {    "code": "unauthorized",    "message": "Invalid or revoked API key."  }}
{  "requestId": "01HXYZABCDEF",  "error": {    "code": "rate_limited",    "message": "Rate limit exceeded for linkedin. Try again later.",    "retryAfter": 42  }}
{  "requestId": "01HXYZABCDEF",  "error": {    "code": "upstream_error",    "message": "LinkedIn search could not be completed. You won't be charged for this request."  }}
{  "requestId": "ce8f36c6-c9e6-4ab1-93b3-d11bbbe886aa",  "error": {    "code": "linkedin_unavailable",    "message": "LinkedIn search is temporarily unavailable. Retry later. You won't be charged for this request."  }}