handlestringआवश्यक
Truth Social handle without the @, e.g. "realDonaldTrump".
https://api.sandbase.ai/v1/api/truth-social/user-postsList a Truth Social account's recent posts by handle - text, engagement (likes, comments, shares), and timestamps as clean JSON.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
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 @.
likes, comments and shares across posts to see which ones get the most reaction.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.
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | Yes | Truth Social handle without the @, e.g. "realDonaldTrump". |
cursor | string | No | Opaque pagination cursor from a previous response's nextCursor. Omit for the first page; a page holds 20 posts. |
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
}
| Field | Meaning |
|---|---|
data.posts[].id | Unique ID of the post, as a string. |
data.posts[].text | Text 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[].url | Direct link to the post on truthsocial.com. |
data.posts[].createdUtc | Time the post was created, as a Unix timestamp in seconds. |
data.posts[].likes / data.posts[].comments / data.posts[].shares | Engagement counts for the post. |
data.posts[].username / data.posts[].displayName | Handle and display name of the account that wrote the post. |
data.posts[].verified | true if the account is shown as verified. |
data.posts[].avatarUrl | Link to the account's avatar image. |
data.nextCursor | Cursor to pass as cursor to get the next page of posts. |
found | true when the account was found. |
realDonaldTrump.handle with cursor set to the data.nextCursor value from the previous response.url.Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
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"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
handlestringआवश्यकTruth Social handle without the @, e.g. "realDonaldTrump".
cursorstringOpaque pagination cursor from a previous response's nextCursor. Omit for the first page; a page holds 20 posts.
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Truth Social User Postsयह API Truth Social | $0.0012 प्रति कॉल से | JSON |
Truth Social | $0.0011 प्रति कॉल से | JSON |
Truth Social | $0.0011 प्रति कॉल से | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/truth-social/user-posts पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.0012 से प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: handle (string)। वैकल्पिक: cursor (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Truth Social User Posts SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Truth Social API access के लिए आवेदन करने की आवश्यकता नहीं है।