Get LinkedIn person comments

Fetch recent public comments made by a LinkedIn person (comments they wrote on other people's posts) by profile URL.

Returns one page at a time. When meta.hasMore is true, request the next page with the same profileUrl, page incremented by 1, and paginationToken set to the value from the previous response.

Recommended client timeout: 90 seconds. Most requests resolve in 2-5 seconds, but set your HTTP client timeout to at least 90 seconds to avoid false timeouts on slower lookups.

Credits

Each successful response deducts 10 credits from your organization. Requests that fail (4xx / 5xx) are not billed.

See the credits documentation for the full rate table.


POST
/data/linkedin/person/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/person/comments.

profileUrl*string

Public LinkedIn person profile URL, e.g. https://www.linkedin.com/in/janedoe.

Length1 <= length <= 2048
page?integer

Results page number (1-based). Defaults to 1. Max 100.

Range1 <= value <= 100
paginationToken?|

Cursor from a previous response's meta.paginationToken. Required for page 2+ when one is returned.

Lengthlength <= 4096

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/data/linkedin/person/comments" \  -H "Content-Type: application/json" \  -d '{    "profileUrl": "string"  }'
{  "requestId": "string",  "comments": [    {      "text": "string",      "commentUrl": "string",      "postId": "string",      "postUrl": "string",      "datePosted": "string",      "authorName": "string",      "authorUrl": "string",      "replyCount": 0,      "engagement": {        "likes": 0      }    }  ],  "meta": {    "returnedCount": 0,    "page": 1,    "paginationToken": "string",    "hasMore": true  }}
{  "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."  }}