Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Truth Social User Posts

Dokumentasi 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.

Harga
Dari $0.0012USD / panggilan
Metode
POST
Respons
JSON
Parameter
1 wajib · 1 opsional

Playground

Input
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.
OutputSiap

Output Anda akan muncul di sini

Lengkapi input, lalu klik Run.

README API

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.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
Truth SocialDari $0.0012 per panggilanJSON
Truth SocialDari $0.0011 per panggilanJSON
Truth SocialDari $0.0011 per panggilanJSON

Pertanyaan

FAQ

Bagaimana cara menggunakan API Truth Social User Posts?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/truth-social/user-posts dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API Truth Social User Posts?

Mulai dari $0.0012 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API Truth Social User Posts?

Wajib: handle (string). Opsional: cursor (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API Truth Social User Posts?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API Truth Social?

Tidak. Truth Social User Posts berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Truth Social secara terpisah.