Get a member’s LinkedIn comments
harvestapi.linkedin.user.commentsGet comments of LinkedIn profile by post URL.
- Price
- $0.004/callAl 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
- 10 sept 2026Verified working
GEThttps://toolswitch.dev/v1/tools/harvestapi.linkedin.user.comments?page=1&profile=https%3A%2F%2Fwww.linkedin.com%2Fin%2FwilliamhgatesPreview- Uses platform quota
- Synchronous response
- Reads public data
Parámetros
Use only the declared query parameters, once each, without a request body. Results are provider-native: inspect element/elements and body status/error; HTTP 200 alone does not prove a hit. Empty results can still be charged. totalElements/totalPages may be zero even with results; follow paginationToken rather than assuming no data.
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
page | entero | Opcional | Page number for pagination. Default is 1 | 1 |
profile | cadena | Opcional | URL of the LinkedIn profile | https://www.linkedin.com/in/williamhgates |
profileId | cadena | Opcional | Profile ID of the LinkedIn profile. It's faster to search by ID | |
postedLimit | cadena | Opcional | Filter posts by maximum posted date. Supported values: '24h', 'week', 'month' | |
paginationToken | cadena | Opcional | Required for pages > 1. Use this token from the previous page response. | |
- Parámetros de consulta
pageenteroOpcionalPage number for pagination. Default is 1
Ejemplo:
1profilecadenaOpcionalURL of the LinkedIn profile
Ejemplo:
https://www.linkedin.com/in/williamhgatesprofileIdcadenaOpcionalProfile ID of the LinkedIn profile. It's faster to search by ID
postedLimitcadenaOpcionalFilter posts by maximum posted date. Supported values: '24h', 'week', 'month'
paginationTokencadenaOpcionalRequired for pages > 1. Use this token from the previous page response.
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
curl -X GET 'https://toolswitch.dev/v1/tools/harvestapi.linkedin.user.comments?page=1&profile=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fwilliamhgates' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/harvestapi.linkedin.user.comments?page=1&profile=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fwilliamhgates",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/harvestapi.linkedin.user.comments?page=1&profile=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fwilliamhgates", {
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.004/call, incluida la tarifa de servicio.