handlestringobbligatorio
Truth Social handle without the @, e.g. "realDonaldTrump".
https://api.sandbase.ai/v1/api/truth-social/profileGet a Truth Social account's public profile by handle - display name, bio, follower/following counts, and post count as clean JSON.
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
This API returns the public profile of a Truth Social account. It needs one input, the account handle without the @. The response includes the display name, bio, follower and following counts, post count, and join date.
verified before you treat it as the real person or organization.id to use in other tools that need a stable account reference.curl -X POST "https://api.sandbase.ai/v1/api/truth-social/profile" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"handle": "DevinNunes"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | Yes | Truth Social handle without the @, e.g. "realDonaldTrump". |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"avatarUrl": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/accounts/avatars/10…",
"bio": "Wine Maker RT≠endorsement",
"displayName": "Devin Nunes",
"followers": 4461040,
"following": 712,
"id": "107777378958166346",
"joinedAt": "2022-02-11T04:04:53.373Z",
"postsCount": 21542,
"private": false,
"url": "https://truthsocial.com/@DevinNunes",
"username": "DevinNunes",
"verified": true
},
"found": true
}
| Field | Meaning |
|---|---|
data.displayName | The name shown on the profile. |
data.username | The account handle, without the @. |
data.bio | The profile bio text. |
data.followers / data.following | The number of accounts that follow this account, and the number of accounts it follows. |
data.postsCount | The total number of posts on the account. |
data.verified | true if the account is marked as verified. |
data.private | true if the account is private. It is false for an open account. |
data.joinedAt | The time the account was created, as an ISO 8601 timestamp in UTC. |
data.id | The numeric account ID, returned as a string. |
data.avatarUrl / data.url | The link to the avatar image, and the link to the profile page on Truth Social. |
found | true when the handle matched an account. |
DevinNunes from truthsocial.com/@DevinNunes. Leave out the @.found first. A handle that matches no account still returns a successful response with found: false.Billed at the actual cost of each call, about $0.0011 for the request above. Failed calls are not charged.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
curl -X POST "https://api.sandbase.ai/v1/api/truth-social/profile" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"handle": "DevinNunes"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
handlestringobbligatorioTruth Social handle without the @, e.g. "realDonaldTrump".
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
Truth Social ProfileQuesta API Truth Social | Da $0.0011 per chiamata | JSON |
Truth Social | Da $0.0011 per chiamata | JSON |
Truth Social | Da $0.0012 per chiamata | JSON |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/truth-social/profile con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
A partire da $0.0011 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: handle (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. Truth Social Profile funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Truth Social.