Truth Social Scraper: how to get the data as JSON/CSV (API, Python, no code)
Scrape public posts from Truth Social accounts via the public REST API. This guide shows the output fields, a working input, and
Python, JavaScript and cURL code for the Actor v0iddo/truth-social-scraper on Apify.
Open Truth Social Scraper on Apify
What data you get
One row per result. Every row can be downloaded as JSON, CSV, Excel or HTML, or read through the API.
| Field | Label | Type | Example |
|---|---|---|---|
postId | Post ID | text | 117623641217339970 |
accountId | Account ID | text | 107780257626128497 |
createdAt | Created At | date | 2026-11-16T01:58:50.098Z |
content | Content | text | RT: https://truthsocial.com/users/realDonaldTrump/statuses/11762364... |
likesCount | Likes | number | 10855 |
reblogsCount | Re-Truths | number | 3268 |
repliesCount | Replies | number | 1547 |
mediaUrls | Media URLs | list | ["https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/medi... |
sensitive | Sensitive | true/false | false |
postUrl | Post URL | URL | https://truthsocial.com/@realDonaldTrump/117623641217339970 |
visibility | text | public | |
isReblog | true/false | false | |
quotedPostId | text | 117623640519503406 |
Input example
This is the input that is pre-filled on the Actor page. Change the values for your own run.
{
"usernames": [
"realDonaldTrump"
],
"maxPostsPerUser": 20,
"excludeReblogs": false,
"maxItems": 20
}
| Input field | Type | What it does |
|---|---|---|
usernames (required) | array | Truth Social account handles to scrape, without the @ sign. |
maxPostsPerUser | integer | Maximum number of posts to collect per username. |
excludeReblogs | boolean | When enabled, shared posts (re-Truths) are skipped. |
maxItems | integer | The run stops after this many result rows. |
Output sample
Real rows from a run of the Actor. Fields that name people are left out of the sample.
[
{
"postId": "117623641217339970",
"accountId": "107780257626128497",
"createdAt": "2026-11-16T01:58:50.098Z",
"content": "RT: https://truthsocial.com/users/realDonaldTrump/statuses/117623640519503406",
"likesCount": 10855,
"reblogsCount": 3268,
"repliesCount": 1547,
"mediaUrls": [
"https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/media_attachments/files/117/623/641/100/360/218/original/5010adcc459db0ad.jpg"
],
"sensitive": false,
"visibility": "public",
"isReblog": false,
"quotedPostId": "117623640519503406",
"postUrl": "https://truthsocial.com/@realDonaldTrump/117623641217339970"
},
{
"postId": "117623640519503406",
"accountId": "107780257626128497",
"createdAt": "2026-11-16T01:58:39.450Z",
"likesCount": 7387,
"reblogsCount": 1677,
"repliesCount": 435,
"mediaUrls": [
"https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/media_attachments/files/117/623/639/352/323/877/original/bc7d17228aaae97a.mp4"
],
"sensitive": false,
"visibility": "public",
"isReblog": false,
"postUrl": "https://truthsocial.com/@realDonaldTrump/117623640519503406"
}
]
Code: Python, JavaScript and cURL
Get your API token in Apify Console under Settings, then Integrations. The Actor id is v0iddo/truth-social-scraper.
Python (apify-client)
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run_input = {'usernames': ['realDonaldTrump'],
'maxPostsPerUser': 20,
'excludeReblogs': False,
'maxItems': 20}
run = client.actor("v0iddo/truth-social-scraper").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)
JavaScript (apify-client)
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const input = {
"usernames": [
"realDonaldTrump"
],
"maxPostsPerUser": 20,
"excludeReblogs": false,
"maxItems": 20
};
const run = await client.actor('v0iddo/truth-social-scraper').call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
cURL
curl -X POST "https://api.apify.com/v2/acts/v0iddo~truth-social-scraper/run-sync-get-dataset-items" \
-H "Authorization: Bearer YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"usernames": ["realDonaldTrump"], "maxPostsPerUser": 20, "excludeReblogs": false, "maxItems": 20}'
Price
$1.70 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $1.19 per 1,000. See the pricing tab for your plan. A new Apify account gets $5 of platform credit every month.
Good to know
- Only public accounts are accessible; private or suspended accounts return no data.
- The Truth Social API returns at most 40 posts per request; large collections require multiple paginated requests.
- Post content is plain text after HTML tags are stripped; embedded media URLs are listed in mediaUrls.
- Not affiliated with Truth Social or TMTG.
FAQ
What data does the Truth Social Scraper return?
Each result is one row in an Apify dataset. Fields include postId, accountId, createdAt, content, likesCount, reblogsCount, repliesCount, mediaUrls, and more. The table above shows every field with an example value.
How do I use the Truth Social Scraper from Python?
Install the apify-client package, create a client with your Apify API token, call the Actor v0iddo/truth-social-scraper with an input like the one above, and read the rows from the run's dataset. The Python snippet above does exactly that.
Can I use it without writing code?
Yes. Open the Actor page on Apify, fill in the input form (an example is already filled in), press Start, and download the results as JSON, CSV, Excel or HTML. You can also schedule runs there.
How much does it cost?
$1.70 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $1.19 per 1,000. A new Apify account gets $5 of platform credit every month.
How do I limit the number of results?
Set the maxItems input field to the number of results you need; the run stops there, so it also caps the cost of one run. You can also set a maximum cost for a run in the run options on Apify, and the run stops when it is reached.
Can I send the results to Google Sheets, Make, Zapier or n8n?
Yes. Apify datasets connect to Google Sheets, Slack, Make, Zapier and n8n, and a webhook can call your own service when a run finishes. You can also export the dataset as JSON, CSV or Excel.
Open Truth Social Scraper on Apify
Related guides
- Substack Newsletter Scraper: Scrape Substack newsletter profiles by creator handle: publication name, URL, description, paid tier status...
- Substack Scraper: Substack scraper for newsletter posts.
- Substack Posts Scraper: Collect the posts of any Substack publication: title, subtitle, date, link, paywall flag, reactions, commen...