X.com / Twitter video downloader

X.com / Twitter video downloader

by pocesar

Download X.com (formerly Twitter) videos in bulk

1,311 runs
84 users
Try This Actor

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

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. 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');

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 Trial

Actor Information

Developer
pocesar
Pricing
Paid
Total Runs
1,311
Active Users
84
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support