Download videos and GIFs from X/Twitter posts in the browser or via API. Single video, batch download, and quality selection. Use when users want to save or download Twitter/X videos.
Download videos and GIFs from X/Twitter posts — no API key needed.
| Goal | File | Navigate to |
|---|---|---|
| Download video from current tweet | src/videoDownloaderBrowser.js | Tweet page (x.com/user/status/ID) |
| Batch download multiple videos | src/videoDownloaderBrowser.js | Any page |
| Download video info only (no save) | src/videoDownloaderBrowser.js | Tweet page |
| Download via script (non-browser) | scripts/videoDownloader.js | N/A (run in console) |
| Download via API | api/routes/video.js | POST /api/video/download |
x.com/user/status/123456src/videoDownloaderBrowser.js → EnterAfter pasting src/videoDownloaderBrowser.js:
downloadCurrent() // Download video from current tweet page
downloadFromUrl('https://x.com/..') // Navigate to tweet URL and download
downloadGif() // Download GIF (GIFs are MP4 on X)
batchDownload(['url1', 'url2', ..]) // Download videos from multiple tweet URLs
getVideoInfo() // Show video metadata without downloading
const CONFIG = {
QUALITY: 'highest', // 'highest', 'lowest', 'all'
AUTO_DOWNLOAD: true, // Auto-trigger browser download
SHOW_ALL_QUALITIES: true // Show all available quality options
};
| Setting | Behavior |
|---|---|
'highest' | Downloads best resolution (default) |
'lowest' | Downloads smallest file size |
'all' | Shows all available bitrates to choose from |
getVideoInfo() shows tweet ID, author, and all available video URLs before committing to a download