# Truth Social Extractor (`jupri/truthsocial`) Actor

💫 All-in-One TruthSocial.com Scraper

- **URL**: https://apify.com/jupri/truthsocial.md
- **Developed by:** [cat](https://apify.com/jupri) (community)
- **Categories:** News, Social media
- **Stats:** 4 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.02 / actor start

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

## 💫 Welcome to TruthSocial.com Data Scraper

<img height="32" src="https://apify.com/actor-badge?actor=jupri~truthsocial&ts=01" align="right">

![dont be sad readme is here](https://raw.githubusercontent.com/JupriGH/resources/main/cats/catframe.png)

### 📢  About TruthSocial.com

<img align="right" width="50%" src="https://upload.wikimedia.org/wikipedia/commons/c/cd/Truth_Social_logo_2022.svg">

**Truth Social**  is an American  [alt-tech](https://en.wikipedia.org/wiki/Alt-tech "Alt-tech")[\[4\]](https://en.wikipedia.org/wiki/Truth_Social#cite_note-NYT-goldstein-4)  [social media platform](https://en.wikipedia.org/wiki/Social_media_platform "Social media platform")  owned by  [Trump Media & Technology Group](https://en.wikipedia.org/wiki/Trump_Media_%26_Technology_Group "Trump Media & Technology Group")  (TMTG), an American company majority-owned by US president  [Donald Trump](https://en.wikipedia.org/wiki/Donald_Trump "Donald Trump").[\[5\]](https://en.wikipedia.org/wiki/Truth_Social#cite_note-5)  It has been called a "[Twitter](https://en.wikipedia.org/wiki/Twitter "Twitter")  clone" that competes with  [Parler](https://en.wikipedia.org/wiki/Parler "Parler"),  [Gab](https://en.wikipedia.org/wiki/Gab_\(social_network\) "Gab (social network)"), and  [Mastodon](https://en.wikipedia.org/wiki/Mastodon_\(social_network\) "Mastodon (social network)")  in trying to provide an alternative to Twitter and  [Facebook](https://en.wikipedia.org/wiki/Facebook "Facebook").[\[4\]](https://en.wikipedia.org/wiki/Truth_Social#cite_note-NYT-goldstein-4)[\[6\]](https://en.wikipedia.org/wiki/Truth_Social#cite_note-BBC_News_2021-10-21-6)[\[7\]](https://en.wikipedia.org/wiki/Truth_Social#cite_note-thompson-7)

The service was launched in February 2022,[\[8\]](https://en.wikipedia.org/wiki/Truth_Social#cite_note-8)  created in response to Trump's bans from major social networks after the  [January 6 Capitol attack](https://en.wikipedia.org/wiki/January_6_Capitol_attack "January 6 Capitol attack"). It is a self-styled "free-speech" alternative to mainstream platforms, catering primarily to a conservative and pro-Trump user base. Since mid-2022, it has faced financial and regulatory issues. It was unavailable on  [Google Play](https://en.wikipedia.org/wiki/Google_Play "Google Play")  because of policies prohibiting content with physical threats and  [incitement](https://en.wikipedia.org/wiki/Incitement "Incitement")  to violence, but approved in October 2022 after agreeing to enforce policies against incitement.[\[9\]](https://en.wikipedia.org/wiki/Truth_Social#cite_note-:12-9)

### 📢 About This Actor

**💫 All-in-One TruthSocial.com Scraper**

- ⭐ Scrape **User profile**
- ⭐ Scrape **User posts**
- ⭐ Scrape **Post contents**
- ⭐ Scrape **Group info**
- ⭐ Scrape **Group posts**
- ⭐ Scrape using **URL** *(Starts URLs)*
- ⭐ Multiple *BULK* **Queries** in one request

### 📢 Support

⚡️ Feel free to [reach out](https://console.apify.com/actors/v5s7HwrJlg8ZlnGNo/issues) to the developer for any [issues](https://console.apify.com/actors/v5s7HwrJlg8ZlnGNo/issues) or suggestions for improvement.

<img src="https://apify-uploads-prod.s3.us-east-1.amazonaws.com/5SxZhwYwpknFk8ek9-cat.gif" width="240">

# Actor input Schema

## `query` (type: `array`):

💡 Search Terms or URL

## `example` (type: `string`):

💡 QUERY Examples

## `limit` (type: `integer`):

💡 Number of results

## `dev_proxy_config` (type: `object`):

💡 <b>Supported protocol:</b><br><br><b>HTTP(S), SOCKS5</b><br><code>{http|socks5}://{user:pass}@{hostname|ip-address}:port</code><br><br><b>Example</b>: <code>socks5://example.com:9000</code>

## `dev_custom_headers` (type: `array`):

💡 Additional HTTP Headers

## `dev_custom_cookies` (type: `array`):

💡 Additional HTTP Cookies

## `dev_transform_fields` (type: `array`):

💡 <b>Transform the resulting output. Select only needed fields.</b><br><br>For nested object use <b>DOT</b>. For example: <pre>address.streetAddress</pre><br>For nested array use <b>NUMBER</b> <i>(index of array element starting from index=0)</i>. For example: <pre>images.0.url</pre>

## `dev_dataset_name` (type: `string`):

💡 <b>Save results into custom named Dataset, use mask to customize dataset name</b><br><br><code>{ACTOR} = actor name<br>{DATE} = date (YYYYMMDD)<br>{TIME} = time (HHMMSS)</code><br><br>This masks can be used to autogenerate Dataset Name.<br><br>example: <i><code>data-{DATE}</code></i><br>Depending on today date the dataset name will be: <code>data-20230603</code><i><br><br>default: <code>data-{ACTOR}-{DATE}-{TIME}</code></i>

## `dev_dataset_clear` (type: `boolean`):

Clear Dataset before insert/update.

## `dev_no_strip` (type: `boolean`):

💡 Keep/Save empty values <i><code>(NULL, FALSE, empty ARRAY, empty OBJECT, empty STRING)</code></i>

## `dev_dedup_index` (type: `string`):

💡 Index Name. <b>example:</b> <code>Main Index</code>

## `dev_dedup_key` (type: `string`):

💡 Attribute (Unique/Primary key). example: <code>zpid</code> or <code>item\_id</code>

## `dev_fileupload` (type: `string`):

💡 Upload your file and copy & paste the URL somewhere.

## Actor input object example

```json
{
  "limit": 5
}
```

# 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 = {
    "limit": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("jupri/truthsocial").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 = { "limit": 5 }

# Run the Actor and wait for it to finish
run = client.actor("jupri/truthsocial").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 '{
  "limit": 5
}' |
apify call jupri/truthsocial --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/v5s7HwrJlg8ZlnGNo/builds/xndYm7Qft7BiSa5jd/openapi.json
