Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Truth Social Post

API 文件
https://api.sandbase.ai/v1/api/truth-social/post

Get a single Truth Social post by its URL - text, author, engagement (likes, comments, shares), and timestamp as clean JSON.

價格
自 $0.0011 起美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 0 個選填

Playground

輸入
Full Truth Social post URL, e.g. "https://truthsocial.com/@realDonaldTrump/posts/116824551176646175".
輸出就緒

您的輸出會顯示在這裡

完成輸入後,點擊執行。

API README

Truth Social Post API

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.

Use cases

  • Track how many likes, comments and shares a specific post has gathered.
  • Archive the text and media files of a post before it is edited or removed.
  • Check whether an account that posted is verified before citing the post.
  • Add post text and engagement numbers to a news or monitoring dashboard.

Request

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.

Parameters

NameTypeRequiredDescription
urlstringYesFull Truth Social post URL, e.g. "https://truthsocial.com/@realDonaldTrump/posts/116824551176646175".

Example response

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
}

Response fields

FieldMeaning
foundtrue when the post was located. A lookup that finds nothing returns false.
data.idID of the post. It matches the last part of the post URL.
data.textText of the post. A repost can show only a RT: prefix followed by a link to the original status.
data.username / data.displayNameHandle of the author and the name shown on the profile.
data.verifiedtrue if the author account is verified.
data.likes / data.comments / data.sharesEngagement counts for the post.
data.createdUtcTime the post was created, as a Unix timestamp in seconds.
data.mediaUrls[]Links to the full-size media files attached to the post.
data.imageLink to a smaller preview image of the attached media.
data.avatarUrlLink to the author's profile picture.

Notes

  • Copy the post URL from the Truth Social site. It has the form https://truthsocial.com/@<username>/posts/<id>.
  • Use the result from outputs[0].data. Check found first, since a missing post returns found: false instead of an error.
  • To see more from the same author, call Truth Social User Posts. For account details, call Truth Social Profile.

Pricing

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

探索更多

相關 APIs

所有 APIs
API價格回應
Truth Social每次呼叫 $0.0011 起JSON
Truth Social每次呼叫 $0.0011 起JSON
Truth Social每次呼叫 $0.0012 起JSON

問題

常見問題

我要如何使用 Truth Social Post API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/truth-social/post。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Truth Social Post API 的費用是多少?

每次起 $0.0011,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

Truth Social Post API 接受哪些參數?

必要:url (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Truth Social Post API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 Truth Social 開發者帳號或 API 金鑰嗎?

不需要。Truth Social Post 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Truth Social API 存取權。