Recent LinkedIn posts by profile URL, with engagement
village.people.postsFetch a person's recent LinkedIn activity.
- Prix
- $0.02/successAu prix catalogue
- Taux de réussite
- —Aucune donnée de taux de réussite pour le moment30 derniers jours · 0 appels
- Latence p50
- ——
- Dernière vérification
- —Pas encore vérifié
POSThttps://toolswitch.dev/v1/tools/village.people.postsBeta- Utilise le quota de la plateforme
- Réponse synchrone
- Lit des données publiques
Paramètres
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.
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Corps (JSON) | ||||
limit | entier | Facultatif | Posts to return per call (1-50, default 20). Follow pagination.cursor to reach the rest. | 1 |
cursor | chaîne | Facultatif | Pagination token from a previous response's pagination.cursor. | |
linkedin_url | chaîne | Obligatoire | LinkedIn person profile URL. | https://linkedin.com/in/johndoe |
- Corps (JSON)
limitentierFacultatifPosts to return per call (1-50, default 20). Follow pagination.cursor to reach the rest.
Exemple :
1cursorchaîneFacultatifPagination token from a previous response's pagination.cursor.
linkedin_urlchaîneObligatoireLinkedIn person profile URL.
Exemple :
https://linkedin.com/in/johndoe
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
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());Cette API de passerelle est en version Beta ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.02/success, frais de service inclus.