Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

Truth Social Profile

APIドキュメント
https://api.sandbase.ai/v1/api/truth-social/profile

Get a Truth Social account's public profile by handle - display name, bio, follower/following counts, and post count as clean JSON.

料金
$0.0011 からUSD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 0 件

プレイグラウンド

入力
Truth Social handle without the @, e.g. "realDonaldTrump".
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API README

Truth Social Profile API

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.

Use cases

  • Track the follower count of a public figure on Truth Social over time.
  • Check whether an account is verified before you treat it as the real person or organization.
  • Collect the numeric account id to use in other tools that need a stable account reference.
  • Build a profile card that shows the avatar, display name, bio, and link to the account.

Request

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.

Parameters

NameTypeRequiredDescription
handlestringYesTruth Social handle without the @, e.g. "realDonaldTrump".

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…",
    "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
}

Response fields

FieldMeaning
data.displayNameThe name shown on the profile.
data.usernameThe account handle, without the @.
data.bioThe profile bio text.
data.followers / data.followingThe number of accounts that follow this account, and the number of accounts it follows.
data.postsCountThe total number of posts on the account.
data.verifiedtrue if the account is marked as verified.
data.privatetrue if the account is private. It is false for an open account.
data.joinedAtThe time the account was created, as an ISO 8601 timestamp in UTC.
data.idThe numeric account ID, returned as a string.
data.avatarUrl / data.urlThe link to the avatar image, and the link to the profile page on Truth Social.
foundtrue when the handle matched an account.

Notes

  • Use the handle from the profile URL, for example DevinNunes from truthsocial.com/@DevinNunes. Leave out the @.
  • Check found first. A handle that matches no account still returns a successful response with found: false.
  • To read what the account has posted, call Truth Social User Posts. To look at a single post, call Truth Social Post.

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 Social1回あたり $0.0011 からJSON
Truth Social1回あたり $0.0011 からJSON
Truth Social1回あたり $0.0012 からJSON

質問

FAQ

Truth Social Profile API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/truth-social/profile に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Truth Social Profile API の料金はいくらですか?

1回あたり $0.0011 から、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

Truth Social Profile API はどのパラメータを受け付けますか?

必須: handle (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Truth Social Profile API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

Truth Social の開発者アカウントまたは API key は必要ですか?

いいえ。Truth Social Profile は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Truth Social の API アクセスを別途申請する必要はありません。