LinkedIn post comments by activity URN
tikhub.x.linkedin-web-v2-get-post-commentsFetch comments of a LinkedIn post by its activity URN.
- Price
- Prix à venirAu prix du fournisseur
- Success rate
- —Aucune donnée de taux de réussite pour le momentAucune donnée de taux de réussite pour le moment
- 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 onlineBientôtProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
urn | chaîne | Obligatoire | Numeric activity URN from the LinkedIn post URL. | 7267273010393358336 |
page | entier | Facultatif | Page number, starting at 1. | 1 |
sort_by | chaîne | Facultatif | Most relevant (default) or Most recent. | Most relevant |
share_urn | chaîne | Facultatif | Optional share URN for shared posts. | |
pagination_token | chaîne | Facultatif | Pagination token returned by the previous response. | |
- Paramètres de requête
urnchaîneObligatoireNumeric activity URN from the LinkedIn post URL.
Exemple :
7267273010393358336pageentierFacultatifPage number, starting at 1.
Exemple :
1sort_bychaîneFacultatifMost relevant (default) or Most recent.
Exemple :
Most relevantshare_urnchaîneFacultatifOptional share URN for shared posts.
pagination_tokenchaîneFacultatifPagination token returned by the previous response.
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la 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());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives.