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/callPelo preço do provedor
- Success rate
- —Ainda não há dados da taxa de sucessoAinda não há dados da taxa de sucesso
- 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
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
trim | booleano | Opcional | Set to true for a trimmed down version of the response | false |
handle | string | Opcional | Truth Social username | realDonaldTrump |
user_id | string | Opcional | 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 | string | Opcional | Used to paginate to next page | 107780257626128497 |
- Parâmetros de consulta
trimbooleanoOpcionalSet to true for a trimmed down version of the response
Exemplo:
falsehandlestringOpcionalTruth Social username
Exemplo:
realDonaldTrumpuser_idstringOpcionalTruth Social user id. Use this for faster response times. Trumps is 107780257626128497. It is the 'id' field in the profile endpoint.
Exemplo:
107780257626128497next_max_idstringOpcionalUsed to paginate to next page
Exemplo:
107780257626128497
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no 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());Esta API de gateway está em prévia; 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.00188/call, incluindo a taxa de serviço.