urlstringrequerido
Full Truth Social post URL, e.g. "https://truthsocial.com/@realDonaldTrump/posts/116824551176646175".
https://api.sandbase.ai/v1/api/truth-social/postGet a single Truth Social post by its URL - text, author, engagement (likes, comments, shares), and timestamp as clean JSON.
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
Returns one Truth Social post as JSON: its text, author details, like, comment and share counts, attached media, and a creation timestamp. The only input is the full post URL in url.
curl -X POST "https://api.sandbase.ai/v1/api/truth-social/post" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://truthsocial.com/@realDonaldTrump/posts/116824551176646175"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Full Truth Social post URL, e.g. "https://truthsocial.com/@realDonaldTrump/posts/116824551176646175". |
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…",
"comments": 594,
"createdUtc": 1782601183,
"displayName": "Donald J. Trump",
"id": "116824551176646175",
"image": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/media_attachments/f…",
"likes": 15764,
"mediaUrls": [
"https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/media_attachments/f…"
],
"shares": 3961,
"text": "RT: https://truthsocial.com/users/realDonaldTrump/statuses/116824550355095950",
"username": "realDonaldTrump",
"verified": true
},
"found": true
}
| Field | Meaning |
|---|---|
found | true when the post was located. A lookup that finds nothing returns false. |
data.id | ID of the post. It matches the last part of the post URL. |
data.text | Text of the post. A repost can show only a RT: prefix followed by a link to the original status. |
data.username / data.displayName | Handle of the author and the name shown on the profile. |
data.verified | true if the author account is verified. |
data.likes / data.comments / data.shares | Engagement counts for the post. |
data.createdUtc | Time the post was created, as a Unix timestamp in seconds. |
data.mediaUrls[] | Links to the full-size media files attached to the post. |
data.image | Link to a smaller preview image of the attached media. |
data.avatarUrl | Link to the author's profile picture. |
https://truthsocial.com/@<username>/posts/<id>.outputs[0].data. Check found first, since a missing post returns found: false instead of an error.Billed at the actual cost of each call, about $0.0011 for the request above. Failed calls are not charged.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
curl -X POST "https://api.sandbase.ai/v1/api/truth-social/post" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://truthsocial.com/@realDonaldTrump/posts/116824551176646175"
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
urlstringrequeridoFull Truth Social post URL, e.g. "https://truthsocial.com/@realDonaldTrump/posts/116824551176646175".
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
| API | Precio | Respuesta |
|---|---|---|
Truth Social PostEsta API Truth Social | Desde $0.0011 por llamada | JSON |
Truth Social | Desde $0.0011 por llamada | JSON |
Truth Social | Desde $0.0012 por llamada | JSON |
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/truth-social/post 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.
Desde $0.0011 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
Requeridos: url (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.
No. Truth Social Post 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.