# Truth Social Scraper - Profiles, Posts & Sentiment for Quants (`madeingermany/truth-social-profile-scraper-with-posts`) Actor

Scrape Truth Social profiles, posts, media attachments, and engagement metrics fast and reliably using direct API queries.

- **URL**: https://apify.com/madeingermany/truth-social-profile-scraper-with-posts.md
- **Developed by:** [Made In Germany](https://apify.com/madeingermany) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.55 / 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/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 — User Profiles, Posts & Sentiment for Quants & Hedge Funds

A high-performance, cost-effective Apify Actor for scraping **Truth Social profiles, posts, media attachments, and engagement metrics**.

Built with Crawlee and `got-scraping`, this Actor uses direct API fast-path querying with automated anti-bot circumvention (TLS fingerprinting, browser header emulation, and optional residential proxy rotation). It extracts full timelines, historical posts, single statuses, and rich account metadata without running bloated headless browser instances.

***

### 💰 Pricing (Pay-Per-Event)

This actor operates on a pay-as-you-go **Pay-Per-Event (PPE)** pricing model. You only pay for what you extract:

| Event Name | Purpose | Price (USD) | Description |
|---|---|---|---|
| **`apify-default-dataset-item`** | result | `$0.00055` | Single result in the default dataset. |
| **`apify-actor-start`** | Actor Start | `$0.005` | Charged when the Actor starts running. Number of events charged depends on Actor memory (one event per GB, minimum one event). |

***

### ✨ Features & Why It Beats Alternatives

- ⚡ **Pure HTTP Fast-Path**: Up to 10x faster and uses a fraction of the RAM compared to Playwright or Selenium browser automation.
- 🎯 **Deep Profile & Post Extraction**: Scrapes status text, timestamps, engagement metrics (reblogs, favorites/upvotes, replies), video/image attachments, mentions, hashtags, and link cards.
- 🔄 **Multiple Target Modes**:
  - Profile URLs (e.g. `https://truthsocial.com/@realDonaldTrump`)
  - Direct Status URLs (e.g. `https://truthsocial.com/@realDonaldTrump/posts/117345281669990405`)
  - Free-text handle or search queries (`@realDonaldTrump`)
  - Exact Post IDs without needing URLs
- 🎛️ **Content Type Filtering**: Choose between **posts only** (excluding replies), **profile metadata only**, **replies only**, or **combined timelines**.
- 📸 **Media Filtering**: Option to filter for only posts with video, photo, or audio attachments.
- 📅 **Incremental & Date Filtering**: Scrape posts published after a specific date (`YYYY-MM-DD`) or status ID (`sinceId`) for continuous monitoring pipelines.
- 🛡️ **Anti-Bot Circumvention**: Works seamlessly with Apify Residential Proxies and TLS fingerprinting for high reliability.

***

### 📥 Input Parameters

| Parameter | Type | Required | Default | Description |
| :--- | :--- | :---: | :--- | :--- |
| `startUrls` | Array | No | `["https://truthsocial.com/@realDonaldTrump"]` | List of target profile URLs or direct post URLs. |
| `searchQuery` | String | No | `@realDonaldTrump` | Username/handle (e.g. `@realDonaldTrump`) or search term. |
| `contentType` | String | No | `posts` | `posts` (posts only), `profile_details` (metadata), `replies`, or `posts_and_replies`. |
| `maxItems` | Integer | No | `50` | Maximum number of posts or records to extract. |
| `onlyMedia` | Boolean | No | `false` | When true, only posts with attached images or videos are scraped. |
| `sinceId` | String | No | `null` | Status ID cursor for incremental scraping (skips older posts). |
| `date` | String | No | `null` | Earliest publication date to scrape (`YYYY-MM-DD`). |
| `includeMuted` | Boolean | No | `true` | Include muted posts or replies. |
| `proxy` | Object | No | Residential Proxy | Proxy configuration (Apify Residential Proxy recommended). |

#### Sample JSON Input

```json
{
  "startUrls": [
    { "url": "https://truthsocial.com/@realDonaldTrump" }
  ],
  "searchQuery": "@realDonaldTrump",
  "contentType": "posts",
  "maxItems": 20,
  "onlyMedia": false,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

***

### 📤 Output Data Format

Each extracted item in the dataset contains comprehensive details about the post or profile:

| Field | Type | Description |
| :--- | :--- | :--- |
| `id` | String | Unique numeric status ID or account ID. |
| `authorHandle` | String | Handle of the user (e.g. `realDonaldTrump`). |
| `content` | String | HTML / text body of the status post or profile bio. |
| `createdAt` | String | ISO 8601 timestamp of publication. |
| `reblogsCount` | Number | Total number of re-truths (reblogs / retweets). |
| `favoritesCount` | Number | Total number of likes / upvotes. |
| `repliesCount` | Number | Total number of replies. |
| `url` | String | Direct canonical URL to the post or profile. |
| `authorName` | String | Display name of the author. |
| `authorId` | String | Account ID of the author. |
| `authorAvatar` | String | Avatar image URL. |
| `authorHeader` | String | Profile banner image URL. |
| `authorFollowersCount` | Number | Follower count of the account. |
| `authorVerified` | Boolean | Verification badge status. |
| `mediaAttachments` | Array | Images, videos, preview thumbnails, and aspect ratios. |
| `tags` | Array | Hashtags mentioned in the status. |
| `mentions` | Array | Tagged users mentioned in the post. |
| `card` | Object | Rich link preview card metadata (if any). |
| `itemType` | String | `post` or `profile`. |
| `scrapedAt` | String | ISO 8601 timestamp when the item was scraped. |

#### Sample JSON Output

```json
{
  "id": "117345281669990405",
  "authorHandle": "realDonaldTrump",
  "content": "<p>A great day for America!</p>",
  "createdAt": "2026-09-27T22:08:20.483Z",
  "reblogsCount": 1320,
  "favoritesCount": 5284,
  "repliesCount": 425,
  "url": "https://truthsocial.com/@realDonaldTrump/117345281669990405",
  "authorName": "Donald J. Trump",
  "authorId": "107780257626128497",
  "authorAvatar": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/accounts/avatars/107/780/257/626/128/497/original/454286ac07a6f6e6.jpeg",
  "authorHeader": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/accounts/headers/107/780/257/626/128/497/original/ba3b910ba387bf4e.jpeg",
  "authorFollowersCount": 13082442,
  "authorFollowingCount": 69,
  "authorStatusesCount": 36848,
  "authorVerified": true,
  "authorBio": "45th President of the United States of America",
  "mediaAttachments": [
    {
      "id": "117345280658096294",
      "type": "video",
      "url": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/media_attachments/files/117/345/280/658/096/294/original/0888fddf4fc02f2e.mp4",
      "preview_url": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/media_attachments/thumbnails/117/345/280/658/096/294/original/e48680f99c396903.jpg"
    }
  ],
  "tags": [],
  "mentions": [],
  "card": null,
  "inReplyToId": null,
  "quote": null,
  "reblog": null,
  "visibility": "public",
  "sensitive": false,
  "language": null,
  "itemType": "post",
  "scrapedAt": "2026-09-28T00:41:24.237Z"
}
```

***

### 🏷️ Use Cases & SEO

- **Market Research & Sentiment Analysis**: Real-time tracking of public sentiment, political discourse, and news events.
- **Social Media Monitoring**: Continuously monitor specific accounts or keywords for brand mentions and market signals.
- **AI & NLP Dataset Generation**: Collect clean, structured corpora for training and fine-tuning language models.
- **Journalism & Fact-Checking**: Archive posts, media, and engagement trends for public record verification.

**Tags**: `truth-social`, `truth-social-scraper`, `social-media-scraper`, `trump-truths`, `truth-social-api`, `timeline-scraper`, `profile-scraper`

# Actor input Schema

## `startUrls` (type: `array`):

Target profile URLs (e.g. `https://truthsocial.com/@realDonaldTrump`) or direct post URLs to scrape.

## `searchQuery` (type: `string`):

Truth Social username/handle (e.g. `@realDonaldTrump`) or search term. Scrapes the profile if handle is matched.

## `postIds` (type: `array`):

Fetch these exact posts by their status ID without needing URLs.

## `contentType` (type: `string`):

Choose what data to extract for each target profile.

## `maxItems` (type: `integer`):

Maximum number of posts or profile records to return.

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

If enabled, only posts containing images, video, or audio attachments will be scraped.

## `sinceId` (type: `string`):

Skip statuses older than or equal to this status ID (ideal for incremental scrapes).

## `date` (type: `string`):

Filter posts published on or after this date (format: YYYY-MM-DD).

## `includeMuted` (type: `boolean`):

Whether to include muted posts or replies.

## `proxy` (type: `object`):

Proxy settings. Defaults to Apify Residential Proxy for robust anti-blocking.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://truthsocial.com/@realDonaldTrump"
    }
  ],
  "searchQuery": "@realDonaldTrump",
  "contentType": "posts",
  "maxItems": 50,
  "onlyMedia": false,
  "includeMuted": true,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://truthsocial.com/@realDonaldTrump"
        }
    ],
    "searchQuery": "@realDonaldTrump"
};

// Run the Actor and wait for it to finish
const run = await client.actor("madeingermany/truth-social-profile-scraper-with-posts").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 = {
    "startUrls": [{ "url": "https://truthsocial.com/@realDonaldTrump" }],
    "searchQuery": "@realDonaldTrump",
}

# Run the Actor and wait for it to finish
run = client.actor("madeingermany/truth-social-profile-scraper-with-posts").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 '{
  "startUrls": [
    {
      "url": "https://truthsocial.com/@realDonaldTrump"
    }
  ],
  "searchQuery": "@realDonaldTrump"
}' |
apify call madeingermany/truth-social-profile-scraper-with-posts --silent --output-dataset

```

## MCP server setup

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

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/qwb7MyHUOLxxjdTVu/builds/QPXOkKTtZxYm3HSMo/openapi.json
