X.com / Twitter video downloader
by pocesar
Download X.com (formerly Twitter) videos in bulk
Opens on Apify.com
About X.com / Twitter video downloader
Download X.com (formerly Twitter) videos in bulk
What does this actor do?
X.com / Twitter video downloader 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 video downloader Download multiple videos from Twitter / X.com and save them to Apify key value store ## Supported URLs * https://twitter.com/username/status/... * https://x.com/username/status/... * https://twitter.com/i/status/... * https://x.com/i/status/... ## Custom data If you need to pass custom data to the output, set the userData object of the request in the startUrls array and it will be appended to the output json { "startUrls": [{ "url": "https://www.twitter.com/.../status/...", "userData": { "userid": "1454784661528485889" } }] } ## Integration Integrates with the https://apify.com/pocesar/merge-key-value-store-pieces to merge the output as one output for each chunks downloaded. Otherwise, check the way for doing this manually below. ## Output The generated output is the following: jsonc { "url": "https://x.com/apify/status/1454784661528485889", // original URL requested "hash": "83143134", // the internal hash of the video, never changes between requests "partsUrl": "https://api.apify.com/v2/key-value-stores/SOME_ID/records/83143134", // the URL to the Key Value store where the video parts are stored "userData": { "userid": "1454784661528485889" }, "#error": false // hidden field if there was an error } The video is chunked in parts of ~2MB each and saved to the Key Value store. To be able to download it, you'll need to download all the parts and concatenate them together. Here's a small example that can be used in the browser: js const { appendFileSync } = require('node:fs'); async function main(datasetId) { const items = await fetch(`https://api.apify.com/v2/datasets/${datasetId}/items?clean=true&format=json`).then((response) => response.json()); const firstVideo = items[0].partsUrl; // partsUrl contains the location to the Key Value store // get the parts from the Key value store const { parts, length, contentType } = await fetch(firstVideo).then((response) => response.json()); console.log({ parts, length, contentType }); // wait for all parts to be downloaded for (const url of parts) { // download part using fetch const downloaded = await fetch(url); // get an arrayBuffer from the chunk const arrayBuffer = new Uint8Array(await downloaded.arrayBuffer()); console.log(`Downloaded ${arrayBuffer.byteLength} bytes from ${url}`); // write downloaded chunk to file appendFileSync('video.mp4', arrayBuffer); } } main('YOUR_DATASET_ID');
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 X.com / Twitter video downloader now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- pocesar
- Pricing
- Paid
- Total Runs
- 1,311
- Active Users
- 84
Related Actors
Video Transcript Scraper: Youtube, X, Facebook, Tiktok, etc.
by invideoiq
Linkedin Profile Details Scraper + EMAIL (No Cookies Required)
by apimaestro
Twitter (X.com) Scraper Unlimited: No Limits
by apidojo
Content Checker
by jakubbalada
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