Twitter/X Scraper icon

Twitter/X Scraper

Extract tweets, user profiles, followers, and engagement metrics from Twitter/X for social media analysis.

As an Apify affiliate, we may earn a commission from qualifying purchases made through our links, at no extra cost to you. We only recommend tools we believe in.

EXCEL CSV JSON XML HTML RSS JSONL

Try It Out

Experience the power of this scraper for free.

Run Scraper Now
apify-console
~ apify call twitter-scraper
Loading actor configuration...
Running on Apify cloud...
Run succeeded!
Fetched items: 1,245
Exporting to: CSV Excel

Overview

The Twitter/X Scraper by Apidojo is an advanced data extraction tool that completely bypasses the restrictive and expensive official Twitter API. It allows researchers, marketers, and brands to conduct comprehensive social listening by scraping tweets, retweets, replies, user profiles, and granular engagement statistics. Whether you need to monitor brand mentions in real-time, track the viral spread of specific hashtags, or analyze competitor social media strategies, this scraper delivers high-quality JSON or CSV data. It natively supports advanced Twitter search operators (like `from:`, `since:`, `until:`, `min_faves:`), giving you pinpoint accuracy in your data collection without logging in.

Key Features

Scrape tweets by keyword, hashtag, or advanced search query
Extract comprehensive user profile information and bios
Download highly accurate engagement metrics (likes, retweets, replies, quotes)
Extract media URLs (images, videos, GIFs) embedded in tweets
Filter dynamically by date range, language, and minimum engagement
Scrape entire conversation threads and reply chains
No Twitter account login required (avoids bans)
Bypasses recent Twitter/X read-limit restrictions

Use Cases

1

Real-time social media sentiment analysis

2

Trend monitoring and viral hashtag tracking

3

Influencer discovery and vetting

4

Competitive social media and content analysis

5

Brand mention tracking and PR monitoring

6

Academic research and dataset building

7

Financial sentiment analysis (crypto/stocks)

Input Parameters

Parameter Type Required Description
searchTerms Array Optional Keywords, hashtags, or advanced queries (e.g., 'Tesla min_faves:1000')
twitterHandles Array Optional Specific user profiles to scrape tweets from
maxItems Number Optional Maximum number of tweets per run
sort String Optional Sort order: 'Latest', 'Top', or 'Media'
start_date / end_date String Optional Filter results by strict date ranges (YYYY-MM-DD)

Sample Output

{
  "type": "tweet",
  "id": "175000123456789",
  "url": "https://twitter.com/elonmusk/status/175000123456789",
  "twitterUrl": "https://twitter.com/elonmusk/status/175000123456789",
  "text": "Excited to announce the new update! 🚀",
  "retweetCount": 12500,
  "replyCount": 3420,
  "likeCount": 85000,
  "quoteCount": 1100,
  "createdAt": "Thu Jan 25 10:30:00 +0000 2026",
  "lang": "en",
  "bookmarkCount": 4500,
  "author": {
    "type": "user",
    "userName": "elonmusk",
    "url": "https://twitter.com/elonmusk",
    "name": "Elon Musk",
    "followers": 165000000
  }
}

How to Use

  1. 1

    Click the 'Try for Free' button to access the Twitter Scraper on Apify.

  2. 2

    Log in to your Apify account or create a new one for free.

  3. 3

    Enter your target keywords, hashtags, or specific Twitter usernames.

  4. 4

    Adjust the maximum items limit and date ranges if needed.

  5. 5

    Click 'Start' and wait for the extraction to finish.

  6. 6

    Navigate to the 'Storage' tab to download your tweets in JSON, CSV, or Excel.

API Example

import { ApifyClient } from 'apify-client';

const client = new ApifyClient({
    token: 'YOUR_API_TOKEN',
});

const input = {
    "searchTerms": [
        "#AI min_faves:500"
    ],
    "sort": "Top",
    "maxItems": 200
};

const run = await client.actor("apidojo/tweet-scraper").call(input);

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Pricing Structure

Pay for usage. Extremely cost-effective at roughly $2.00 per 1,000 tweets extracted. With the $5 free monthly credit, you can comfortably scrape over 2,000 tweets per month for free.

Limitations

  • Twitter/X continuously updates its anti-bot systems; occasionally the scraper might require updates from the developer.
  • Extracting historical tweets older than 6-12 months can be slower or yield fewer results depending on Twitter's indexing.
  • Does not extract data from private/locked accounts.

Frequently Asked Questions

Is this better than the official Twitter API?
For most researchers and marketers, yes. The official X API is extremely expensive (starting at $100/month for basic access) and heavily rate-limited. This scraper provides the same data at a fraction of the cost without API key limitations.
Can I scrape all historical tweets of a user?
Yes, you can input a specific user handle and set the limit high enough to extract their timeline. However, Twitter natively limits visibility of extremely old tweets, so getting a complete history of an account with 100,000+ tweets may not be possible.
Does it support Twitter Advanced Search operators?
Yes! You can use any operator that works in the regular Twitter search bar, such as `from:username`, `since:2025-01-01`, `min_retweets:50`, or exact phrase matching.
Do I need to log in to my Twitter account to use this?
No. The scraper runs anonymously using Apify's proxies, meaning your personal Twitter account is never linked or at risk of being blocked.

Extracted Data Details

Tweet Full Text User Handle (@username) & Display Name Retweet, Reply, Quote, & Like Counts Date & Time Posted (Timestamp) Media URLs (Images/Videos) Tweet URL / Link Conversation ID Language Source App (Web, iPhone, Android) User Bio & Follower Count

Pricing Structure Freemium
Category Social Media
Last Verified Mar 2026

View on Apify Store

Need a Custom Solution?

Contact us for a bespoke scraper built to your exact requirements.

Hire an Expert
Twitter/X Scraper

Twitter/X Scraper

Ready to extract data from {name}

Run for Free