Truth Social API: Public Posts as JSON
To get Truth Social data as JSON, call one of seven GET endpoints under /v1/truth-social/, each 1 credit per successful call. user-posts returns an account's public posts with created_at, language, replies_count, reblogs_count and favourites_count; post returns one post; live-shows lists TV channels and what they're showing. All seven endpoints are restricted: they work after you accept the restricted-endpoint terms, and the use cases they fit are aggregate ones, such as topics, organisations' public accounts and volume over time.
What does the Truth Social API on Perceptlayer cover?
The Truth Social API on Perceptlayer has seven endpoints: an account's posts, one post, an account profile, a hashtag timeline, the featured post, the live TV shows and a video's files. All are GET requests that return JSON, and all cost 1 credit per successful call. For analysis work, user-posts and post carry the useful fields: timestamps, language and engagement counts.
| Method | Path | Returns | Required | Optional |
|---|---|---|---|---|
GET |
/v1/truth-social/user-posts |
An account's posts | account_id |
limit, max_id, until, since, only_media, exclude_reblogs, exclude_replies |
GET |
/v1/truth-social/post |
One post | post_id |
none |
GET |
/v1/truth-social/profile |
One account | username |
none |
GET |
/v1/truth-social/tag-timeline |
Posts under a hashtag | tag |
limit, max_id |
GET |
/v1/truth-social/featured-truth |
The featured post | none | none |
GET |
/v1/truth-social/live-shows |
TV channels and current programmes | none | none |
GET |
/v1/truth-social/video |
A video's files and thumbnails | video_id |
none |
The data is collected from publicly available sources and returned as found at the time of the call. This isn't a developer API from Truth Social itself, and this guide makes no claims about the site's own offerings or terms; read the site's terms and compare for yourself. The Truth Social API page has every endpoint and a playground.
What do the restricted-endpoint terms allow?
All seven Truth Social endpoints are restricted. They work once you accept the restricted-endpoint terms in the dashboard; the terms are at /legal/restricted-endpoints. Those terms don't permit collecting personal data without a lawful basis, and they don't permit using data from these endpoints to contact people. That rules out lead lists, outreach, and profiling or following what individual people post.
What fits is aggregate work. Count how often a topic or hashtag comes up each week. Measure posting volume and engagement over time for the public accounts of organisations, such as news outlets, companies and public bodies. Compare how much conversation two events drew. Keep profile and user-posts to organisations' accounts, and drop names, usernames, avatars and other account details you don't need before you store anything. A call made before accepting the terms returns restricted_endpoint (403) and costs nothing.
How do you get an account's public posts?
Send a GET request to /v1/truth-social/user-posts with the account's numeric account_id. If you have the account's username rather than its ID, call profile first: its id field is the value the recorded user-posts call used as account_id. Keys start with sk_live_ and go in the X-API-Key header, or in the api_key query parameter; the authentication docs cover both.
curl "https://api.perceptlayer.com/v1/truth-social/user-posts?account_id=$ACCOUNT_ID&limit=20" \
-H "X-API-Key: $API_KEY"
Which parameters do the endpoints take?
The table lists every parameter with the constraints the API documents. Nothing else is documented, including defaults, the maximum limit and the date format for since and until, so check behaviour in the playground before you depend on it.
| Endpoint | Parameter | Type | Required | Documented constraint |
|---|---|---|---|---|
user-posts |
account_id |
string | yes | Up to 32 characters |
user-posts, tag-timeline |
limit |
integer | no | None documented |
user-posts, tag-timeline |
max_id |
string | no | Up to 32 characters |
user-posts |
since, until |
string | no | None documented |
user-posts |
only_media, exclude_reblogs, exclude_replies |
boolean | no | None documented |
post |
post_id |
string | yes | Up to 32 characters |
profile |
username |
string | yes | Up to 64 characters |
tag-timeline |
tag |
string | yes | Up to 64 characters |
video |
video_id |
string | yes | Up to 64 characters |
The user-posts response ends with a pagination object holding next and has_more, and the endpoint takes max_id. The recordings don't show a second page being fetched, so confirm in the playground that passing next as max_id returns the following page before your job relies on it.
What does a post look like in the response?
user-posts returns a statuses array, a count and pagination; post and featured-truth return a single status object with the same shape. Each status carries its id, created_at, language, visibility, engagement counts, the post text in content, any media_attachments, and an embedded account object. This is the recorded user-posts response with the IDs, text, links and the whole account object cut:
{
"success": true,
"statuses": [
{
"id": "…",
"created_at": "2026-11-12T13:07:34.843Z",
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"language": "en",
…
"replies_count": 142,
"reblogs_count": 297,
"favourites_count": 1052,
"content": "…",
"pinned": false,
…
"upvotes_count": 1052,
"downvotes_count": 0,
"votable": false,
"version": "1",
"sponsored": false,
"account": { … },
…
"status_date": "2026-11-12T13:07:34.844Z"
},
…
],
"count": 20,
"pagination": {
"next": "…",
"has_more": true
},
"response_time_ms": 6147
}
| Field | What an aggregate job does with it |
|---|---|
id |
Deduplicates posts across runs |
created_at |
Buckets posts by hour, day or week |
language |
Splits volume by language |
replies_count, reblogs_count, favourites_count |
Engagement at the time of the call |
media_attachments |
Counts posts with video or images by type |
sponsored, visibility |
Filters before you count |
Engagement counts are a snapshot, not a total. The same post appears in two recordings: favourites_count was 1,052 in the user-posts call and 23,890 in the post call. Store the call time with every count, and compare posts at the same age.
How do videos and live shows fit in?
A post's media_attachments items have a type, and video items carry an external_video_id. In the recordings, the featured post's video had an external_video_id that is the same value the video call used as video_id, and the video response returned duration, width, height and an assets object with video files by quality and thumb images. live-shows takes no parameters and returns TV channels with channel_id, name and a program with title, start_time and end_time:
{
"success": true,
"live_shows": [
{
"channel_id": 7,
"name": "Real America's Voice",
…
"program": {
"title": "American Sunrise",
"description": "",
"start_time": "2026-11-12T13:00:00.000Z",
"end_time": "2026-11-12T15:00:00.000Z"
}
},
…
],
"count": 12,
…
}
The recorded tag-timeline call is the one to test before you plan around it. It returned count: 0 and has_more: false, with a caveats entry saying an empty result is expected and isn't an error. An empty response is still a successful call, so it costs 1 credit.
How do you count posting volume in Python?
An aggregate job pulls one page of posts per organisation account each day, keeps only the fields it counts, and writes one row per post with no names, usernames or text. Over weeks, that gives you posting volume and engagement per day per account. The script below uses requests and sqlite3 and reads only fields in the recorded response; ACCOUNT_IDS holds the numeric IDs of the organisations you track, from profile.
import datetime
import os
import sqlite3
import time
import requests
API_KEY = os.environ["API_KEY"]
URL = "https://api.perceptlayer.com/v1/truth-social/user-posts"
ACCOUNT_IDS = os.environ["ACCOUNT_IDS"].split(",")
db = sqlite3.connect("truth-social-volume.db")
db.execute(
"CREATE TABLE IF NOT EXISTS posts (id TEXT PRIMARY KEY, account_id TEXT, created_at TEXT, "
"language TEXT, replies INTEGER, reblogs INTEGER, favourites INTEGER, seen_at TEXT)"
)
def fetch(account_id, attempts=3):
for _ in range(attempts):
r = requests.get(
URL,
params={"account_id": account_id, "limit": 20},
headers={"X-API-Key": API_KEY},
timeout=60,
)
if r.status_code in (429, 503):
time.sleep(int(r.headers.get("Retry-After", "5")))
continue
r.raise_for_status()
return r.json().get("statuses", [])
raise RuntimeError(f"gave up on {account_id}")
now = datetime.datetime.now(datetime.timezone.utc).isoformat()
for account_id in ACCOUNT_IDS:
for s in fetch(account_id):
db.execute(
"INSERT OR REPLACE INTO posts VALUES (?, ?, ?, ?, ?, ?, ?, ?)",
(s.get("id"), account_id, s.get("created_at"), s.get("language"),
s.get("replies_count"), s.get("reblogs_count"), s.get("favourites_count"), now),
)
db.commit()
time.sleep(1)
for row in db.execute(
"SELECT substr(created_at, 1, 10) AS day, COUNT(*), SUM(favourites) "
"FROM posts GROUP BY day ORDER BY day DESC LIMIT 7"
):
print(row)
The one-second pause keeps a free account within its 1 request a second. INSERT OR REPLACE updates a post's counts each time it reappears, so seen_at tells you how old each count is. Every error returns an HTTP status and a JSON body with code, message and request_id, and costs nothing; retry 429 and 503 after Retry-After, as the script does. The errors docs list every code.
What does tracking Truth Social data cost?
Every successful call to any of the seven endpoints costs 1 credit, whatever it returns, including an empty tag timeline. Failed calls cost nothing and return X-Credits-Used: 0. A user-posts call spreads one credit across the posts it returns: the recorded call with limit=20 returned 20 posts for 1 credit.
| Job | Arithmetic | Credits a month |
|---|---|---|
featured-truth once a day |
1 × 30 days × 1 credit | 30 |
| 20 organisation accounts, daily | 20 × 30 days × 1 credit | 600 |
live-shows every hour |
24 × 30 days × 1 credit | 720 |
| 100 organisation accounts, daily | 100 × 30 days × 1 credit | 3,000 |
All four fit the Starter pack's 10,000 credits. The 100 free credits on signup cover five days of the 20-account job. Purchased credits last 12 months. See pricing for what credits cost and the credits docs for how calls are debited.
To try it, accept the restricted-endpoint terms in the dashboard, then run live-shows in the playground on the live shows endpoint page; it needs no parameters. Then get a free API key and point the script at the organisations you track. Other networks are on the social media APIs page.
APIs in this post
Frequently asked questions
Is this Truth Social's official API?
No. These are Perceptlayer endpoints that return public Truth Social data, collected from publicly available sources and returned as found at the time of the call. This guide makes no claims about the site's own developer offerings or terms. Read the site's terms before you use the data, and compare the options yourself.
Why are the Truth Social endpoints restricted?
All seven return social data that can include personal data, so they sit behind the restricted-endpoint terms. You accept them in the dashboard. The terms don't permit collecting personal data without a lawful basis or using it to contact people. Until you accept, calls return restricted_endpoint (403) and cost nothing.
How much does one Truth Social call cost?
Every successful call costs 1 credit, whichever endpoint it is and however many posts come back. The recorded user-posts call returned 20 posts for 1 credit. Failed calls cost nothing and return X-Credits-Used: 0. The 100 free credits on signup cover 100 calls. See the pricing page for what credits cost.
Can I search Truth Social by hashtag?
tag-timeline takes a tag, plus limit and max_id. The recorded call returned count: 0 with a caveat that an empty result is expected and not an error. A successful empty call still costs 1 credit. Test your tags in the playground first, and plan topic counts around user-posts from organisations' accounts if timelines stay empty.
Are engagement counts final?
No. replies_count, reblogs_count and favourites_count are snapshots at the time of the call. One post in the recordings showed 1,052 favourites in one call and 23,890 in another. Store the call time with every count, and compare posts at the same age rather than mixing fresh and old snapshots.