LinkedIn post comments by activity URN
tikhub.x.linkedin-web-v2-get-post-commentsFetch comments of a LinkedIn post by its activity URN.
- Price
- Price pendingAt provider cost
- Success rate
- —No success-rate data yetNo success-rate data yet
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/tikhub.x.linkedin-web-v2-get-post-comments?urn=7267273010393358336&page=1&sort_by=Most+relevantPreviewTry onlineComing soonProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
urn | string | Required | Numeric activity URN from the LinkedIn post URL. | 7267273010393358336 |
page | integer | Optional | Page number, starting at 1. | 1 |
sort_by | string | Optional | Most relevant (default) or Most recent. | Most relevant |
share_urn | string | Optional | Optional share URN for shared posts. | |
pagination_token | string | Optional | Pagination token returned by the previous response. | |
- Query parameters
urnstringRequiredNumeric activity URN from the LinkedIn post URL.
Example:
7267273010393358336pageintegerOptionalPage number, starting at 1.
Example:
1sort_bystringOptionalMost relevant (default) or Most recent.
Example:
Most relevantshare_urnstringOptionalOptional share URN for shared posts.
pagination_tokenstringOptionalPagination token returned by the previous response.
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/tikhub.x.linkedin-web-v2-get-post-comments?urn=7267273010393358336&page=1&sort_by=Most+relevant' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/tikhub.x.linkedin-web-v2-get-post-comments?urn=7267273010393358336&page=1&sort_by=Most+relevant",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/tikhub.x.linkedin-web-v2-get-post-comments?urn=7267273010393358336&page=1&sort_by=Most+relevant", {
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.