# 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:** 2 total users, 1 monthly users, 100.0% 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/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

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

### Modes

Pick one mode with the `mode` input:

- **Search** (`mode: "search"`, default) — scrape public posts for matching search terms or public handles such as `@realDonaldTrump`. Uses the `searchQueries` field.
- **URL** (`mode: "url"`) — scrape one or more public profile URLs or individual post URLs. Uses the `startUrls` field.

Only the inputs for the selected mode are used.

### What it can do

- Search mode: scrape public posts for matching search terms when available; public handles such as `@realDonaldTrump` are also supported.
- URL mode: 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 |
| --- | --- | --- |
| `mode` | `search` | `search` (use `searchQueries`) or `url` (use `startUrls`). Only the selected mode's inputs run. |
| `searchQueries` | `[]` | Search mode: search terms or public handles such as `@realDonaldTrump`. |
| `maxSearchResults` | `0` | No per-query cap by default; the run stops at Max items. |
| `startUrls` | `[]` | URL mode: 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. |
| `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. |

If the selected mode's input is empty, the actor defaults to `@realDonaldTrump`.

### Example input

Search mode (default):

```json
{
  "mode": "search",
  "searchQueries": ["@realDonaldTrump"],
  "maxSearchResults": 0,
  "maxItems": 20,
  "includeRaw": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
````

URL mode:

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

### Output fields

Common post/search 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.

### 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

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

How to start the scrape. Search mode uses the Search queries below; URL mode uses the Profile or post URLs below.

## `searchQueries` (type: `array`):

Search terms or public handles. For handles, use values such as @realDonaldTrump.

## `maxSearchResults` (type: `integer`):

Leave 0 for no per-query cap; the run stops at Max items.

## `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.

## `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
{
  "mode": "search",
  "searchQueries": [
    "@realDonaldTrump"
  ],
  "maxSearchResults": 0,
  "startUrls": [],
  "profileContentType": "postsAndReplies",
  "maxPostsPerProfile": 0,
  "maxItems": 20,
  "maxPages": 0,
  "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 = {
    "searchQueries": [
        "@realDonaldTrump"
    ],
    "maxItems": 20,
    "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 = {
    "searchQueries": ["@realDonaldTrump"],
    "maxItems": 20,
    "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("💾 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 '{
  "searchQueries": [
    "@realDonaldTrump"
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call abotapi/truthsocial-com-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Truth Social Scraper | Profiles, Posts & Search",
        "description": "Scrape public Truth Social profiles, posts, media, metrics, author data, and complete source objects using profile URLs, post URLs, or search queries.",
        "version": "1.0",
        "x-build-id": "0JSLofpHuZeOHRiUq"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/abotapi~truthsocial-com-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-abotapi-truthsocial-com-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/abotapi~truthsocial-com-scraper/runs": {
            "post": {
                "operationId": "runs-sync-abotapi-truthsocial-com-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/abotapi~truthsocial-com-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-abotapi-truthsocial-com-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": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "search",
                            "url"
                        ],
                        "type": "string",
                        "description": "How to start the scrape. Search mode uses the Search queries below; URL mode uses the Profile or post URLs below.",
                        "default": "search"
                    },
                    "searchQueries": {
                        "title": "Search queries",
                        "type": "array",
                        "description": "Search terms or public handles. For handles, use values such as @realDonaldTrump.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxSearchResults": {
                        "title": "Max search results per query",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Leave 0 for no per-query cap; the run stops at Max items.",
                        "default": 0
                    },
                    "startUrls": {
                        "title": "Profile or post URLs",
                        "type": "array",
                        "description": "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.",
                        "default": [],
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "profileContentType": {
                        "title": "Profile content",
                        "enum": [
                            "profileOnly",
                            "postsOnly",
                            "repliesOnly",
                            "postsAndReplies"
                        ],
                        "type": "string",
                        "description": "For profile URLs, choose whether to return profile metadata only, posts only, replies only, or both posts and replies. Ignored for post URLs.",
                        "default": "postsAndReplies"
                    },
                    "maxPostsPerProfile": {
                        "title": "Max posts/replies per profile",
                        "minimum": 0,
                        "type": "integer",
                        "description": "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.",
                        "default": 0
                    },
                    "maxItems": {
                        "title": "Max items",
                        "minimum": 1,
                        "type": "integer",
                        "description": "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.",
                        "default": 20
                    },
                    "maxPages": {
                        "title": "Max pages",
                        "minimum": 0,
                        "type": "integer",
                        "description": "No page limit by default. Leave 0 for unlimited; the run stops at Max items.",
                        "default": 0
                    },
                    "includeRaw": {
                        "title": "Include source objects",
                        "type": "boolean",
                        "description": "Keep complete source account/status objects so no nested public field is dropped.",
                        "default": true
                    },
                    "countryCode": {
                        "title": "Residential country code",
                        "type": "string",
                        "description": "Preferred proxy country. US is recommended for Truth Social.",
                        "default": "US"
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Residential proxies are recommended. Basic shared or no-proxy runs can be blocked more often.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    },
                    "mcpConnectors": {
                        "title": "Pipe results into apps",
                        "type": "array",
                        "description": "Optionally send a compact summary into configured MCP connectors. The full dataset remains in Apify."
                    },
                    "notionParentPageUrl": {
                        "title": "Notion parent page",
                        "type": "string",
                        "description": "Required only when exporting to Notion."
                    },
                    "maxNotifyListings": {
                        "title": "Max connector items",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum items sent to each connector. Does not affect the Apify dataset.",
                        "default": 50
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
