Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Truth Social User Posts

เอกสาร API
https://api.sandbase.ai/v1/api/truth-social/user-posts

List a Truth Social account's recent posts by handle - text, engagement (likes, comments, shares), and timestamps as clean JSON.

ราคา
เริ่มต้นที่ $0.0012USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 1 ไม่บังคับ

Playground

อินพุต
Truth Social handle without the @, e.g. "realDonaldTrump".
Opaque pagination cursor from a previous response's nextCursor. Omit for the first page; a page holds 20 posts.
เอาต์พุตพร้อมใช้งาน

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

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

API README

Truth Social User Posts API

Returns a Truth Social account's recent posts as JSON. Each post includes its text, like, comment and share counts, a Unix timestamp, and a link. You send the account handle without the @.

Use cases

  • Track what a public figure posts on Truth Social and when.
  • Compare likes, comments and shares across posts to see which ones get the most reaction.
  • Build an archive of an account's posts with their post URLs and IDs.
  • Feed new post text into a news or monitoring alert.

Request

curl -X POST "https://api.sandbase.ai/v1/api/truth-social/user-posts" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"handle": "realDonaldTrump"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
handlestringYesTruth Social handle without the @, e.g. "realDonaldTrump".
cursorstringNoOpaque pagination cursor from a previous response's nextCursor. Omit for the first page; a page holds 20 posts.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "nextCursor": "cur_UN9TOUrS7RQgenR7fVK2NQ",
    "posts": [
      {
        "avatarUrl": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/accounts/avatars/10…",
        "comments": 369,
        "createdUtc": 1793686350,
        "displayName": "Donald J. Trump",
        "id": "117551028635722326",
        "likes": 2088,
        "shares": 707,
        "text": "FAKE ALASKA CANDIDATE DANIAL J. SULLIVAN, JR., IS MISSING IN ACTION! HE HAS TOTA…",
        "url": "https://truthsocial.com/@realDonaldTrump/117551028635722326",
        "username": "realDonaldTrump",
        "verified": true
      }
    ]
  },
  "found": true
}

Response fields

FieldMeaning
data.posts[].idUnique ID of the post, as a string.
data.posts[].textText of the post. In this sample it is cut with an ellipsis when long. A post that only shares a link shows that link as its text.
data.posts[].urlDirect link to the post on truthsocial.com.
data.posts[].createdUtcTime the post was created, as a Unix timestamp in seconds.
data.posts[].likes / data.posts[].comments / data.posts[].sharesEngagement counts for the post.
data.posts[].username / data.posts[].displayNameHandle and display name of the account that wrote the post.
data.posts[].verifiedtrue if the account is shown as verified.
data.posts[].avatarUrlLink to the account's avatar image.
data.nextCursorCursor to pass as cursor to get the next page of posts.
foundtrue when the account was found.

Notes

  • Use the handle without the @, for example realDonaldTrump.
  • Each page holds 20 posts. To get the next page, send the same handle with cursor set to the data.nextCursor value from the previous response.
  • Post IDs are numeric strings, and the same ID appears at the end of each post url.
  • For account details, call Truth Social Profile. To fetch a single post, call Truth Social Post.

Pricing

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

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
Truth Socialเริ่มต้นที่ $0.0012 ต่อครั้งJSON
Truth Socialเริ่มต้นที่ $0.0011 ต่อครั้งJSON
Truth Socialเริ่มต้นที่ $0.0011 ต่อครั้งJSON

คำถาม

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

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

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

Truth Social User Posts API ราคาเท่าไร?

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

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

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

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

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

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

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