Sand AISand AI MAGI-2ตอนนี้ MAGI-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.0011USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 0 ไม่บังคับ

Playground

อินพุต
Truth Social handle without the @, e.g. "realDonaldTrump".
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

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 Socialเริ่มต้นที่ $0.0011 ต่อครั้งJSON
Truth Socialเริ่มต้นที่ $0.0011 ต่อครั้งJSON
Truth Socialเริ่มต้นที่ $0.0012 ต่อครั้งJSON

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Truth Social Profile API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/truth-social/profile โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Truth Social Profile API ราคาเท่าไร?

เริ่มต้นที่ $0.0011 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Truth Social Profile API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: handle (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Truth Social Profile API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Truth Social ไหม?

ไม่จำเป็น Truth Social Profile ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Truth Social API แยกต่างหาก