Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

Truth Social Post

API दस्तावेज़
https://api.sandbase.ai/v1/api/truth-social/post

Get a single Truth Social post by its URL - text, author, engagement (likes, comments, shares), and timestamp as clean JSON.

मूल्य
से $0.0011USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
1 आवश्यक · 0 वैकल्पिक

प्लेग्राउंड

इनपुट
Full Truth Social post URL, e.g. "https://truthsocial.com/@realDonaldTrump/posts/116824551176646175".
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

API README

Truth Social Post API

Returns one Truth Social post as JSON: its text, author details, like, comment and share counts, attached media, and a creation timestamp. The only input is the full post URL in url.

Use cases

  • Track how many likes, comments and shares a specific post has gathered.
  • Archive the text and media files of a post before it is edited or removed.
  • Check whether an account that posted is verified before citing the post.
  • Add post text and engagement numbers to a news or monitoring dashboard.

Request

curl -X POST "https://api.sandbase.ai/v1/api/truth-social/post" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://truthsocial.com/@realDonaldTrump/posts/116824551176646175"}'

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

Parameters

NameTypeRequiredDescription
urlstringYesFull Truth Social post URL, e.g. "https://truthsocial.com/@realDonaldTrump/posts/116824551176646175".

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…",
    "comments": 594,
    "createdUtc": 1782601183,
    "displayName": "Donald J. Trump",
    "id": "116824551176646175",
    "image": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/media_attachments/f…",
    "likes": 15764,
    "mediaUrls": [
      "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/media_attachments/f…"
    ],
    "shares": 3961,
    "text": "RT: https://truthsocial.com/users/realDonaldTrump/statuses/116824550355095950",
    "username": "realDonaldTrump",
    "verified": true
  },
  "found": true
}

Response fields

FieldMeaning
foundtrue when the post was located. A lookup that finds nothing returns false.
data.idID of the post. It matches the last part of the post URL.
data.textText of the post. A repost can show only a RT: prefix followed by a link to the original status.
data.username / data.displayNameHandle of the author and the name shown on the profile.
data.verifiedtrue if the author account is verified.
data.likes / data.comments / data.sharesEngagement counts for the post.
data.createdUtcTime the post was created, as a Unix timestamp in seconds.
data.mediaUrls[]Links to the full-size media files attached to the post.
data.imageLink to a smaller preview image of the attached media.
data.avatarUrlLink to the author's profile picture.

Notes

  • Copy the post URL from the Truth Social site. It has the form https://truthsocial.com/@<username>/posts/<id>.
  • Use the result from outputs[0].data. Check found first, since a missing post returns found: false instead of an error.
  • To see more from the same author, call Truth Social User Posts. For account details, call Truth Social Profile.

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

प्रश्न

FAQ

Truth Social Post API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/truth-social/post पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

Truth Social Post API की लागत कितनी है?

$0.0011 से प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

Truth Social Post API कौन-से parameters स्वीकार करती है?

आवश्यक: url (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

Truth Social Post API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक Truth Social developer account या API key चाहिए?

नहीं। Truth Social Post SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Truth Social API access के लिए आवेदन करने की आवश्यकता नहीं है।