Truth Social Scraper avatar

Truth Social Scraper

Try for free

Pay $5.00 for 1,000 truths

Go to Store
Truth Social Scraper

Truth Social Scraper

muhammetakkurtt/truth-social-scraper
Try for free

Pay $5.00 for 1,000 truths

Truth Social Scraper efficiently extract posts from Truth Social profiles. Collect account details, post content, engagement metrics, and media URLs. Ideal for researchers, marketers, and analysts tracking social media trends. Customizable depth and profile selection. Data saved to Apify dataset.

Truth Social Scraper

Truth Social Scraper

This Apify actor is designed to scrape posts (truths) from Truth Social profiles.

Features

  • Scrape posts from a specific Truth Social profile
  • Collects the following information:
    • Post ID and content
    • Creation date
    • Account details (username, display name, avatar, etc.)
    • Interaction counts (replies, retruth, likes)
    • Media attachments (images, videos)
    • Reply and quote information
    • Tags and mentions
    • Visibility and language settings
  • Cleans and formats HTML content
  • Can continue from last fetched post ID
  • Can fetch only replies or media posts
  • Can fetch backwards from a specific post ID

Usage

Basic Settings

  • username: Truth Social username (e.g.: realDonaldTrump)
    • Plain username
    • Username starting with @
    • Profile URL format
  • maxPosts: Maximum number of posts to fetch (default: 20)
  • useLastPostId: Continue from last run's post ID (default: false)
  • onlyReplies: Only fetch replies (default: false)
  • onlyMedia: Only fetch posts with media (default: false)
  • cleanContent: Clean and format content (default: true)

Advanced Settings

  • startFromId: Start fetching backwards from a specific post ID
    • Requires 18-digit post ID
    • Cannot be used with useLastPostId

Example Input

1{
2  "cleanContent": true,
3  "onlyMedia": false,
4  "onlyReplies": false,
5  "useLastPostId": false,
6  "username": "realDonaldTrump",
7  "maxPosts": 20
8}

Output Format

The scraped posts are saved to the Apify dataset. Each post contains the following data:

Post Information

  • id: Unique identifier of the post
  • created_at: Creation timestamp of the post
  • content: Main text content of the post
  • visibility: Privacy setting of the post (public, private, etc.)
  • language: Language code of the post content
  • uri: Internal reference URI
  • url: Public URL of the post
  • sensitive: Flag indicating sensitive content
  • spoiler_text: Warning text for sensitive content

Account Details

  • account.id: Unique identifier of the account
  • account.username: Username without @ symbol
  • account.acct: Full account identifier
  • account.display_name: Display name of the account
  • account.locked: Whether the account is locked
  • account.bot: Whether the account is a bot
  • account.discoverable: Whether the account is discoverable
  • account.group: Whether the account is a group account
  • account.created_at: Account creation date
  • account.note: Account biography/description
  • account.url: Profile URL
  • account.avatar: URL to profile picture
  • account.avatar_static: Static version of avatar
  • account.header: Header/banner image URL
  • account.header_static: Static version of header image
  • account.followers_count: Number of followers
  • account.following_count: Number of accounts being followed
  • account.statuses_count: Total number of posts
  • account.last_status_at: Date of last post
  • account.verified: Verification status of the account
  • account.location: Account location
  • account.website: Account website URL
  • account.unauth_visibility: Visibility without authentication
  • account.chats_onboarded: Whether chats feature is enabled
  • account.feeds_onboarded: Whether feeds feature is enabled
  • account.accepting_messages: Whether account accepts messages
  • account.show_nonmember_group_statuses: Group post visibility setting
  • account.emojis: Custom emojis used by account
  • account.fields: Additional profile fields
  • account.tv_onboarded: Whether TV feature is enabled
  • account.tv_account: Whether account is a TV account

Interaction Data

  • replies_count: Number of replies to the post
  • reblogs_count: Number of retruths
  • favourites_count: Number of likes
  • favourited: Whether the post is liked by the authenticated user
  • reblogged: Whether the post is retruthed by the authenticated user
  • bookmarked: Whether the post is bookmarked
  • pinned: Whether the post is pinned to profile
  • in_reply_to_id: ID of the post being replied to
  • in_reply_to_account_id: ID of the account being replied to
  • quote_id: ID of the quoted post
  • media_attachments: Array of media files (images, videos)
  • mentions: Array of mentioned accounts
  • tags: Array of hashtags used
  • emojis: Array of custom emojis used
  • card: Preview card for links
  • poll: Poll information if present

Retruth & Quote Information

  • reblog: Full data of retruthed content
  • quote: Full data of quoted content
  • in_reply_to: Full data of parent post if reply

Additional Flags

  • sponsored: Whether the post is sponsored content
  • muted: Whether the post's notifications are muted
  • group: Group information if posted in a group

Example Output

1{
2        "id": "113847449027767807",
3        "created_at": "2025-01-18T04:23:30.018Z",
4        "in_reply_to_id": null,
5        "quote_id": null,
6        "in_reply_to_account_id": null,
7        "sensitive": false,
8        "spoiler_text": "",
9        "visibility": "public",
10        "language": "en",
11        "uri": "https://truthsocial.com/@realDonaldTrump/113847449027767807",
12        "url": "https://truthsocial.com/@realDonaldTrump/113847449027767807",
13        "content": "Coming up, THE MOST IMPORTANT WEEKEND, PLUS, IN AMERICAN HISTORY. ENJOY! DJT",
14        "account": {
15            "id": "107780257626128497",
16            "username": "realDonaldTrump",
17            "acct": "realDonaldTrump",
18            "display_name": "Donald J. Trump",
19            "locked": false,
20            "bot": false,
21            "discoverable": false,
22            "group": false,
23            "created_at": "2022-02-11T16:16:57.705Z",
24            "note": "<p></p>",
25            "url": "https://truthsocial.com/@realDonaldTrump",
26            "avatar": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/accounts/avatars/107/780/257/626/128/497/original/454286ac07a6f6e6.jpeg",
27            "avatar_static": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/accounts/avatars/107/780/257/626/128/497/original/454286ac07a6f6e6.jpeg",
28            "header": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/accounts/headers/107/780/257/626/128/497/original/ba3b910ba387bf4e.jpeg",
29            "header_static": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/accounts/headers/107/780/257/626/128/497/original/ba3b910ba387bf4e.jpeg",
30            "followers_count": 8541456,
31            "following_count": 71,
32            "statuses_count": 24750,
33            "last_status_at": "2025-01-18",
34            "verified": true,
35            "location": "",
36            "website": "www.DonaldJTrump.com",
37            "unauth_visibility": true,
38            "chats_onboarded": true,
39            "feeds_onboarded": true,
40            "accepting_messages": false,
41            "show_nonmember_group_statuses": null,
42            "emojis": [],
43            "fields": [],
44            "tv_onboarded": false,
45            "tv_account": false
46        },
47        "media_attachments": [],
48        "mentions": [],
49        "tags": [],
50        "card": null,
51        "group": null,
52        "quote": null,
53        "in_reply_to": null,
54        "reblog": null,
55        "sponsored": false,
56        "replies_count": 2435,
57        "reblogs_count": 5407,
58        "favourites_count": 22713,
59        "favourited": false,
60        "reblogged": false,
61        "muted": false,
62        "pinned": false,
63        "bookmarked": false,
64        "poll": null,
65        "emojis": []
66}

This example output shows the structure of a single truth. The actual output will be a list of similar objects for all scraped truths.

Notes

  • The collected data is stored in Apify’s default data store.
Developer
Maintained by Community

Actor Metrics

  • 13 monthly users

  • 3 stars

  • 96% runs succeeded

  • Created in Oct 2024

  • Modified 3 hours ago