LinkedIn

Get LinkedIn post comments

Fetch comments and commenter profiles from a public LinkedIn post by post URL, up to 1000 per request. Costs 1 credit per comment returned.

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 (sf_api_… from Integrations → API) or a partner OAuth 2.1 access token issued by SnitchFeed (authorization_code + refresh). OAuth tokens must be audience-bound to this API (resource = {apiOrigin}/v1). Every credential must carry the scope its route requires (for example search:read for /data/*); see https://snitchfeed.com/docs/api/scopes for the scope each route needs.

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

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  }}