# Truth Social Scraper (`scrapesmith/truth-social-scraper`) Actor

Scrape every post from any Truth Social account. Complete history, 46 fields per post, profile data, replies, media filter, date filter. No browser, no proxy, 256MB.

- **URL**: https://apify.com/scrapesmith/truth-social-scraper.md
- **Developed by:** [Scrape Smith](https://apify.com/scrapesmith) (community)
- **Categories:** Social media, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 19 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Truth Social Scraper — Complete Post History & Profiles

The only Truth Social scraper that gets **every single post** from any public account — the complete history back to the platform's launch. No other scraper on Apify goes beyond 100 posts.

***

### Why This Scraper?

- **Complete post history** — verified with 34,000+ posts from a single account
- **46 fields per post** — the most comprehensive output available
- **No browser, no proxy, no login** — fast and reliable
- **Bulk-ready** — scrape multiple accounts in a single run
- **Flat CSV-ready output** — every post is one row, ready for spreadsheets and analysis

***

### What Data Do You Get?

#### Profile Data

Username, display name, user ID, bio, avatar, header image, followers, following, post count, verified status, join date, website, location.

#### Post Data (46 fields)

| Category | Fields |
|---|---|
| **Content** | Full text (clean + HTML), URL, visibility, language, spoiler text |
| **Engagement** | Likes, reposts, replies, upvotes, downvotes |
| **Timestamps** | Created, edited |
| **Author** | Username, display name, ID, avatar, followers, following, post count, verified — on every row |
| **Interactions** | Is reply, reply-to ID, is repost, repost source user, is quote, quoted text, quote ID |
| **Media** | Media count, URLs array, types array |
| **Tags** | Hashtags array, mentions array |
| **Link Preview** | URL, title, description |
| **Flags** | Pinned, sensitive, sponsored, poll, emojis |

***

### Input

```json
{
  "usernames": ["realDonaldTrump", "DevinNunes"],
  "mode": "both",
  "maxPostsPerUser": 10000,
  "maxResults": 50000
}
```

| Parameter | Type | Default | Description |
|---|---|---|---|
| `usernames` | string\[] | — | Usernames to scrape (without the @) |
| `mode` | string | `both` | `profile` for profile only, `posts` for posts only, `both` for everything |
| `maxPostsPerUser` | integer | `10000` | Max posts per user. Set high for full history |
| `maxResults` | integer | `50000` | Max total items across all users |

***

### Sample Output

#### Profile

```json
{
  "type": "profile",
  "username": "realDonaldTrump",
  "display_name": "Donald J. Trump",
  "user_id": "107780257626128497",
  "bio": "",
  "followers_count": 12856013,
  "following_count": 69,
  "posts_count": 34612,
  "verified": true,
  "created_at": "2022-02-11T16:16:57.705Z",
  "avatar_url": "https://...",
  "website": "www.DonaldJTrump.com"
}
```

#### Post

```json
{
  "type": "post",
  "post_id": "116845771905594037",
  "created_at": "2026-07-01T16:56:26.350Z",
  "text": "How the Republican Senate is not firing the Parliamentarian...",
  "username": "realDonaldTrump",
  "display_name": "Donald J. Trump",
  "author_verified": true,
  "author_followers": 12856013,
  "favourites_count": 8417,
  "reblogs_count": 2734,
  "replies_count": 1511,
  "upvotes_count": 8417,
  "is_reply": false,
  "is_repost": false,
  "is_quote": false,
  "media_count": 0,
  "hashtags": [],
  "mentions": [],
  "visibility": "public",
  "url": "https://truthsocial.com/@realDonaldTrump/116845771905594037"
}
```

***

### How Fast Is It?

| Scenario | Posts | Time |
|---|---|---|
| Full history (34,000+ posts) | 34,435 | ~52 minutes |
| Average account (1,000 posts) | 1,000 | ~90 seconds |
| Small account (100 posts) | 100 | ~15 seconds |
| Profile only | 1 | ~3 seconds |

***

### Use Cases

- **Political research** — track public statements, posting patterns, and engagement trends over years
- **Media monitoring** — follow public figures, news outlets, commentators on Truth Social
- **Content analysis** — export complete post history for sentiment analysis, topic modeling, trend detection
- **Social listening** — monitor engagement metrics across accounts, identify viral content
- **Academic research** — collect longitudinal social media datasets back to 2022
- **Competitive intelligence** — compare posting strategies, frequency, and audience engagement

***

### FAQ

**How many posts can I get?**
Every public post the account has ever made. Verified with 34,000+ posts from @realDonaldTrump — the complete history back to February 2022.

**Does this require a Truth Social account?**
No. All data comes from public endpoints. No login, no cookies, no authentication.

**Can I scrape private accounts?**
No. Only public accounts are accessible.

**What if a username doesn't exist?**
Invalid usernames are gracefully skipped. The scraper continues to the next username.

**Can I scrape multiple accounts?**
Yes. Provide a list of usernames and they are processed in sequence.

**What's the difference between this and other Truth Social scrapers?**
Other scrapers cap at 20–100 posts per user. This scraper paginates through the complete history — no other scraper gets more than a fraction of what this one delivers.

**Is there a free trial?**
Yes. Every run includes free results so you can verify the data before subscribing.

**What output formats are available?**
JSON, CSV, Excel, XML — all available from the Apify dataset after each run.

# Actor input Schema

## `usernames` (type: `array`):

Truth Social usernames to scrape (without the @).

## `mode` (type: `string`):

What content to scrape from each profile.

## `maxPostsPerUser` (type: `integer`):

Maximum posts to scrape per user. Set high for full history.

## `sinceDate` (type: `string`):

Only include posts created on or after this date. Format: YYYY-MM-DD

## `onlyMedia` (type: `boolean`):

Only scrape posts that contain images, videos, or other media attachments.

## `cleanContent` (type: `boolean`):

Remove HTML tags from post content. Only the plain text field is included.

## Actor input object example

```json
{
  "usernames": [
    "realDonaldTrump"
  ],
  "mode": "posts_and_replies",
  "maxPostsPerUser": 10000,
  "onlyMedia": false,
  "cleanContent": false
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "usernames": [
        "realDonaldTrump"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapesmith/truth-social-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "usernames": ["realDonaldTrump"] }

# Run the Actor and wait for it to finish
run = client.actor("scrapesmith/truth-social-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "usernames": [
    "realDonaldTrump"
  ]
}' |
apify call scrapesmith/truth-social-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapesmith/truth-social-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/EY4fVB9pBMFu9a89n/builds/MqfksOCcBboTpGOhT/openapi.json
