LinkedIn post comments by post id
justoneapi.x.linkedin-get-post-comments-v1Retrieves a page of LinkedIn comments for a post with relevance or recent sorting and activity or UGC post types.
- Price
- $0.02952/successAt provider cost
- Success rate
- —No success-rate data yetNo success-rate data yet
- Latency p50
- ——
- Last verified
- Jul 28, 2026Verified working
GEThttps://toolswitch.dev/v1/tools/justoneapi.x.linkedin-get-post-comments-v1?page=1&postId=251749025&postType=activity&sortOrder=relevancePreview- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
page | integer | Optional | Page number, starting from 1. | 1 |
postId | string | Required | LinkedIn post ID. | 251749025 |
postType | string | Optional | LinkedIn post identifier type. Available Values: - `ACTIVITY`: LinkedIn activity post - `UGC`: LinkedIn user-generated content post One of: ACTIVITY, UGC. | activity |
sortOrder | string | Optional | Comment sort order. Available Values: - `RELEVANCE`: Sort comments by relevance - `RECENT`: Sort comments from most recent One of: RELEVANCE, RECENT. | relevance |
- Query parameters
pageintegerOptionalPage number, starting from 1.
Example:
1postIdstringRequiredLinkedIn post ID.
Example:
251749025postTypestringOptionalLinkedIn post identifier type. Available Values: - `ACTIVITY`: LinkedIn activity post - `UGC`: LinkedIn user-generated content post One of: ACTIVITY, UGC.
Example:
activitysortOrderstringOptionalComment sort order. Available Values: - `RELEVANCE`: Sort comments by relevance - `RECENT`: Sort comments from most recent One of: RELEVANCE, RECENT.
Example:
relevance
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
curl -X GET 'https://toolswitch.dev/v1/tools/justoneapi.x.linkedin-get-post-comments-v1?page=1&postId=251749025&postType=activity&sortOrder=relevance' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/justoneapi.x.linkedin-get-post-comments-v1?page=1&postId=251749025&postType=activity&sortOrder=relevance",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/justoneapi.x.linkedin-get-post-comments-v1?page=1&postId=251749025&postType=activity&sortOrder=relevance", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.02952/success, including the service fee.