Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Truth Social User Posts

Documentación de la API
https://api.sandbase.ai/v1/api/truth-social/user-posts

List a Truth Social account's recent posts by handle - text, engagement (likes, comments, shares), and timestamps as clean JSON.

Precio
Desde $0.0012USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 1 opcionales

Entorno de pruebas

Entrada
Truth Social handle without the @, e.g. "realDonaldTrump".
Opaque pagination cursor from a previous response's nextCursor. Omit for the first page; a page holds 20 posts.
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la API

Truth Social User Posts API

Returns a Truth Social account's recent posts as JSON. Each post includes its text, like, comment and share counts, a Unix timestamp, and a link. You send the account handle without the @.

Use cases

  • Track what a public figure posts on Truth Social and when.
  • Compare likes, comments and shares across posts to see which ones get the most reaction.
  • Build an archive of an account's posts with their post URLs and IDs.
  • Feed new post text into a news or monitoring alert.

Request

curl -X POST "https://api.sandbase.ai/v1/api/truth-social/user-posts" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"handle": "realDonaldTrump"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
handlestringYesTruth Social handle without the @, e.g. "realDonaldTrump".
cursorstringNoOpaque pagination cursor from a previous response's nextCursor. Omit for the first page; a page holds 20 posts.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "nextCursor": "cur_UN9TOUrS7RQgenR7fVK2NQ",
    "posts": [
      {
        "avatarUrl": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/accounts/avatars/10…",
        "comments": 369,
        "createdUtc": 1793686350,
        "displayName": "Donald J. Trump",
        "id": "117551028635722326",
        "likes": 2088,
        "shares": 707,
        "text": "FAKE ALASKA CANDIDATE DANIAL J. SULLIVAN, JR., IS MISSING IN ACTION! HE HAS TOTA…",
        "url": "https://truthsocial.com/@realDonaldTrump/117551028635722326",
        "username": "realDonaldTrump",
        "verified": true
      }
    ]
  },
  "found": true
}

Response fields

FieldMeaning
data.posts[].idUnique ID of the post, as a string.
data.posts[].textText of the post. In this sample it is cut with an ellipsis when long. A post that only shares a link shows that link as its text.
data.posts[].urlDirect link to the post on truthsocial.com.
data.posts[].createdUtcTime the post was created, as a Unix timestamp in seconds.
data.posts[].likes / data.posts[].comments / data.posts[].sharesEngagement counts for the post.
data.posts[].username / data.posts[].displayNameHandle and display name of the account that wrote the post.
data.posts[].verifiedtrue if the account is shown as verified.
data.posts[].avatarUrlLink to the account's avatar image.
data.nextCursorCursor to pass as cursor to get the next page of posts.
foundtrue when the account was found.

Notes

  • Use the handle without the @, for example realDonaldTrump.
  • Each page holds 20 posts. To get the next page, send the same handle with cursor set to the data.nextCursor value from the previous response.
  • Post IDs are numeric strings, and the same ID appears at the end of each post url.
  • For account details, call Truth Social Profile. To fetch a single post, call Truth Social Post.

Pricing

Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
Truth SocialDesde $0.0012 por llamadaJSON
Truth SocialDesde $0.0011 por llamadaJSON
Truth SocialDesde $0.0011 por llamadaJSON

Preguntas

FAQ

¿Cómo uso la API de Truth Social User Posts?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/truth-social/user-posts con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de Truth Social User Posts?

Desde $0.0012 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de Truth Social User Posts?

Requeridos: handle (string). Opcionales: cursor (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Truth Social User Posts?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de Truth Social?

No. Truth Social User Posts funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Truth Social por separado.