Skip to content
Social Media

Twitter / X Video Download API

Download public Twitter / X video posts with one API call: MP4 video up to the best available quality, or just the audio as MP3, M4A or WAV. Title, channel, duration and thumbnail come with every response.

  • mp4
  • mp3
  • m4a
  • wav

What you get

  • MP4 video: best, 1080p, 720p, 480p, 360p
  • MP3 or M4A audio: best, 320 kbps or 128 kbps; WAV
  • Title, channel, duration and thumbnail
  • Billed per started minute, refunded on failure
  • Files kept 48 hours, behind signed links

Check a Twitter / X link

Free: read the title, channel and duration before you download, and see what it will cost. This is the real response for this link.

GET /api/v1/media
curl -G "https://videodownloadapi.com/api/v1/media" \
  --data-urlencode "url=https://x.com/SpaceX/status/1732824684683784516" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "title": "SpaceX - At dawn from the gateway to Mars, the launch of Starship’s second fli...",
  "channel": "SpaceX",
  "platform": "Twitter",
  "thumbnail": "https://…",
  "duration_seconds": 114,
  "minutes_required": 2
}

Start the download

The API answers right away with HTTP 202 and a download_id; the file is prepared in the background.

POST /api/v1/downloads
curl -X POST "https://videodownloadapi.com/api/v1/downloads" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://x.com/SpaceX/status/1732824684683784516", "format": "mp4"}'
202 Accepted
{
  "download_id": "162b76ab-833e-4720-b687-dac284d479aa",
  "title": "SpaceX - At dawn from the gateway to Mars, the launch of Starship’s second fli...",
  "platform": "Twitter",
  "duration_seconds": 114,
  "format": "mp4",
  "quality": "best",
  "status": "processing",
  "progress": 0,
  "minutes": 2,
  "expires_at": null
}

Get the file

Poll the download every few seconds. When the status is ready, the response includes the file link.

GET /api/v1/downloads/{download_id}
curl "https://videodownloadapi.com/api/v1/downloads/162b76ab-833e-4720-b687-dac284d479aa" \
  -H "Authorization: Bearer YOUR_API_KEY"
Ready response
{
  "download_id": "162b76ab-833e-4720-b687-dac284d479aa",
  "title": "SpaceX - At dawn from the gateway to Mars, the launch of Starship’s second fli...",
  "platform": "Twitter",
  "duration_seconds": 114,
  "format": "mp4",
  "quality": "best",
  "status": "ready",
  "progress": 100,
  "minutes": 2,
  "expires_at": "2026-11-04T10:30:46.678Z",
  "download_url": "https://videodownloadapi.com/api/downloads/162b76ab-833e-4720-b687-dac284d479aa?token=…"
}
status, progress

processing, then storing, then ready (or failed). progress goes from 0 to 100.

download_url

Signed link to the file, valid for 1 hour. Ask for the download again to get a fresh one while the file is kept (48 hours).

title, platform, duration_seconds

Read from the link before the download starts, with format and quality.

minutes

Downloads are billed per started minute of media: a 61-second video uses 2 minutes. Charged when the job starts, refunded automatically if it fails.

Why use our Twitter / X video download API

The same API for every platform, with predictable costs

Async jobs

Start a download, follow its progress, get a link: long videos never time out

Refunds on failure

Private, deleted or unreadable videos cost nothing: the minutes come back

Video or audio

MP4 up to the best available quality, or MP3, M4A and WAV audio

Related platforms

Start downloading Twitter / X videos today

Get your API key and start integrating our Twitter / X video download API into your application.