Truth Social user posts by username
scrapecreators.x.v1-truthsocial-user-postsFetches a paginated list of posts from a Truth Social user, returning text, id, created_at, url, content, account info, media_attachments, card link previews, replies_count, reblogs_count, and favourites_count.
- Price
- $0.00188/callAu prix du fournisseur
- Success rate
- —Aucune donnée de taux de réussite pour le momentAucune donnée de taux de réussite pour le moment
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/scrapecreators.x.v1-truthsocial-user-posts?handle=realDonaldTrumpPreview- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
trim | booléen | Facultatif | Set to true for a trimmed down version of the response | false |
handle | chaîne | Facultatif | Truth Social username | realDonaldTrump |
user_id | chaîne | Facultatif | Truth Social user id. Use this for faster response times. Trumps is 107780257626128497. It is the 'id' field in the profile endpoint. | 107780257626128497 |
next_max_id | chaîne | Facultatif | Used to paginate to next page | 107780257626128497 |
- Paramètres de requête
trimbooléenFacultatifSet to true for a trimmed down version of the response
Exemple :
falsehandlechaîneFacultatifTruth Social username
Exemple :
realDonaldTrumpuser_idchaîneFacultatifTruth Social user id. Use this for faster response times. Trumps is 107780257626128497. It is the 'id' field in the profile endpoint.
Exemple :
107780257626128497next_max_idchaîneFacultatifUsed to paginate to next page
Exemple :
107780257626128497
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
curl -X GET 'https://toolswitch.dev/v1/tools/scrapecreators.x.v1-truthsocial-user-posts?handle=realDonaldTrump' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/scrapecreators.x.v1-truthsocial-user-posts?handle=realDonaldTrump",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/scrapecreators.x.v1-truthsocial-user-posts?handle=realDonaldTrump", {
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());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.00188/call, frais de service inclus.