urlstringобязательно
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.
Ваш результат появится здесь
Заполните входные данные, затем нажмите «Запустить».
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.
Начните разработку
Конечная точка платформенного API с единообразной аутентификацией и учётом использования.
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"
}'Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
urlstringобязательноFull Truth Social post URL, e.g. "https://truthsocial.com/@realDonaldTrump/posts/116824551176646175".
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
Сохранённый ответ не опубликован. Запустите API в Playground, чтобы посмотреть его ответ.
Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
Truth Social PostЭтот API Truth Social | От $0.0011 за запрос | JSON |
Truth Social | От $0.0011 за запрос | JSON |
Truth Social | От $0.0012 за запрос | JSON |
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/truth-social/post, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
От $0.0011 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Обязательные: url (string). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.
Нет. Truth Social Post работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Truth Social.