# LinkedIn Post Comments API

> Returns comments for a specific LinkedIn post using its activity URN. Supports filtering by share URN, sorting by relevance or recency, and paginating through results.

Source: https://www.sandbase.ai/model/linkedin/web-v2/post-comments
API reference: https://www.sandbase.ai/model/linkedin/web-v2/post-comments/docs

## Facts

- Provider: LinkedIn
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/linkedin/web-v2/post-comments`
- Price: $0.01 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, linkedin
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/linkedin/web-v2/post-comments` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `urn` | string | yes |  |
| `page` | any | no |  |
| `pagination_token` | any | no |  |
| `share_urn` | any | no |  |
| `sort_by` | any | no |  |

## FAQ

### How do I use the LinkedIn Post Comments API?

Send a POST request to https://api.sandbase.ai/v1/api/linkedin/web-v2/post-comments with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the LinkedIn Post Comments API cost?

$0.01 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

### What parameters does the LinkedIn Post Comments API accept?

Required: urn (string). Optional: page (any), pagination_token (any), share_urn (any) and sort_by (any). The Parameters table and the Playground on this page list every field.

### What does the LinkedIn Post Comments API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a LinkedIn developer account or API key?

No. LinkedIn Post Comments runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for LinkedIn API access separately.

## README

### LinkedIn Post Comments API

Retrieve comments for a LinkedIn post by providing the target activity identifier in `urn`. You can sort by recency or relevance and navigate multi-page discussions.

#### Use cases

- Review audience feedback and replies on specific LinkedIn posts.
- Monitor post discussions sorted by either recency or relevance.
- Ingest comment threads across multiple pages using pagination tokens.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/linkedin/web-v2/post-comments" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"urn": "<urn>"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `urn` | string | Yes | Post activity urn (the numeric part of .../urn:li:activity:<urn>/). |
| `page` | string | No | Page number, starting at 1. |
| `sort_by` | string | No | Most relevant (default) or Most recent. |
| `share_urn` | string | No | Optional share urn for shared posts. |
| `pagination_token` | string | No | Token returned by the previous response. |

#### Notes

- Provide the numeric portion of urn:li:activity:<urn> in `urn`.
- Sort options for `sort_by` include Most relevant (default) and Most recent.
- Pagination is handled via `page` starting at 1 or by passing `pagination_token` from previous responses.

#### Related APIs

- [LinkedIn Company Posts](/model/linkedin/web-v2/company-posts): Returns posts from a LinkedIn organization page using the company URL.
- [LinkedIn Company Profile](/model/linkedin/web-v2/company-profile): Returns LinkedIn company profile details, including affiliated organizations, using a direct company page URL.
- [LinkedIn Job Details](/model/linkedin/web-v2/job-detail): Returns detailed information for a specific LinkedIn job posting via its URL.
