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.
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
Use Cases
Real-time social media sentiment analysis
Trend monitoring and viral hashtag tracking
Influencer discovery and vetting
Competitive social media and content analysis
Brand mention tracking and PR monitoring
Academic research and dataset building
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
Click the 'Try for Free' button to access the Twitter Scraper on Apify.
- 2
Log in to your Apify account or create a new one for free.
- 3
Enter your target keywords, hashtags, or specific Twitter usernames.
- 4
Adjust the maximum items limit and date ranges if needed.
- 5
Click 'Start' and wait for the extraction to finish.
- 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?
Can I scrape all historical tweets of a user?
Does it support Twitter Advanced Search operators?
Do I need to log in to my Twitter account to use this?
Extracted Data Details
View on Apify Store
Related Tools
Facebook Pages Scraper
Extract Facebook Page data including about info, posts, follower counts, and engagement metrics. Ideal for social media research.
Facebook Posts Scraper
Extract posts, comments, reactions, and engagement data from public Facebook pages and profiles.
Instagram Comments Scraper
Extract comments from Instagram posts and reels. Get comment text, usernames, replies, and engagement data.
Need a Custom Solution?
Contact us for a bespoke scraper built to your exact requirements.
Hire an Expert