# Truth Social Scraper - Profiles & Posts (`benthepythondev/truth-social-scraper`) Actor

Scrape public Truth Social posts and profile metadata by username. Export post text, engagement, media, links, tags, timestamps and account statistics.

- **URL**: https://apify.com/benthepythondev/truth-social-scraper.md
- **Developed by:** [Ben](https://apify.com/benthepythondev) (community)
- **Categories:** Social media, Marketing, Automation
- **Stats:** 2 total users, 1 monthly users, 66.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 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.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.md):

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

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.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/platform/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 - Profiles, Posts and Engagement Data

Extract public posts from **Truth Social** by username and turn them into a clean dataset for monitoring, research, media analysis, competitive intelligence, and content workflows. The Actor returns post text, publication time, engagement counts, links, tags, media URLs, and the public profile context behind each post. No Truth Social login or user password is required.

The scraper uses Truth Social's public Mastodon-compatible endpoints instead of automating a browser. That keeps runs fast, inexpensive, and suitable for recurring schedules. Results can be downloaded as JSON, CSV, Excel, XML, or RSS, accessed through the Apify API, or connected to Make, Zapier, n8n, Google Sheets, and your own data pipeline.

### What can the Truth Social Scraper do?

- Scrape recent public posts from one or many usernames
- Accept usernames, `@handles`, or full Truth Social profile URLs
- Include or exclude replies and reposts
- Limit collection to posts containing media
- Return engagement counts for replies, reposts, and favorites
- Extract image and video URLs, tags, mentions, cards, and poll metadata
- Add profile statistics to every row for easier analysis
- Run once, on a schedule, or through the Apify API

### Data extracted

Each dataset item represents one public post and can include:

- `post_id` and `url`
- `created_at`, `language`, and `visibility`
- `content` as readable plain text
- `spoiler_text` and sensitive-content flag
- `replies_count`, `reblogs_count`, and `favourites_count`
- reply and repost relationships
- hashtags and mentioned accounts
- media URLs, preview URLs, and media types
- preview-card title and URL
- public poll metadata
- account ID, username, display name, and profile URL
- follower, following, and total-status counts
- account avatar and verification flag
- source and scrape timestamp

Null values mean the public source did not provide that field. The Actor does not infer private profile information or fabricate missing values.

### Input

| Field | Description | Default |
|---|---|---|
| `usernames` | Truth Social usernames, handles, or profile URLs | `realDonaldTrump` |
| `maxPostsPerAccount` | Maximum posts saved for each account | `10` |
| `includeReplies` | Include posts that reply to another post | `false` |
| `includeReblogs` | Include reposted posts | `false` |
| `onlyMedia` | Return only posts with images or video | `false` |

#### Example input

```json
{
  "usernames": ["realDonaldTrump"],
  "maxPostsPerAccount": 50,
  "includeReplies": false,
  "includeReblogs": false,
  "onlyMedia": false
}
````

### Example output

```json
{
  "post_id": "114801234567890123",
  "url": "https://truthsocial.com/@realDonaldTrump/114801234567890123",
  "created_at": "2026-07-10T08:15:00.000Z",
  "content": "Public post text...",
  "language": "en",
  "replies_count": 2100,
  "reblogs_count": 4300,
  "favourites_count": 17000,
  "tags": ["news"],
  "media_urls": ["https://static-assets-1.truthsocial.com/...jpg"],
  "username": "realDonaldTrump",
  "display_name": "Donald J. Trump",
  "account_followers_count": 10000000,
  "source": "Truth Social public API"
}
```

The values above illustrate the output shape. Every run reads the currently available public data.

### Common use cases

#### Media and political monitoring

Schedule the Actor to collect posts from a stable list of public accounts. Keep `post_id` as the deduplication key, compare each dataset with the previous run, and notify an editor or analyst when a new post appears.

#### Engagement analysis

Store periodic snapshots of the same posts to study how replies, reposts, and favorites change over time. Engagement counts are source-provided public metrics and should be interpreted in context.

#### Content and topic research

Use post text, hashtags, mentions, and links to identify recurring themes. Export the dataset to a notebook or warehouse for keyword, sentiment, entity, or URL-domain analysis.

#### Public-account archiving

Create a timestamped record of currently public posts for internal research. Respect applicable laws, platform rules, and retention requirements when storing or redistributing collected data.

### Pricing

This Actor uses transparent pay-per-event pricing: a very small one-time Actor start event and **$0.002 per result** written to the default dataset. A result is one public post. The default input is deliberately limited to ten posts so a first run is inexpensive and easy to inspect. Use `maxPostsPerAccount` to control larger runs.

### Reliability and responsible use

The scraper reads public endpoints without logging into a user account. It retries temporary request failures and fails clearly when no public posts are returned, so an empty run is not mistaken for success. Public endpoint behavior and available fields can change; report unexpected output through the Actor's Issues tab with the username and run ID.

Only collect content you are permitted to use. Do not use this Actor for harassment, surveillance, deceptive profiling, or unlawful processing. Review Truth Social's applicable terms and your local legal obligations before production use.

### FAQ

**Do I need a Truth Social account?**\
No. The Actor collects only public profile and post data.

**Can I scrape multiple accounts?**\
Yes. Add multiple values to `usernames`; the post limit applies separately to each account.

**Can I include replies and reposts?**\
Yes. Both are disabled by default to keep the dataset focused, but each can be enabled independently.

**Does the Actor return images and videos?**\
It returns the public media and preview URLs exposed with each post. It does not download or re-host the files.

**How do I avoid duplicates?**\
Use `post_id` as the stable key when merging scheduled datasets.

**Can I run it daily?**\
Yes. Create an Apify schedule and compare the new `post_id` values with your previous dataset.

**Does it scrape private or deleted posts?**\
No. It can only return content available through the public source at run time.

### You might also like

- [Mastodon Scraper](https://apify.com/benthepythondev/mastodon-scraper) for public Mastodon data
- [Bluesky Scraper](https://apify.com/benthepythondev/bluesky-scraper) for Bluesky posts and profiles
- [Reddit Scraper](https://apify.com/benthepythondev/reddit-scraper) for Reddit posts and comments
- [Google News Scraper](https://apify.com/benthepythondev/google-news-scraper) for news monitoring

***

**Keywords:** Truth Social scraper, Truth Social API, scrape Truth Social posts, Truth Social profile scraper, social media monitoring, public posts dataset, political social media data, engagement analytics, Truth Social export, Truth Social automation.

# Actor input Schema

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

Public usernames, profile URLs, or @handles to scrape.

## `maxPostsPerAccount` (type: `integer`):

Maximum public posts returned for each username.

## `includeReplies` (type: `boolean`):

Include posts that are replies to another post.

## `includeReblogs` (type: `boolean`):

Include reposted content in the result set.

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

Return only posts containing images or video.

## Actor input object example

```json
{
  "usernames": [
    "realDonaldTrump"
  ],
  "maxPostsPerAccount": 10,
  "includeReplies": false,
  "includeReblogs": false,
  "onlyMedia": false
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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"
    ],
    "maxPostsPerAccount": 10,
    "includeReplies": false,
    "includeReblogs": false,
    "onlyMedia": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("benthepythondev/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"],
    "maxPostsPerAccount": 10,
    "includeReplies": False,
    "includeReblogs": False,
    "onlyMedia": False,
}

# Run the Actor and wait for it to finish
run = client.actor("benthepythondev/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"
  ],
  "maxPostsPerAccount": 10,
  "includeReplies": false,
  "includeReblogs": false,
  "onlyMedia": false
}' |
apify call benthepythondev/truth-social-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=benthepythondev/truth-social-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Truth Social Scraper - Profiles & Posts",
        "description": "Scrape public Truth Social posts and profile metadata by username. Export post text, engagement, media, links, tags, timestamps and account statistics.",
        "version": "1.0",
        "x-build-id": "YeQHMqCRB7OarLHPe"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/benthepythondev~truth-social-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-benthepythondev-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/benthepythondev~truth-social-scraper/runs": {
            "post": {
                "operationId": "runs-sync-benthepythondev-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/benthepythondev~truth-social-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-benthepythondev-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",
                "properties": {
                    "usernames": {
                        "title": "Truth Social usernames",
                        "type": "array",
                        "description": "Public usernames, profile URLs, or @handles to scrape.",
                        "default": [
                            "realDonaldTrump"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxPostsPerAccount": {
                        "title": "Maximum posts per account",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum public posts returned for each username.",
                        "default": 10
                    },
                    "includeReplies": {
                        "title": "Include replies",
                        "type": "boolean",
                        "description": "Include posts that are replies to another post.",
                        "default": false
                    },
                    "includeReblogs": {
                        "title": "Include reposts",
                        "type": "boolean",
                        "description": "Include reposted content in the result set.",
                        "default": false
                    },
                    "onlyMedia": {
                        "title": "Only posts with media",
                        "type": "boolean",
                        "description": "Return only posts containing images or video.",
                        "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
