Recent LinkedIn posts by profile URL, with engagement
village.people.postsFetch a person's recent LinkedIn activity.
- Precio
- $0.02/successA precio de catálogo
- Tasa de éxito
- —Aún no hay datos de tasa de éxitoÚltimos 30 días · 0 llamadas
- Latencia p50
- ——
- Última verificación
- —Aún no verificado
POSThttps://toolswitch.dev/v1/tools/village.people.postsBeta- Usa la cuota de la plataforma
- Respuesta síncrona
- Lee datos públicos
Parámetros
Returns posts newest first with content, author, engagement, mentions and links. The feed mixes the person's own posts with posts they reshared from others, so check author and reposted_by before attributing a post to them.
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Cuerpo (JSON) | ||||
limit | entero | Opcional | Posts to return per call (1-50, default 20). Follow pagination.cursor to reach the rest. | 1 |
cursor | cadena | Opcional | Pagination token from a previous response's pagination.cursor. | |
linkedin_url | cadena | Obligatorio | LinkedIn person profile URL. | https://linkedin.com/in/johndoe |
- Cuerpo (JSON)
limitenteroOpcionalPosts to return per call (1-50, default 20). Follow pagination.cursor to reach the rest.
Ejemplo:
1cursorcadenaOpcionalPagination token from a previous response's pagination.cursor.
linkedin_urlcadenaObligatorioLinkedIn person profile URL.
Ejemplo:
https://linkedin.com/in/johndoe
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
curl -X POST 'https://toolswitch.dev/v1/tools/village.people.posts' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"limit":1,"linkedin_url":"https://www.linkedin.com/in/satyanadella"}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/village.people.posts",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"limit\":1,\"linkedin_url\":\"https://www.linkedin.com/in/satyanadella\"}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/village.people.posts", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"limit\":1,\"linkedin_url\":\"https://www.linkedin.com/in/satyanadella\"}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());La API de la pasarela está en Beta; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a $0.02/success, incluida la tarifa de servicio.