惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
月光博客
月光博客
T
Tailwind CSS Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
量子位
人人都是产品经理
人人都是产品经理
IT之家
IT之家
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
有赞技术团队
有赞技术团队
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园_首页
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - Franky
The Cloudflare Blog
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
大猫的无限游戏
大猫的无限游戏
S
SegmentFault 最新的问题
Jina AI
Jina AI
阮一峰的网络日志
阮一峰的网络日志
小众软件
小众软件
Last Week in AI
Last Week in AI

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Twitter/X Video Downloads in 2026: Tools, APIs, and What ...
James Mitchell · 2026-06-25 · via DEV Community

James Mitchell

Twitter/X has become one of the most video-heavy platforms on the internet, but downloading those videos — whether for archiving, offline viewing, or content analysis — remains surprisingly tricky. Between API changes, rate limits, and the platform's rebranding from Twitter to X, many older approaches have broken or grown more complicated.

Here's what actually works in 2026.

Why You'd Want This

As developers, we encounter this need in several contexts:

  • Content archiving: Save viral clips before accounts disappear or get suspended
  • Research and analysis: Video transcription pipelines, ML training data, or sentiment analysis
  • Audio extraction: Podcast production often requires stripping audio from short video clips
  • Offline viewing: Low-bandwidth environments, travel, or client demos without reliable internet

Web-Based Tools

The simplest approach for non-automated use. Several tools handle the video resolution negotiation for you:

  • Twitter Video Downloader — Clean interface, supports multiple qualities. The twitter to mp3 feature is particularly useful if you only need the audio track (handy for podcast research or any workflow where video isn't necessary).
  • yt-dlp hosted interfaces — Some hosted versions exist, though they vary in stability as Twitter/X periodically changes its video delivery infrastructure.
  • SaveTweetVid — One of the older tools; still functional but can be slow on high-resolution content.

Web tools are fine for one-off downloads but don't scale to bulk operations.

yt-dlp (Command Line)

For developers, yt-dlp is the practical standard:

yt-dlp https://x.com/username/status/1234567890

Key options:

# Best quality video
yt-dlp -f 'bestvideo+bestaudio' <url>

# Extract audio only as MP3
yt-dlp -x --audio-format mp3 <url>

# Include metadata JSON
yt-dlp --write-info-json <url>

As of mid-2026, yt-dlp still works reliably. Keep it updated — Twitter/X pushes infrastructure changes that occasionally break the extractor:

yt-dlp -U

For bulk operations, use --sleep-interval 2 --max-sleep-interval 5 to stay well within rate limits. Authenticated requests via --cookies-from-browser chrome help when you hit 429s, though this isn't a permanent fix.

Twitter/X API v2

The official route for production applications. The tradeoffs:

  • attachments.media_keys expansions in Tweets Lookup return media metadata (dimensions, duration, view counts) but not direct download URLs
  • Actual video download goes to Twitter's CDN via m3u8 manifests — not a formally documented API surface
  • Rate limits are aggressive even on paid tiers; bulk media downloads hit walls quickly

Best use case: extracting metadata programmatically and generating one-time download links for authenticated users. The byte transfer still happens outside the API.

Browser Extensions

For non-developer teammates or quick one-click saves, several browser extensions work. I'd be cautious about which ones you install: Twitter/X-specific extensions break without warning when the platform updates, and some have questionable data practices around browsing history.

For anything production or automated, the command-line or API approach is more reliable.

A Few Gotchas

  • Protected accounts: No tools bypass this — the account owner controls visibility, and that's enforced at the infrastructure level.
  • HLS streams: Twitter/X serves most video as adaptive HLS (m3u8). Tools that only handle MP4 direct links will miss many tweets. yt-dlp handles this correctly.
  • Quality selection: The "best" format varies — some clips top out at 720p even if they were originally higher resolution when uploaded.

What Are You Building?

Are you pulling Twitter/X clips as part of a data pipeline, or mostly archiving things manually? I'm particularly curious if anyone has built something on top of the v2 API that handles the CDN piece cleanly — it's an awkward gap in the official tooling.

Drop a comment with what you're working on.