VOOZH about

URL: https://apify.com/social_developer/apify-x-profile-period-scraper-actor

⇱ Apify X Profile Period Scraper Actor Β· Apify


πŸ‘ Apify X Profile Period Scraper Actor avatar

Apify X Profile Period Scraper Actor

Pricing

from $0.00005 / actor start

Go to Apify Store

Pricing

from $0.00005 / actor start

Rating

0.0

(0)

Developer

πŸ‘ Rishab

Rishab

Maintained by Community

Actor stats

0

Bookmarked

15

Total users

2

Monthly active users

4 months ago

Last modified

Categories

Share

X Profile Period Scraper Actor

A production-focused Apify Actor that scrapes posts from X (Twitter) profile URLs for a specific date range, with strict ownership validation and scalable multi-profile support.

Why this actor exists

Most profile scrapers fail in at least one of these areas:

  • weak input validation
  • cross-profile leakage in results
  • slow collection for larger date windows
  • unstable links that can redirect unexpectedly

This actor is built to solve those problems cleanly.

Core capabilities

  • Scrape one profile or many profiles in one run
  • Enforce strict date filtering in UTC (fromDate to toDate)
  • Validate profile ownership before storing a post
  • Add canonical redirect-safe link per post: https://x.com/i/status/<id>
  • Capture rich post metadata (author, metrics, media, entities)
  • Include media-derived thumbnail in JSON output
  • Run profiles concurrently for high throughput

Input

Required:

  • fromDate (YYYY-MM-DD)
  • toDate (YYYY-MM-DD)
  • and at least one of:
    • profileUrl
    • profileUrls[]

Optional:

  • profileConcurrency (default 3)
  • maxPosts (per profile, 0 = unlimited)
  • maxScrolls
  • scrollDelayMs
  • proxyConfiguration

Example:

{
"profileUrls":["https://x.com/narendramodi","https://x.com/jack"],
"fromDate":"2026-01-01",
"toDate":"2026-02-01",
"profileConcurrency":2,
"maxPosts":0,
"maxScrolls":300,
"scrollDelayMs":1000
}

Output (per post)

Each dataset item includes:

  • identity: id, postUrl, redirectLink, createdAt
  • content: text, lang, source, thumbnail
  • author: author.id, author.username, etc.
  • metrics: replies, reposts, likes, quotes, bookmarks, views
  • entities: hashtags, mentions, links, media
  • ownership tracing: requestedProfileUsername, requestedProfileUserId, requestedProfileUrl

A run summary is written to Key-Value Store as OUTPUT.

Ownership safety model

This actor prevents false positives from URL-like username collisions:

  • It resolves requested profile identity from X GraphQL responses
  • It validates each post against the requested profile identity
  • It drops mismatched records automatically
  • It emits canonical redirectLink (x.com/i/status/<id>) so link resolution is stable

Performance strategy

  • Captures data from GraphQL timeline responses (not DOM-only scraping)
  • Blocks heavy resources (image, media, font) while crawling
  • Uses adaptive stop conditions to avoid premature cutoffs
  • Supports parallel profile scraping through profileConcurrency

Local run

npminstall
APIFY_LOCAL_STORAGE_DIR=./storage node src/main.js

Deploy to Apify

npm i -g apify-cli
apify login
apify push

Repository layout

  • src/main.js - crawler and extraction logic
  • INPUT_SCHEMA.json - Apify input schema
  • .actor/actor.json - actor metadata
  • package.json - runtime dependencies

Notes

  • Date filtering is UTC-based:
    • fromDate starts at 00:00:00.000Z
    • toDate ends at 23:59:59.999Z
  • Private/protected X profiles cannot be scraped publicly.

You might also like

X Profile Scraper

devwithbobby/x-profile-scraper

X Profile scraper

πŸ‘ User avatar

Dev with Bobby

4

X (Twitter) Profile Scraper

alvaraaz/x-profile-scraper

X Profile Scraper automates extraction of X (Twitter) profiles, posts, likes, retweets, and engagement metrics. Ideal for social media analytics, competitor research, brand monitoring and marketing.

πŸ‘ User avatar

Jose Fernando Álvarez Romero

60

Twitter/X Profile Keyword Scraper

lead.gen.labs/twitter-x-profile-keyword-scraper

Extract keyword-matched Tweets from any Twitter/X profile.

18

Twitter / X Scraper

rupom888/twitter-scraper

Twitter Profile Scraper

hamdo/twitter-profile-scraper

Twitter/X Profile Scraper A fast and reliable Actor designed to fetch essential Twitter/X profile information with minimal input. Simply provide a list of usernames (without the @), and the Actor will automatically collect key profile details with high accuracy.

πŸ‘ User avatar

Mahmoud Alhamdo

15