X (Twitter) Video & Image Downloader - Direct Media URLs avatar

X (Twitter) Video & Image Downloader - Direct Media URLs

Pricing

from $2.00 / 1,000 media item returneds

Go to Apify Store
X (Twitter) Video & Image Downloader - Direct Media URLs

X (Twitter) Video & Image Downloader - Direct Media URLs

Download videos, GIFs and images from X (Twitter) posts or any account's timeline - direct MP4 and full-resolution image URLs with size, bitrate and duration, optionally saved as files.

Pricing

from $2.00 / 1,000 media item returneds

Rating

0.0

(0)

Developer

Andrew

Andrew

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Categories

Share

Download videos, GIFs and photos from any public X (Twitter) post - or scan an account's timeline and grab every piece of media it has posted. You get the direct, best-quality MP4 URL and the full-resolution image link for every item, plus every lower-quality variant, size, bitrate and duration. Optionally save the files straight into your run's storage. No login, no cookies, no browser extension.

Paste post URLs or account handles, run, and export the links to JSON, CSV or Google Sheets - or download the saved files with one click.

What you get

One row per photo, video or GIF:

  • mediaType (video, photo, animated_gif), mediaUrl - the highest-bitrate MP4 or the original full-resolution image
  • width, height, durationMs, bitrate, contentType, thumbnailUrl, altText
  • variants - every available rendition (720p, 480p, 360p, HLS playlist...) with URL, bitrate and resolution
  • tweetId, tweetUrl, text, createdAt, authorUsername, authorName
  • likeCount, retweetCount, replyCount, viewCount, isRetweet
  • mediaIndex / mediaCount for posts with several attachments
  • With Save files to storage on: fileKey, fileUrl (a direct download link) and fileSizeBytes

Use cases

  • Save videos and images from posts you want to keep, archive or repost with credit
  • Brand asset archiving - back up every video and photo your own account has published
  • Competitor and creator research - pull all media an account posted and review it offline
  • Content pipelines - feed direct MP4 links into transcription, moderation or editing tools
  • UGC and press monitoring - collect images attached to posts about your brand
  • Dataset building - gather labelled images and clips at scale

How to use

  1. Paste one or more Post URLs (https://x.com/user/status/123), and/or enter Account usernames to scan their timelines.
  2. For accounts, set Posts to scan per account (default 100). Only posts containing media are returned.
  3. Choose the Media types you want - videos, photos, GIFs - and whether to include reposted media.
  4. Turn on Save files to storage if you want the actual files, not just links. Set a Max file size to skip very large videos.
  5. Run the actor. Links appear in the Dataset tab; saved files appear in the Key-value store tab, named <tweetId>_<index>.<ext>.

Output format

Each dataset record:

{
"tweetId": "2095890073031966734",
"tweetUrl": "https://x.com/NASA/status/2095890073031966734",
"authorUsername": "NASA",
"authorName": "NASA",
"text": "Watch the X-59 take to the skies...",
"createdAt": "2026-09-01T18:02:11.000Z",
"likeCount": 4120,
"retweetCount": 610,
"replyCount": 88,
"viewCount": 512300,
"isRetweet": false,
"mediaIndex": 1,
"mediaCount": 1,
"mediaType": "video",
"mediaUrl": "https://video.twimg.com/amplify_video/2095889698845556737/vid/avc1/1920x1080/abc.mp4?tag=29",
"contentType": "video/mp4",
"width": 1920,
"height": 1080,
"durationMs": 15548,
"bitrate": 10368000,
"thumbnailUrl": "https://pbs.twimg.com/amplify_video_thumb/2095889698845556737/img/sEj5r-0XHSoFNKo_.jpg",
"altText": null,
"variants": [
{ "url": "https://video.twimg.com/.../1920x1080/abc.mp4?tag=29", "bitrate": 10368000, "contentType": "video/mp4", "resolution": "1920x1080" },
{ "url": "https://video.twimg.com/.../1280x720/def.mp4?tag=29", "bitrate": 2176000, "contentType": "video/mp4", "resolution": "1280x720" },
{ "url": "https://video.twimg.com/.../pl/xyz.m3u8?tag=29", "bitrate": null, "contentType": "application/x-mpegURL", "resolution": null }
],
"fileKey": "2095890073031966734_1.mp4",
"fileUrl": "https://api.apify.com/v2/key-value-stores/abc123/records/2095890073031966734_1.mp4",
"fileSizeBytes": 5673011,
"source": "tweet"
}

Photos come back as https://pbs.twimg.com/media/<id>?format=jpg&name=orig - the original upload resolution.

Pricing

Two small events: one per post looked up or scanned, and one per media item returned. Saving files uses your run's storage and data transfer at standard platform rates.

Tips

  • The direct mediaUrl links work in any browser, curl, ffmpeg or download manager - you usually do not need to save files.
  • Videos over 4K can be large; use Max file size to skip them, or pick the 720p entry from variants.
  • Set Posts to scan per account high (up to 3,200) to pull an account's whole visible media history.

FAQ

Does it work on protected or age-restricted accounts? Only public posts are available. Media on protected accounts cannot be fetched.

Can I download Spaces or live broadcasts? No. This actor handles video, GIF and photo attachments on regular posts.

Why is a GIF returned as a video? X stores animated GIFs as silent MP4 files. They are labelled animated_gif with an MP4 URL.