Twitter Profile Scraper
by crawlerbros
Scrape Twitter profiles & tweets reliably, capturing all engagement metrics and media with anti-detection features. Perfect for research, analysis, and data projects.
Opens on Apify.com
About Twitter Profile Scraper
Need to pull data from Twitter profiles without getting blocked? This Twitter Profile Scraper is what I use. It handles the tricky parts, like Twitter's anti-bot measures, so you can focus on getting the data you need. You can scrape a full profile's details—bio, follower counts, that sort of thing—and then go deeper to extract their tweets. It captures everything: all the engagement numbers for likes, retweets, replies, quotes, bookmarks, and even views. It also pulls out any media URLs, hashtags, and user mentions from the tweets themselves. The key is that it works with authenticated sessions, which is pretty much essential for reliable scraping these days, and it has built-in features to avoid detection. I've used it for building datasets for brand analysis, checking out competitor social strategies, or gathering public tweets for research projects. It just delivers the structured data, ready for your analysis in a spreadsheet or database, without the headache of trying to build and maintain your own fragile scraper.
What does this actor do?
Twitter Profile Scraper is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.
Key Features
- Cloud-based execution - no local setup required
- Scalable infrastructure for large-scale operations
- API access for integration with your applications
- Built-in proxy rotation and anti-blocking measures
- Scheduled runs and webhooks for automation
How to Use
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
Twitter Profile Scraper
An Apify Actor for scraping data from Twitter/X profiles. It extracts comprehensive profile details and tweets, including engagement metrics, media, and metadata. Authentication is required to access recent chronological tweets.
Overview
This actor scrapes public Twitter profiles. Without providing authentication cookies, the results will be limited to older "Highlight" tweets. With valid cookies, it scrapes the profile's recent chronological timeline.
Key Features
- Profile Data: Extracts username, display name, bio, location, website, join date, verification status, follower/following counts, and profile/banner image URLs.
- Complete Tweet Data: Captures full text, ID, URL, timestamp, and type (regular, reply, retweet).
- Engagement Metrics: Gets likes, retweets, replies, quotes, bookmarks, views, and total engagement counts.
- Media & Context: Extracts media URLs, external links, hashtags, mentions, and reply/retweet context.
- Authentication Support: Uses provided cookies to access recent tweets and private/protected profiles.
- Stealth & Reliability: Includes human-like behavior simulation (random delays, scrolling), rate limit protection, and block detection.
- Filtering: Options to include or exclude replies and retweets.
- Multi-Profile: Scrape multiple usernames in a single run.
How to Use
Authentication Requirement
To scrape recent tweets, you must provide Twitter authentication cookies in the cookies input field. Without cookies, only older "Highlight" tweets are available.
Input Parameters
Required:
* usernames (array): List of Twitter handles to scrape, without the "@". Example: ["elonmusk", "openai"]
Key Optional Parameters:
* maxTweets (integer): Max tweets per profile (1-500). Default: 50.
* includeReplies (boolean): Include reply tweets. Default: false.
* includeRetweets (boolean): Include retweets. Default: true.
* cookies (string): Twitter authentication cookies in JSON format.
* sessionName (string): Name for persisting cookies between runs. Default: "default_session".
* minDelayBetweenRequests / maxDelayBetweenRequests (integer): Range for random delays between actions (in seconds) to mimic human behavior.
* humanizeBehavior (boolean): Enable human-like interactions. Default: true.
Input/Output
Input Example
{
"usernames": ["github"],
"maxTweets": 100,
"includeReplies": false,
"cookies": "[{\"name\":\"auth_token\",\"value\":\"abc123...\"}]"
}
Output Format
The actor outputs a JSON object for each profile. The structure includes profile metadata and an array of posts.
{
"username": "github",
"display_name": "GitHub",
"bio": "The world’s leading AI-powered developer platform.",
"location": "San Francisco, CA",
"website": "https://github.com",
"joined_date": "Joined January 2008",
"followers_count": 3500000,
"following_count": 152,
"verified": true,
"profile_image_url": "https://pbs.twimg.com/...",
"scraped_at": "2024-01-15T12:00:00.000Z",
"posts": [
{
"tweet_id": "1234567890",
"tweet_url": "https://twitter.com/github/status/1234567890",
"text": "Tweet content here",
"author_username": "github",
"timestamp": "2024-01-15T10:30:00.000Z",
"likes_count": 15000,
"retweets_count": 3000,
"replies_count": 450,
"views_count": 250000,
"media_urls": ["https://pbs.twimg.com/media/..."]
}
]
}
Categories
Common Use Cases
Market Research
Gather competitive intelligence and market data
Lead Generation
Extract contact information for sales outreach
Price Monitoring
Track competitor pricing and product changes
Content Aggregation
Collect and organize content from multiple sources
Ready to Get Started?
Try Twitter Profile Scraper now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- crawlerbros
- Pricing
- Paid
- Total Runs
- 71
- Active Users
- 22
Related Actors
🏯 Tweet Scraper V2 - X / Twitter Scraper
by apidojo
Instagram Scraper
by apify
TikTok Scraper
by clockworks
Instagram Profile Scraper
by apify
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support