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/successAl precio del proveedor
- Success rate
- —Aún no hay datos de tasa de éxitoAún no hay datos de tasa de éxito
- Latency p50
- ——
- Last verified
- 28 jul 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
Parámetros
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
page | entero | Opcional | Page number, starting from 1. | 1 |
postId | cadena | Obligatorio | LinkedIn post ID. | 251749025 |
postType | cadena | Opcional | LinkedIn post identifier type. Available Values: - `ACTIVITY`: LinkedIn activity post - `UGC`: LinkedIn user-generated content post One of: ACTIVITY, UGC. | activity |
sortOrder | cadena | Opcional | Comment sort order. Available Values: - `RELEVANCE`: Sort comments by relevance - `RECENT`: Sort comments from most recent One of: RELEVANCE, RECENT. | relevance |
- Parámetros de consulta
pageenteroOpcionalPage number, starting from 1.
Ejemplo:
1postIdcadenaObligatorioLinkedIn post ID.
Ejemplo:
251749025postTypecadenaOpcionalLinkedIn post identifier type. Available Values: - `ACTIVITY`: LinkedIn activity post - `UGC`: LinkedIn user-generated content post One of: ACTIVITY, UGC.
Ejemplo:
activitysortOrdercadenaOpcionalComment sort order. Available Values: - `RELEVANCE`: Sort comments by relevance - `RECENT`: Sort comments from most recent One of: RELEVANCE, RECENT.
Ejemplo:
relevance
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
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());La API de la pasarela está en versión preliminar; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a $0.02952/success, incluida la tarifa de servicio.