Truth Social Scraper avatar

Truth Social Scraper

Pricing

from $3.99 / 1,000 results

Go to Apify Store
Truth Social Scraper

Truth Social Scraper

Pricing

from $3.99 / 1,000 results

Rating

0.0

(0)

Developer

ScrapeFlow

ScrapeFlow

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 hours ago

Last modified

Share

Truth Social Scraper (Apify Actor)

Scrapes public Truth Social data via the same Mastodon-compatible API as the standalone truth.py script: account lookup, single statuses, and paginated timelines.

Behavior

  • Output: Full status objects (JSON) pushed to the Apify dataset — same shape as Truth Social API responses.
  • Runtime: Uses apify-client only for INPUT, dataset rows, and KV state via Actor environment variables (APIFY_TOKEN, ACTOR_DEFAULT_DATASET_ID, ACTOR_DEFAULT_KEY_VALUE_STORE_ID). This avoids the full apify Python SDK and its crawlee dependency chain (fewer install conflicts). HTTP uses curl-cffi with Chrome 131 impersonation, same idea as truth.py (Apify’s curl overview); impit is an alternative if you ever swap the HTTP layer.
  • Proxy: Tries direct first; on block → Apify datacenter (SHADER)Apify residential with up to 3 residential retries, then locks residential for the rest of the run. Fallback proxy URLs use APIFY_PROXY_PASSWORD on the Apify platform.
  • State: Optional incremental mode (useLastPostId) stores last_post_id_by_username in the default key-value store under truth_scraper_state.

Input

FieldDescription
truthSocialUsernameProfile handle to scrape (default example: realDonaldTrump).
maxPostsTimeline cap per profile (integer ≥ 5, default 20).
continueFromLastPostIdOnly posts newer than the last saved post ID for that username (KV store).
onlyFetchRepliesTimeline: replies only (exclude_replies=false).
onlyFetchPostsWithMediaOnly statuses with media.
cleanContentStrip HTML from content (default true).
startFromPostIdAdvanced: 18-digit post ID — older than this (exclusive); not with continueFromLastPostId.
fetchSinglePostByIdOrUrlAdvanced: list of post URLs/IDs; when set, only those posts are fetched.
proxyConfigurationApify proxy (fallback tiers; direct is tried first).

Legacy keys still work: urls, singlePostId, useLastPostId, startFromId, onlyReplies, onlyMedia, username.

Use fetchSinglePostByIdOrUrl for single-post mode, or set truthSocialUsername (and optionally urls) for timelines.

Local run

cd Truth-Social-Scraper
pip install -r requirements.txt
apify run

Configure the actor in the Apify Console (or pass JSON input when running locally with the Apify CLI).

Collect only from publicly available content. You are responsible for compliance with applicable laws and platform terms.