Recent LinkedIn posts by profile URL, with engagement
village.people.postsFetch a person's recent LinkedIn activity.
- Preço
- $0.02/successPelo preço de tabela
- Taxa de sucesso
- —Ainda não há dados da taxa de sucessoÚltimos 30 dias · 0 chamadas
- Latência p50
- ——
- Última verificação
- —Ainda não verificado
POSThttps://toolswitch.dev/v1/tools/village.people.postsBeta- Usa a cota da plataforma
- Resposta síncrona
- Lê dados 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 | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Corpo (JSON) | ||||
limit | inteiro | Opcional | Posts to return per call (1-50, default 20). Follow pagination.cursor to reach the rest. | 1 |
cursor | string | Opcional | Pagination token from a previous response's pagination.cursor. | |
linkedin_url | string | Obrigatório | LinkedIn person profile URL. | https://linkedin.com/in/johndoe |
- Corpo (JSON)
limitinteiroOpcionalPosts to return per call (1-50, default 20). Follow pagination.cursor to reach the rest.
Exemplo:
1cursorstringOpcionalPagination token from a previous response's pagination.cursor.
linkedin_urlstringObrigatórioLinkedIn person profile URL.
Exemplo:
https://linkedin.com/in/johndoe
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
Beta
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());Esta API de gateway está em Beta; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.02/success, incluindo a taxa de serviço.