Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

Truth Social Post

API-Dokumentation
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.

Preis
Ab $0.0011USD / Aufruf
Methode
POST
Antwort
JSON
Parameter
1 erforderlich · 0 optional

Playground

Eingabe
Full Truth Social post URL, e.g. "https://truthsocial.com/@realDonaldTrump/posts/116824551176646175".
AusgabeBereit

Ihre Ausgabe wird hier angezeigt

Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.

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.

Mehr entdecken

Verwandte APIs

Alle APIs
APIPreisAntwort
Truth SocialAb $0.0011 pro AufrufJSON
Truth SocialAb $0.0011 pro AufrufJSON
Truth SocialAb $0.0012 pro AufrufJSON

Fragen

FAQ

Wie verwende ich die Truth Social Post API?

Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/truth-social/post mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.

Was kostet die Truth Social Post API?

Ab $0.0011 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.

Welche Parameter akzeptiert die Truth Social Post API?

Erforderlich: url (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.

Was gibt die Truth Social Post API zurück?

Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.

Benötige ich ein Truth Social-Entwicklerkonto oder einen API-Schlüssel?

Nein. Truth Social Post läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Truth Social API beantragen.