Twitter(X.com) Tweets Scraper
by codenest
Extract tweets, media, and data from X (Twitter) as structured JSON. Perfect for researchers, marketers, and developers needing reliable social media data.
Opens on Apify.com
About Twitter(X.com) Tweets Scraper
Need to pull tweets from X (formerly Twitter) for a project? This scraper is what I use. It grabs the full tweet data you actually need—text, images, videos, and audio—and delivers it in clean, structured JSON. No more messing with broken selectors or rate limits. It handles multiple media resolutions and stores everything securely in Apify's cloud, so your datasets are ready to analyze or integrate. I've found it indispensable for a few key jobs. Researchers can track conversations and trends over time. Marketers can monitor campaign performance and competitor activity directly from the platform. Content analysts can gather material for sentiment analysis or content curation. The output is reliable and consistent, which saves hours of manual work or dealing with an unstable API. If you're looking for a straightforward way to extract social media data from X.com without the headache, this actor works. You configure your search terms or profiles, run it, and get the data. It's that simple.
What does this actor do?
Twitter(X.com) Tweets 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 (X.com) Tweets Scraper
Overview
An Apify actor that scrapes tweets from Twitter (X.com), extracting media files and metadata. It downloads videos, images, and audio, storing them in Apify's Key-Value Store and returning structured data. Useful for archiving content, data analysis, or media collection.
Key Features
- Media Download: Fetches videos (multiple resolutions: 1280p, 852p, 568p), images, and separate audio tracks.
- Comprehensive Metadata: Returns tweet IDs, thumbnails, counts of media items, available resolutions, and format details.
- Batch Processing: Handles multiple tweet URLs in a single run.
- Structured Output: Provides organized JSON data with success/failure status and direct download URLs from Apify storage.
How to Use
- Provide a list of tweet URLs in the actor's input.
- Run the actor. It will scrape each tweet, download the media to Apify Key-Value Store, and generate a JSON report.
- Retrieve the output dataset, which contains metadata and temporary URLs to download the media files.
Input
Configure the actor using a JSON input. The key_value parameter must be set to true to enable media storage.
{
"key_value": true,
"post_urls": [
{ "url": "https://x.com/user/status/1234567890" },
{ "url": "https://x.com/another_user/status/0987654321" }
]
}
key_value(Boolean, Required): Enables Apify Key-Value Store for media storage.post_urls(Array, Required): List of objects, each containing aurlkey with a valid Twitter (X.com) tweet URL.
Output
The actor outputs an array of objects, one per processed tweet. Each object contains the status, original URL, metadata, and arrays of extracted videos, images, and audios with their storage URLs.
[
{
"success": true,
"tweet_url": "https://x.com/user/status/1234567890",
"metadata": {
"title": "Tweet text here",
"twitter_id": "1234567890",
"thumbnail": "https://pbs.twimg.com/.../image.jpg",
"video_count": 1,
"image_count": 0,
"audio_count": 1,
"available_resolutions": ["1280p", "852p"],
"available_formats": ["mp4"]
},
"videos": [
{
"format": "mp4",
"quality": "1280p",
"kv_store_url": "https://api.apify.com/v2/key-value-stores/.../video.mp4?token=..."
}
],
"images": [],
"audios": [
{
"format": "mp3",
"kv_store_url": "https://api.apify.com/v2/key-value-stores/.../audio.mp3?token=..."
}
]
}
]
Key Output Fields:
* success: Boolean indicating if the scrape was successful.
* tweet_url: The original URL processed.
* metadata: Contains the tweet ID, text, thumbnail URL, and counts of media items.
* videos / images / audios: Arrays of objects for each media type. Each object includes the file format and a kv_store_url—a temporary, authenticated URL to download the file from Apify's Key-Value Store.
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(X.com) Tweets Scraper now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- codenest
- Pricing
- Paid
- Total Runs
- 56
- Active Users
- 2
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