# LinkedIn post comments by post id

Retrieves a page of LinkedIn comments for a post with relevance or recent sorting and activity or UGC post types.

|  |  |
| --- | --- |
| Tool id | `justoneapi.x-linkedin-get-post-comments-v1` |
| Platform | [LinkedIn](https://www.orcarouter.ai/tools/linkedin.md) |
| Capability | [Post comments](https://www.orcarouter.ai/tools/linkedin/post-comments.md) |
| Price | $0.032472 per call |
| Health | OK |
| p50 latency | — |
| Success (7 days) | — |
| Runs (30 days) | — |
| Idempotent | yes |
| Data class | scraped |

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `postId` | string | yes | LinkedIn post ID. |
| `page` | integer | no | Page number, starting from 1. |
| `postType` | string | no | LinkedIn post identifier type. Available Values: - \`ACTIVITY\`: LinkedIn activity post - \`UGC\`: LinkedIn user-generated content post One of: ACTIVITY, UGC. |
| `sortOrder` | string | no | Comment sort order. Available Values: - \`RELEVANCE\`: Sort comments by relevance - \`RECENT\`: Sort comments from most recent One of: RELEVANCE, RECENT. |

## Call it

```bash
curl -sS https://api.orcarouter.ai/v1/tools/justoneapi.x-linkedin-get-post-comments-v1/run \
  -H "Authorization: Bearer $ORCAROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"postId":"<postId>"}}'
```

```python
import os, requests

resp = requests.post(
    "https://api.orcarouter.ai/v1/tools/justoneapi.x-linkedin-get-post-comments-v1/run",
    headers={"Authorization": f"Bearer {os.environ['ORCAROUTER_API_KEY']}"},
    json={"input":{"postId":"<postId>"}},
)
print(resp.json())
```

## Alternatives

| Tool | Source | Price | Health |
| --- | --- | --- | --- |
| [LinkedIn post or article by URL — likes, comments](https://www.orcarouter.ai/tools/linkedin/post-comments/x-v1-linkedin-post.md) | — | $0.002068 per credit | OK |
| [Get reactions to a LinkedIn comment](https://www.orcarouter.ai/tools/linkedin/post-comments/linkedin-comment-reactions.md) | — | $0.0044 per call | OK |
| [Get comments on a LinkedIn post](https://www.orcarouter.ai/tools/linkedin/post-comments/linkedin-post-comments-0ffe6c.md) | — | $0.0044 per call | OK |
| [Get a member’s LinkedIn comments](https://www.orcarouter.ai/tools/linkedin/post-comments/linkedin-user-comments.md) | — | $0.0044 per call | OK |
| [LinkedIn Post Comments](https://www.orcarouter.ai/tools/linkedin/post-comments/linkedin-post-comments.md) | — | $0.0055 per call | OK |

## FAQ

### How much does LinkedIn post comments by post id cost?

LinkedIn post comments by post id costs $0.032472 per call: 1,000 calls cost $32.472.

### What does a $10 budget buy with LinkedIn post comments by post id?

About 307 calls at $0.032472 per call.

### What inputs does LinkedIn post comments by post id need?

Required inputs: postId.

### How do I call LinkedIn post comments by post id?

Send POST /v1/tools/{id}/run with your OrcaRouter API key and a JSON body {"input": {…}}, where {id} is the tool id POST /v1/tools/discover returns for it.

---

Markdown version of https://www.orcarouter.ai/tools/linkedin/post-comments/x-linkedin-get-post-comments-v1
