# 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
- **Stats:** 15 total users, 9 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# 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("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapesmith/truth-social-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Truth Social Scraper",
        "description": "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.",
        "version": "0.0",
        "x-build-id": "MqfksOCcBboTpGOhT"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scrapesmith~truth-social-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scrapesmith-truth-social-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/scrapesmith~truth-social-scraper/runs": {
            "post": {
                "operationId": "runs-sync-scrapesmith-truth-social-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/scrapesmith~truth-social-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-scrapesmith-truth-social-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "usernames"
                ],
                "properties": {
                    "usernames": {
                        "title": "Truth profile(s)",
                        "type": "array",
                        "description": "Truth Social usernames to scrape (without the @).",
                        "items": {
                            "type": "string"
                        },
                        "default": [
                            "realDonaldTrump"
                        ]
                    },
                    "mode": {
                        "title": "Content to scrape",
                        "enum": [
                            "profile",
                            "posts",
                            "posts_and_replies"
                        ],
                        "type": "string",
                        "description": "What content to scrape from each profile.",
                        "default": "posts_and_replies"
                    },
                    "maxPostsPerUser": {
                        "title": "Max posts per user",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum posts to scrape per user. Set high for full history.",
                        "default": 10000
                    },
                    "sinceDate": {
                        "title": "Only posts/replies newer than (ISO date)",
                        "type": "string",
                        "description": "Only include posts created on or after this date. Format: YYYY-MM-DD"
                    },
                    "onlyMedia": {
                        "title": "Only posts/replies with media",
                        "type": "boolean",
                        "description": "Only scrape posts that contain images, videos, or other media attachments.",
                        "default": false
                    },
                    "cleanContent": {
                        "title": "Clean content (strip HTML)",
                        "type": "boolean",
                        "description": "Remove HTML tags from post content. Only the plain text field is included.",
                        "default": false
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
