# Truth Social Scraper | Profiles, Posts & Search (`abotapi/truthsocial-com-scraper`) Actor

Scrape public Truth Social profiles, posts, media, metrics, author data, and complete source objects using profile URLs, post URLs, or search queries.

- **URL**: https://apify.com/abotapi/truthsocial-com-scraper.md
- **Developed by:** [Abot API](https://apify.com/abotapi) (community)
- **Categories:** Social media, News, Developer tools
- **Stats:** 6 total users, 4 monthly users, 96.6% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 dataset items

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?

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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

Scrape public Truth Social profiles, posts, media, engagement metrics, author metadata, and complete source objects.

### What it can do

- Scrape one or more public profile URLs or individual post URLs in the same field.
- Profile content controls: profile-only, posts-only, replies-only, or posts and replies (applies to profile URLs).
- Rich output: normalized convenience fields plus complete account/status objects so nested public fields are not dropped.

### Inputs

| Input | Default | Notes |
| --- | --- | --- |
| `startUrls` | `[]` | Truth Social profile or post URLs, e.g. `https://truthsocial.com/@realDonaldTrump`. Profile URLs return the account's posts; post URLs return the single post. |
| `profileContentType` | `postsAndReplies` | For profile URLs: `profileOnly`, `postsOnly`, `repliesOnly`, or `postsAndReplies`. |
| `maxPostsPerProfile` | `0` | No per-profile cap by default; the run stops at Max items. Fewer rows may be returned if fewer public records exist. |
| `maxItems` | `20` | The only finite default cap for the whole run. |
| `maxPages` | `0` | Unlimited by default; leave `0` to stop at Max items. |
| `resumeFromRunId` | (empty) | A previous run ID or dataset ID from this account. Posts that run already saved are skipped, so a scheduled run only returns what's new since then. |
| `includeRaw` | `true` | Keeps complete source account/status objects. |
| `proxyConfiguration` | Apify residential | Residential proxies are recommended. Basic shared or no-proxy runs can be blocked more often. |
| `mcpConnectors` | (empty) | Pipe results into the apps you already use via Model Context Protocol (MCP) connectors (Notion, Linear, Airtable, Apify); leave empty to skip, never changes the dataset output. |
| `notionParentPageUrl` | (empty) | Notion connector only: URL or id of the Notion page under which item pages are created. |
| `maxNotifyListings` | `50` | Cap on items written to each connector per run; does not affect the dataset. |

If `startUrls` is empty, the actor defaults to `@realDonaldTrump`.

### Resuming a scheduled run

Set `resumeFromRunId` to a previous run's ID (or its dataset ID) to skip posts that run already saved. Truth Social's timeline is newest-first, so the actor stops paginating as soon as it catches up to the previous run's content — a resumed run costs less than a full re-scrape, not just returns fewer rows. Works for profile URLs (skips already-saved posts) and post URLs (skips a post that was already saved). If the id can't be resolved to a run or dataset on this account, the run fails immediately rather than silently falling back to a full re-scrape.

### Example input

```json
{
  "startUrls": [{ "url": "https://truthsocial.com/@realDonaldTrump" }],
  "profileContentType": "postsAndReplies",
  "maxPostsPerProfile": 0,
  "maxItems": 20,
  "includeRaw": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

### Output fields

Common post fields include:

- `recordType`
- `sourceQuery`
- `postId`
- `postUrl`
- `content`
- `contentHtml`
- `createdAt`
- `editedAt`
- `language`
- `repliesCount`
- `reTruthsCount`
- `likesCount`
- `quotesCount`
- `media`, `mediaUrls`
- `tags`, `mentions`
- `poll`, `card`, `cardUrl`, `cardTitle`
- `authorId`, `authorUsername`, `authorAcct`, `authorDisplayName`, `authorUrl`
- `account`
- `rawStatus`

Profile records include:

- `userId`
- `username`
- `acct`
- `displayName`
- `bio`, `bioHtml`
- `url`
- `avatar`, `header`
- `followersCount`
- `followingCount`
- `statusesCount`
- `createdAt`
- `lastStatusAt`
- `verified`
- `fields`
- `rawAccount`

### Proxy guidance

Use residential proxies for best reliability. Free-tier or no-proxy runs may work intermittently but are more likely to be blocked.

### Send results into your apps (MCP connectors)

This actor supports optional integration with apps via Model Context Protocol (MCP) connectors. Results are sent to your configured apps in addition to the standard Apify dataset — the dataset output never changes.

When you enable MCP export, a condensed per-record summary (title and markdown) is sent to the selected connectors, not the full JSON object. Each connector requires one-time authorization in Apify → Settings → Integrations, then you select it here via the `mcpConnectors` input.

The `notionParentPageUrl` is required only when exporting to Notion; if omitted for Notion, the export is skipped with a warning. For other connectors (Linear, Airtable, Apify), this field is ignored. Leaving `mcpConnectors` empty disables export entirely. The `maxNotifyListings` cap (default 50) limits how many items are sent to each connector per run and does not affect the Apify dataset.

### Notes on legality

This actor is designed for public Truth Social data only. Some public social-media records may still contain personal data. Use the results only for lawful purposes and follow applicable data-protection rules.

# Actor input Schema

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

Public Truth Social profile URLs (for example https://truthsocial.com/@realDonaldTrump) or individual post URLs. Profile URLs return that account's posts; post URLs return the single post.

## `profileContentType` (type: `string`):

For profile URLs, choose whether to return profile metadata only, posts only, replies only, or both posts and replies. Ignored for post URLs.

## `maxPostsPerProfile` (type: `integer`):

Leave 0 for no per-profile cap; the run stops at Max items. Fewer rows are returned when the profile has fewer public matching records.

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

The only finite default cap. Maximum matching rows to save across the whole run; fewer rows are returned when selected inputs have fewer public matches.

## `maxPages` (type: `integer`):

No page limit by default. Leave 0 for unlimited; the run stops at Max items.

## `resumeFromRunId` (type: `string`):

Paste a previous run ID or dataset ID to continue a large profile pull without returning or charging for posts already collected there. Use this after an interrupted run, or when continuing a pull in another run. For recurring monitoring of the same profiles, use Incremental mode below instead.

## `incrementalMode` (type: `boolean`):

Turn this on for daily or recurring monitoring. The first run returns all matching posts as NEW. Later runs normally return only NEW, UPDATED, and REAPPEARED posts. Turn on "Emit unchanged" or "Emit expired" only when you also want those posts returned (and billed). State is kept separately for each startUrls/profile content setup; use State key when you want to name or deliberately share a monitoring campaign. To continue one specific interrupted run instead, use Resume from a previous run above.

## `stateKey` (type: `string`):

Optional. Name this monitoring campaign to keep its state stable, or to deliberately share state across differently-configured runs. Leave empty to let the actor derive a key automatically from the profile/post URLs and content type settings -- different profile sets then never mix state with each other.

## `emitUnchanged` (type: `boolean`):

Off by default. Turn on to also return posts that have not changed since the last run, marked UNCHANGED. This returns -- and bills -- extra rows you already have, so leave it off unless you specifically want the full snapshot every run.

## `emitExpired` (type: `boolean`):

Off by default. Turn on to also return posts that were present in a previous run but are no longer found, marked EXPIRED. Only produced once a run has fully scanned every tracked profile -- not when Max items capped it or when Resume was used. This returns -- and bills -- extra synthetic rows, so leave it off unless you need expiry tracking.

## `includeRaw` (type: `boolean`):

Keep complete source account/status objects so no nested public field is dropped.

## `countryCode` (type: `string`):

Preferred proxy country. US is recommended for Truth Social.

## `proxyConfiguration` (type: `object`):

Residential proxies are recommended. Basic shared or no-proxy runs can be blocked more often.

## `mcpConnectors` (type: `array`):

Optionally send a compact summary into configured MCP connectors. The full dataset remains in Apify.

## `notionParentPageUrl` (type: `string`):

Required only when exporting to Notion.

## `maxNotifyListings` (type: `integer`):

Maximum items sent to each connector. Does not affect the Apify dataset.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://truthsocial.com/@realDonaldTrump"
    }
  ],
  "profileContentType": "postsAndReplies",
  "maxPostsPerProfile": 0,
  "maxItems": 20,
  "maxPages": 0,
  "incrementalMode": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "includeRaw": true,
  "countryCode": "US",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "maxNotifyListings": 50
}
```

# Actor output Schema

## `overview` (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"
        }
    ],
    "maxItems": 20,
    "incrementalMode": false,
    "emitUnchanged": false,
    "emitExpired": false,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("abotapi/truthsocial-com-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 = {
    "startUrls": [{ "url": "https://truthsocial.com/@realDonaldTrump" }],
    "maxItems": 20,
    "incrementalMode": False,
    "emitUnchanged": False,
    "emitExpired": False,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("abotapi/truthsocial-com-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 '{
  "startUrls": [
    {
      "url": "https://truthsocial.com/@realDonaldTrump"
    }
  ],
  "maxItems": 20,
  "incrementalMode": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call abotapi/truthsocial-com-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,abotapi/truthsocial-com-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/wzwjsXErvttaAvMF0/builds/uBkV5HxhT0c0wtVn0/openapi.json
