# Twitter / X Video Downloader (`neuro-scraper/twitter-x-video-downloader`) Actor

Twitter / X Video Downloader downloads public X (Twitter) videos and GIFs as MP4 from post links, profiles or keywords: every quality with bitrate and resolution, duration, thumbnail, alt text, post text, author and engagement.

- **URL**: https://apify.com/neuro-scraper/twitter-x-video-downloader.md
- **Developed by:** [Neuro Scraper](https://apify.com/neuro-scraper) (community)
- **Categories:** Social media, Videos
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.19 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### Twitter / X Video Downloader

**Twitter / X Video Downloader** downloads public X (Twitter) videos and GIFs as MP4 from post links, profiles or keywords, with every quality (bitrate and resolution), duration, thumbnail, alt text, post text, author and engagement.

> Also popular: the [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper) - reels, captions, plays and authors from Facebook in one run.

Twitter / X Video Downloader runs in the cloud on Apify. You give it your input, Twitter / X Video Downloader collects the data and you download a clean dataset as JSON, CSV, Excel or HTML, or read it through the Apify API.

#### What does Twitter / X Video Downloader do?

Twitter / X Video Downloader turns public X (Twitter) data into structured rows. Each row is one video, with the same fields in the same order, so the output of Twitter / X Video Downloader drops straight into a spreadsheet, a database or a Python script.

- MP4 of every video and GIF in a post, stored in your Apify storage
- Highest, medium or lowest quality, or every quality listed
- Duration, resolution, bitrate, thumbnail and alt text
- Post text, author, likes, reposts, replies and views
- Post links, profiles and keywords as input

#### Why use Twitter / X Video Downloader?

Copying X (Twitter) data by hand is slow and error-prone. Twitter / X Video Downloader does it for many inputs at once, keeps the numbers as numbers and the dates in ISO-8601 UTC, and records which input produced each row.

Twitter / X Video Downloader needs no X (Twitter) account, no login, no cookies and no API key. You do not share any password with Twitter / X Video Downloader, and nothing is posted or changed on X (Twitter): Twitter / X Video Downloader only reads public data.

#### Who uses Twitter / X Video Downloader?

- Social media managers archiving campaigns
- Researchers collecting video datasets
- Editors saving clips with their source
- AI teams preparing video for transcription

### How to use Twitter / X Video Downloader

1. Open Twitter / X Video Downloader in Apify Console and click **Try for free**.
2. Fill in the input form (every option is explained below). The prefilled example runs as it is.
3. Click **Start**. Twitter / X Video Downloader logs every step, so you can follow the progress in the Log tab.
4. When Twitter / X Video Downloader finishes, open the **Output** tab and export the dataset as JSON, CSV, Excel or HTML.
5. Optional: schedule Twitter / X Video Downloader, call it from the Apify API or connect it to Make, Zapier, n8n or Google Sheets.

**Required:** one of `startUrls`, `tweetUrls`, `twitterHandles` or `searchTerms`.

**What the log tells you:** a line per account with how many video posts its newest posts hold, a line per search term, a warning for every post that could not be read, and the final status message with the number of videos.

#### Input of Twitter / X Video Downloader

Give at least one of `startUrls`, `tweetUrls`, `twitterHandles` or `searchTerms`. Every other option has a safe default. Each option below says what it does, how the Twitter / X Video Downloader uses it, the allowed values, an example and how it combines with the other options.

##### `startUrls` - Post URLs

**What it does:** X post links (https://x.com/NASA/status/...), post ids or profile links, one per line.

**How it works:** Each post link (or post id) is opened and every video and GIF in it gives one row; a post without video gives a row with status "no video". Profile links here work like `twitterHandles`.

**Allowed values and default:** a list of text values, one per line in the form; empty by default.

**Example:** `"startUrls": ["https://x.com/NASA/status/2123798314843787300"]`

**Tip and combinations:** The most reliable input: one link, one known video.

##### `tweetUrls` - Post URLs (alternative field)

**What it does:** Same as Post URLs - for inputs copied from other tools.

**How it works:** An alternative name for `startUrls`, so an input copied from another tool works as it is; both lists are merged.

**Allowed values and default:** a list of text values, one per line in the form; empty by default.

**Example:** `"tweetUrls": ["https://x.com/SpaceX/status/2123997911696429540"]`

**Tip and combinations:** Use one of the two fields.

##### `twitterHandles` - Profiles

**What it does:** Accounts whose newest video posts you want (X shows the 5 newest original posts of a profile).

**How it works:** For each account the newest original posts are read and every video among them is downloaded. X shows visitors without an account the 5 newest posts, so an account gives up to 5 videos (1-2 per account in our test).

**Allowed values and default:** a list of text values, one per line in the form; empty by default.

**Example:** `"twitterHandles": ["NASA", "SpaceX"]`

**Tip and combinations:** Video-heavy accounts (news, sports, space) give the most videos.

##### `searchTerms` - Search terms

**What it does:** Topics to find video posts for, one per line (e.g. rocket launch). Found posts are kept only when they carry a video or GIF.

**How it works:** For each term the Actor finds public posts about it, opens each one and keeps it only when it carries a video or GIF, up to `maxVideosPerSearch`.

**Allowed values and default:** a list of text values, one per line in the form; empty by default.

**Example:** `"searchTerms": ["rocket launch"]`

**Tip and combinations:** Results are limited (search results list few X posts) - prefer post links when you have them.

##### `maxVideosPerSearch` - Max video posts per search term

**What it does:** How many video posts to keep for each search term.

**How it works:** The limit is per search term: at most this many video posts are kept for each term.

**Allowed values and default:** whole number from 1 to 500; default `10`.

**Example:** `"maxVideosPerSearch": 10`

**Tip and combinations:** Only used with `searchTerms`.

##### `maxSearchPages` - Search depth (pages per term)

**What it does:** How many pages of results are looked through per search term.

**How it works:** Paging stops when a page brings no new post or the limit is reached.

**Allowed values and default:** whole number from 1 to 20; default `3`.

**Example:** `"maxSearchPages": 3`

**Tip and combinations:** Only used with `searchTerms`.

##### `quality` - Quality

**What it does:** Which MP4 quality to pick and store.

**How it works:** `highest` picks the MP4 with the largest bitrate, `lowest` the smallest, `medium` the middle one. The chosen file is the one stored and shown in `videoUrl`.

**Allowed values and default:** one of `highest`, `medium`, `lowest`; default `highest`.

**Example:** `"quality": "medium"`

**Tip and combinations:** Pick medium or lowest for big batches - files are several times smaller.

##### `includeAllQualities` - List all qualities

**What it does:** Also list every MP4 quality with its bitrate and resolution.

**How it works:** Adds `allQualities`: every MP4 X offers for the video with bitrate and resolution, so you can choose later without another run.

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"includeAllQualities": true`

**Tip and combinations:** `videoVariants` always lists every file too.

##### `downloadVideos` - Store the MP4 files

**What it does:** Download every video into the run's key-value store and give its download link. Off: only the direct links.

**How it works:** On: the chosen MP4 is stored in the run's key-value store and `downloadUrl` links to it (the stored copy does not expire). Off: only the direct links, which X may change over time.

**Allowed values and default:** `true` or `false`; default `true`.

**Example:** `"downloadVideos": false`

**Tip and combinations:** Turn it off for a fast list of links.

##### `maxFileSizeMb` - Max file size (MB)

**What it does:** Skip storing files larger than this; the direct link is still given.

**How it works:** Files larger than this are not stored; the row keeps the direct link and says why (downloadStatus failed). Measured: 4K videos of 30 seconds were 45-67 MB.

**Allowed values and default:** whole number from 1 to 2,000; default `500`.

**Example:** `"maxFileSizeMb": 200`

**Tip and combinations:** Raise it for long or 4K videos, or pick a lower `quality`.

##### `sinceDate` - Posted on or after

**What it does:** Keep only videos of posts from this date on, e.g. 2026-11-01.

**How it works:** Posts published before this date are left out (the date is compared with each post's createdAt).

**Allowed values and default:** text; empty by default (option off).

**Example:** `"sinceDate": "2026-11-01"`

**Tip and combinations:** Combine with Posted on or before for an exact window.

##### `untilDate` - Posted on or before

**What it does:** Keep only videos of posts up to this date.

**How it works:** Posts published after this date are left out.

**Allowed values and default:** text; empty by default (option off).

**Example:** `"untilDate": "2026-11-20"`

**Tip and combinations:** Leave empty to keep the newest posts.

##### `language` - Post language

**What it does:** Two-letter language of the post text (en, es, ja ...). Empty = any.

**How it works:** Keeps only posts whose detected language (the lang column) is this two-letter code.

**Allowed values and default:** text; empty by default (option off).

**Example:** `"language": "en"`

**Tip and combinations:** X detects the language per post; very short posts can be "und".

##### `mediaType` - Media kind

**What it does:** Keep videos and GIFs, or GIFs only.

**How it works:** Keeps only posts with this kind of media: images, videos, GIFs, any media, links - or posts without media.

**Allowed values and default:** one of `media`, `videos`, `gifs`; default `media`.

**Example:** `"mediaType": "videos"`

**Tip and combinations:** Empty keeps every post.

##### `minViews` - Minimum views

**What it does:** Keep only posts with at least this many views.

**How it works:** Posts with fewer views (viewCount) are left out.

**Allowed values and default:** whole number 0 or more; default `0`.

**Example:** `"minViews": 10000`

**Tip and combinations:** Views are shown on posts from 2022 on; older posts have none and are left out by this filter.

##### `minLikes` - Minimum likes

**What it does:** Keep only posts with at least this many likes.

**How it works:** Posts with fewer likes are left out.

**Allowed values and default:** whole number 0 or more; default `0`.

**Example:** `"minLikes": 100`

**Tip and combinations:** A quick way to keep only popular posts.

##### `minReplies` - Minimum replies

**What it does:** Keep only posts with at least this many replies.

**How it works:** Posts with fewer replies are left out.

**Allowed values and default:** whole number 0 or more; default `0`.

**Example:** `"minReplies": 10`

**Tip and combinations:** Good for finding discussed posts.

##### `minRetweets` - Minimum reposts

**What it does:** Keep only posts with at least this many reposts.

**How it works:** Posts with fewer reposts are left out.

**Allowed values and default:** whole number 0 or more; default `0`.

**Example:** `"minRetweets": 20`

**Tip and combinations:** Combine with Minimum likes for viral posts only.

##### `verifiedOnly` - Only verified authors

**What it does:** Keep only videos posted by verified accounts.

**How it works:** Keeps only rows of accounts with a verification badge (blue, business or government).

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"verifiedOnly": true`

**Tip and combinations:** Useful for brand or media monitoring.

##### `includeHls` - Include the HLS stream link

**What it does:** Adds the video's HLS (.m3u8) stream link in hlsUrl.

**How it works:** Adds the HLS (.m3u8) stream link of every video in hlsUrl, for players and stream tools. Off leaves it empty.

**Allowed values and default:** `true` or `false`; default `true`.

**Example:** `"includeHls": true`

**Tip and combinations:** The MP4 links are always filled.

##### `includeSubtitles` - Include subtitle tracks

**What it does:** Adds the subtitle / caption tracks the video's stream lists (tracks), when the video has any.

**How it works:** Reads the subtitle / caption tracks the video's stream lists and writes them to tracks. Off skips that read (a bit faster).

**Allowed values and default:** `true` or `false`; default `true`.

**Example:** `"includeSubtitles": true`

**Tip and combinations:** Most videos have no caption track; tracks is then empty.

##### `includeMetadata` - Include post details

**What it does:** Adds the post text, author and engagement to every video row. Off = video columns only.

**How it works:** On (default) every video row carries the post text, author and likes / reposts / replies / views. Off writes the video columns only.

**Allowed values and default:** `true` or `false`; default `true`.

**Example:** `"includeMetadata": false`

**Tip and combinations:** Turn it off for a pure list of video files.

##### `deliverMode` - Delivery

**What it does:** Summary also writes one OUTPUT record to the key-value store that lists every video link of the run.

**How it works:** One row per item always goes to the dataset. Summary also writes one OUTPUT record to the run's key-value store that lists every row (id, link, file / followers, status).

**Allowed values and default:** one of `perPost`, `summary`; default `perPost`.

**Example:** `"deliverMode": "summary"`

**Tip and combinations:** Use the summary record when a workflow needs one file per run.

##### `maxConcurrency` - Parallel requests

**What it does:** How many posts are read at the same time.

**How it works:** How many posts or accounts are read at the same time; each uses its own connection.

**Allowed values and default:** whole number from 1 to 20; default `6`.

**Example:** `"maxConcurrency": 6`

**Tip and combinations:** The default is fast and safe; lower it if the log shows many retries.

##### `maxItems` - Max videos in total

**What it does:** Optional cap for the whole run. 0 = no total cap.

**How it works:** A total cap over all inputs. The run stops when this many rows are saved. 0 means no cap.

**Allowed values and default:** whole number from 0 to 1,000,000; default `0`.

**Example:** `"maxItems": 100`

**Tip and combinations:** Use it as a budget guard with many accounts.

##### `proxyConfiguration` - Proxy configuration

**What it does:** Chooses the Apify Proxy group and country the Actor connects through.

**How it works:** Every request goes through the proxy you pick here. The default residential group gives each session a real household IP address; when a session meets a rate limit the Actor drops it and continues on a fresh IP, so a long run keeps going without your input.

**Allowed values and default:** an Apify proxy settings object; default `{"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}`.

**Example:** `"proxyConfiguration": {"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}`

**Tip and combinations:** Keep the default. Datacenter proxies are cheaper but are limited much faster, which shows up as fewer rows and more retries in the log. A proxy country only matters when you want results as seen from that country.

##### Ready-to-copy inputs for the Twitter / X Video Downloader

Paste one of these into the JSON tab of the input form, or send it as the body of an API run:

**1. One video post** - returns the video in the highest quality, stored as MP4.

```json
{
  "startUrls": [
    "https://x.com/NASA/status/2123798314843787300"
  ]
}
```

**2. Newest videos of several accounts, medium quality** - returns the videos among the newest posts of each account.

```json
{
  "twitterHandles": [
    "NASA",
    "SpaceX",
    "NBA"
  ],
  "quality": "medium",
  "maxFileSizeMb": 200
}
```

**3. Links only, every quality** - returns direct links of every quality without storing files.

```json
{
  "startUrls": [
    "https://x.com/SpaceX/status/2123997911696429540"
  ],
  "downloadVideos": false,
  "includeAllQualities": true
}
```

#### Output of Twitter / X Video Downloader

One row is one video or GIF from a public X post, with the chosen MP4 (stored in your Apify storage or as a direct link), every quality, duration, size, thumbnail, captions when the video has them, and the post and author data. A value X does not show is `null`, never invented.

| Field | Type | What it means | Example from a test run | When it can be empty |
|---|---|---|---|---|
| `resultType` | text | Always video for a video row | `"video"` | Filled in every row of our test run |
| `type` | text | video or gif | `"video"` | Empty on error rows (post without video, unavailable post) |
| `id` | text | Id of the post | `"2123435938848067841"` | Filled in every row of our test run |
| `tweetId` | text | Id of the post (same as `id`) | `"2123435938848067841"` | Filled in every row of our test run |
| `url` | text | Link to the post | `"https://x.com/NASA/status/2123435938848067841"` | Filled in every row of our test run |
| `tweetUrl` | text | Link to the post (same as `url`) | `"https://x.com/NASA/status/2123435938848067841"` | Empty on error rows (post without video, unavailable post) |
| `sourceTweetId` | text | Id of the original post when the video comes from a repost (else the post itself) | `"2123435938848067841"` | Empty on error rows (post without video, unavailable post) |
| `sourceTweetUrl` | text | Link to that original post | `"https://x.com/NASA/status/2123435938848067841"` | Empty on error rows (post without video, unavailable post) |
| `sourceUrl` | text | The post link from your input (or the post link for profile and search inputs) | `"https://x.com/NASA/status/2123435938848067841"` | Empty on error rows (post without video, unavailable post) |
| `text` | text | Text of the post | `"These baby stars are going straight to the t...` | Empty when the post has no text |
| `username` | text | Handle of the author | `"NASA"` | Empty on error rows (post without video, unavailable post) |
| `name` | text | Display name of the author | `"NASA"` | Empty on error rows (post without video, unavailable post) |
| `author` | object | The author as one object: username, name, id | `{"username": "NASA", "name": "NASA", "id": "1...` | Empty on error rows (post without video, unavailable post) |
| `createdAt` | text | When the post was published | `"2026-11-19T15:19:14Z"` | Empty on error rows (post without video, unavailable post) |
| `timestamp` | text | When the row was written (ISO-8601, UTC) | `"2026-11-21T19:12:21Z"` | Filled in every row of our test run |
| `likeCount` | number | Likes of the post | `16398` | Empty on error rows (post without video, unavailable post) |
| `retweetCount` | number | Reposts of the post | `2775` | Empty on error rows (post without video, unavailable post) |
| `replyCount` | number | Replies of the post | `238` | Empty on error rows (post without video, unavailable post) |
| `viewCount` | number | Views of the post | `1189982` | Empty on error rows (post without video, unavailable post) |
| `mediaIndex` | number | Position of the video in the post (1 = first) | `1` | Empty on error rows (post without video, unavailable post) |
| `mediaType` | text | video or gif | `"video"` | Empty on error rows (post without video, unavailable post) |
| `mediaKey` | text | X media key, e.g. 13\_<id> (13 = video, 16 = GIF) | `"13_2123435905390100480"` | Empty on error rows (post without video, unavailable post) |
| `mediaId` | text | Numeric id of the video | `"2123435905390100480"` | Empty on error rows (post without video, unavailable post) |
| `altText` | null | Accessibility text the author wrote for the video | `null` | Empty when the author added none - most videos (empty in 37 of 37 test rows) |
| `availabilityStatus` | text | Available, or the status X shows for a blocked video | `"Available"` | Empty on error rows (post without video, unavailable post) |
| `availabilityReason` | null | Why a video is not available (e.g. geo-blocked) | `null` | Empty for available videos - nearly all (empty in 37 of 37 test rows) |
| `aspectRatio` | list | Aspect ratio as \[width, height], e.g. \[16, 9] | `[16, 9]` | Empty on error rows (post without video, unavailable post) |
| `hlsUrl` | text | Link to the streaming (HLS .m3u8) playlist of the video | `"https://video.twimg.com/amplify_video/212343...` | Empty for GIFs and on error rows (empty in 1 of 37 test rows) |
| `tracks` | list | Caption / subtitle tracks listed in the video's playlist: language, name, link | `[{"language": "en", "name": "English", "url":...` | Empty when the video has no captions - most videos (empty in 32 of 37 test rows) |
| `videoUrl` | text | Direct MP4 link in the chosen quality | `"https://video.twimg.com/amplify_video/212343...` | Empty on error rows (post without video, unavailable post) |
| `mediaUrl` | text | Direct MP4 link (same as `videoUrl`) | `"https://video.twimg.com/amplify_video/212343...` | Empty on error rows (post without video, unavailable post) |
| `quality` | text | The `quality` setting used (highest / medium / lowest) | `"highest"` | Empty on error rows (post without video, unavailable post) |
| `bitrate` | number | Bitrate of the chosen MP4 in bits per second | `2176000` | Empty for GIFs (no bitrate) and on error rows (empty in 1 of 37 test rows) |
| `width` | number | Width of the chosen MP4 in pixels | `1280` | Empty on error rows (post without video, unavailable post) |
| `height` | number | Height of the chosen MP4 in pixels | `720` | Empty on error rows (post without video, unavailable post) |
| `durationSec` | number | Length in seconds | `36` | Empty for GIFs and on error rows (empty in 1 of 37 test rows) |
| `durationMillis` | number | Length in milliseconds | `36000` | Empty for GIFs and on error rows (empty in 1 of 37 test rows) |
| `thumbnailUrl` | text | Cover image of the video | `"https://pbs.twimg.com/amplify_video_thumb/21...` | Empty on error rows (post without video, unavailable post) |
| `thumbnail` | text | Cover image (same as `thumbnailUrl`) | `"https://pbs.twimg.com/amplify_video_thumb/21...` | Empty on error rows (post without video, unavailable post) |
| `selectedVariant` | object | The chosen MP4 as one object: url, bitrate, width, height, type | `{"url": "https://video.twimg.com/amplify_vide...` | Empty on error rows (post without video, unavailable post) |
| `videoVariants` | list | Every file X offers for the video (MP4 qualities and the HLS playlist) | `[{"url": "https://video.twimg.com/amplify_vid...` | Empty on error rows (post without video, unavailable post) |
| `allQualities` | null | Every MP4 quality with bitrate and resolution | `null` | Empty unless `includeAllQualities` is on (empty in 37 of 37 test rows) |
| `video` | object | The chosen video as one object: url, bitrate, size, duration, thumbnail | `{"url": "https://video.twimg.com/amplify_vide...` | Empty on error rows (post without video, unavailable post) |
| `media` | list | Every media item of the post (photos, videos, GIFs) | `[{"type": "video", "url": "https://pbs.twimg....` | Empty on error rows (post without video, unavailable post) |
| `downloadUrl` | text | Link to the stored MP4 in the run's key-value store | `"https://api.apify.com/v2/key-value-stores/X1...` | Empty when `downloadVideos` is off, the file is above `maxFileSizeMb`, or on error rows (empty in 7 of 37 test rows) |
| `storedMediaUrl` | text | Stored MP4 link (same as `downloadUrl`) | `"https://api.apify.com/v2/key-value-stores/X1...` | Empty when the file was not stored (empty in 7 of 37 test rows) |
| `fileKey` | text | Key of the stored file in the key-value store | `"x-2123435938848067841-1.mp4"` | Empty when the file was not stored (empty in 7 of 37 test rows) |
| `sizeBytes` | number | Size of the stored file in bytes | `3972109` | Empty when the file was not stored (empty in 7 of 37 test rows) |
| `downloadStatus` | text | stored, not requested, failed (e.g. above maxFileSizeMb) or unavailable | `"stored"` | Filled in every row of our test run |
| `status` | text | ok, no video, or error | `"ok"` | Filled in every row of our test run |
| `message` | text | What went wrong for this row | `"file is 44.8 MB, above the 42 MB limit"` | Null on rows without a problem (empty in 30 of 37 test rows) |
| `error` | text | What went wrong (e.g. "file is 44.8 MB, above the 42 MB limit") | `"file is 44.8 MB, above the 42 MB limit"` | Null on rows without a problem (empty in 30 of 37 test rows) |
| `inputTarget` | text | The input that produced the row (post link, handle or search term) | `"NASA"` | Filled in every row of our test run |
| `sourceTarget` | text | The input that produced the row (same as `inputTarget`) | `"NASA"` | Filled in every row of our test run |
| `actor` | text | This Actor (neuro-scraper/twitter-x-video-downloader) | `"neuro-scraper/twitter-x-video-downloader"` | Filled in every row of our test run |
| `actorVersion` | text | Build number of the Actor that wrote the row | `"1.0.4"` | Empty when the build number is not known |
| `scrapedAt` | text | When the row was written (ISO-8601, UTC) | `"2026-11-21T19:12:21Z"` | Filled in every row of our test run |

A real row from a Twitter / X Video Downloader test run (long values shortened):

```json
{
  "username": "NASA",
  "tweetUrl": "https://x.com/NASA/status/2123435938848067841",
  "mediaType": "video",
  "durationSec": 36,
  "width": 1280,
  "height": 720,
  "bitrate": 2176000,
  "videoUrl": "https://video.twimg.com/amplify_video/2123435905390100480/vid/avc1/1280x720/RlOvK4qLJNnNg92N.mp4?tag=16",
  "downloadUrl": "https://api.apify.com/v2/key-value-stores/X14zTx9We5ts2kwoP/records/x-2123435938848067841-1.mp4?signature=1rg4lCg4USO...",
  "downloadStatus": "stored",
  "thumbnailUrl": "https://pbs.twimg.com/amplify_video_thumb/2123435905390100480/img/UAjjfTl4lSQubpUI.jpg",
  "tracks": [],
  "status": "ok"
}
```

#### Which columns of Twitter / X Video Downloader can be empty

Measured on our latest test run: these columns were empty on more than 10% of the rows. Each line says why - in every case the value is not shown for those items (or belongs to another row type or option), so the Twitter / X Video Downloader writes null instead of guessing.

- `altText`: Empty when the author added none - most videos (empty in 37 of 37 test rows) (empty in 37 of 37 rows of our test run).
- `availabilityReason`: Empty for available videos - nearly all (empty in 37 of 37 test rows) (empty in 37 of 37 rows of our test run).
- `tracks`: Empty when the video has no captions - most videos (empty in 32 of 37 test rows) (empty in 32 of 37 rows of our test run).
- `allQualities`: Empty unless `includeAllQualities` is on (empty in 37 of 37 test rows) (empty in 37 of 37 rows of our test run).
- `downloadUrl`: Empty when `downloadVideos` is off, the file is above `maxFileSizeMb`, or on error rows (empty in 7 of 37 test rows) (empty in 7 of 37 rows of our test run).
- `storedMediaUrl`: Empty when the file was not stored (empty in 7 of 37 test rows) (empty in 7 of 37 rows of our test run).
- `fileKey`: Empty when the file was not stored (empty in 7 of 37 test rows) (empty in 7 of 37 rows of our test run).
- `sizeBytes`: Empty when the file was not stored (empty in 7 of 37 test rows) (empty in 7 of 37 rows of our test run).
- `message`: Null on rows without a problem (empty in 30 of 37 test rows) (empty in 30 of 37 rows of our test run).
- `error`: Null on rows without a problem (empty in 30 of 37 test rows) (empty in 30 of 37 rows of our test run).

#### Features of Twitter / X Video Downloader compared with the top 5 Apify Store Actors

The table lists the features the five most-used Store Actors of this type offer, how many of them offer it, and whether Twitter / X Video Downloader has it. "No" always comes with the measured reason.

| Feature | In top 5 | Twitter / X Video Downloader |
|---|---|---|
| Download by post link | 5 of 5 | Yes |
| Quality choice | 4 of 5 | Yes (highest / medium / lowest) |
| All qualities listed | 2 of 5 | Yes |
| GIFs | 3 of 5 | Yes |
| Videos of a profile | 2 of 5 | Yes (newest posts) |
| Keyword search | 1 of 5 | Yes |
| Upload to S3 / Google Cloud / Azure | 1 of 5 | No - files go to the Apify key-value store; send them on with an integration |

#### Limits of Twitter / X Video Downloader

Twitter / X Video Downloader reports what it can measure and nothing else. These limits were measured on live runs:

- A profile gives the videos among its 5 newest original posts (1-2 per account in our test).
- Live broadcasts have no MP4 file; such posts give a row with the reason.

### Twitter / X Video Downloader with the Apify API, Python and integrations

You can start Twitter / X Video Downloader from your own code. The Apify API runs Twitter / X Video Downloader with your input and returns the dataset when the run ends. This Python example uses the official `apify-client` package:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("neuro-scraper/twitter-x-video-downloader").call(run_input={"startUrls": ["https://x.com/NASA/status/2121280846183137564"]})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

The same run from Node.js with the `apify-client` package:

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('neuro-scraper/twitter-x-video-downloader').call({"startUrls": ["https://x.com/NASA/status/2123798314843787300"]});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

Or with one HTTP call that runs the Twitter / X Video Downloader and returns the rows when it finishes:

```bash
curl -X POST 'https://api.apify.com/v2/acts/neuro-scraper~twitter-x-video-downloader/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{"startUrls": ["https://x.com/NASA/status/2123798314843787300"]}'
```

The same run works from JavaScript, from a webhook, or with no code at all: Twitter / X Video Downloader plugs into Make, Zapier, n8n, Google Sheets, Slack and Airbyte through the Apify integrations.

A schedule turns Twitter / X Video Downloader into a monitor. Run Twitter / X Video Downloader every day with the same input, export each dataset, and compare the results over time in a spreadsheet or a BI tool.

#### Export formats of Twitter / X Video Downloader

| Format | Best for |
|---|---|
| JSON | developers and APIs reading Twitter / X Video Downloader rows |
| CSV | spreadsheets and databases |
| Excel | business users and reports |
| HTML table | a quick look in the browser |
| RSS / XML | feeds and older tools |

### Pricing of Twitter / X Video Downloader

Twitter / X Video Downloader uses pay-per-event pricing: you pay a small fee per row written to the dataset, plus a tiny start fee per run. There is no monthly rental. The limit inputs and the run's maximum cost setting keep every run of Twitter / X Video Downloader inside your budget.

**Cost example for the Twitter / X Video Downloader:** one result is one video written to the dataset. The price is **$1.49 per 1,000 results** on the Apify Free plan, $1.39 per 1,000 on Starter, $1.29 per 1,000 on Scale and $1.19 per 1,000 on Business. So 100 videos cost about $0.15 and 1,000 videos cost $1.49 on the Free plan. Example: the newest videos of 50 accounts (about 75 videos) = about $0.11. Stored files also use Apify storage.

**How to cap the cost:** Set `maxItems`, lower `quality`, or turn `downloadVideos` off for links only. You can also set **Maximum cost per run** in the run options; the run stops cleanly when that budget is reached and keeps every row it already saved.

**Limits we measured:** X shows visitors without an account the 5 newest original posts of an account (1-2 videos per account in our test of 24 accounts: 35 videos). 4K clips of 30 seconds were 45-67 MB. Live broadcasts have no MP4 file.

Apify's free plan includes monthly credit, enough to try Twitter / X Video Downloader on real inputs.

### Tips for better results with Twitter / X Video Downloader

- Start Twitter / X Video Downloader with the prefilled input to see the output format, then add your own inputs.
- Keep the default residential proxy: X limits anonymous visitors per IP address, and Twitter / X Video Downloader switches to a fresh IP when it meets a limit.
- Use the limit fields of Twitter / X Video Downloader to control cost; the limits apply per input.
- Read the run log: Twitter / X Video Downloader names every input that failed and why.

### Related Actors you can use with Twitter / X Video Downloader

Twitter / X Video Downloader is part of a family of social media scrapers. Combine Twitter / X Video Downloader with these Actors:

- [Twitter Posts Scraper](https://apify.com/neuro-scraper/twitter-posts-scraper)
- [Twitter/X Profile Scraper](https://apify.com/neuro-scraper/twitter-x-profile-scraper)
- [Twitter Trends Scraper](https://apify.com/neuro-scraper/twitter-trends-scraper)
- [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper)

### Is it legal to use Twitter / X Video Downloader?

Twitter / X Video Downloader reads only public data that any visitor can see without signing in. It does not access protected posts, messages or anything behind a login.

Results of Twitter / X Video Downloader can still contain personal data. Personal data is protected by GDPR in the European Union and by similar laws elsewhere. Do not scrape personal data unless you have a legitimate reason, and ask a lawyer if you are unsure. Respect the X (Twitter) terms that apply to you.

### Reviews and feedback for Twitter / X Video Downloader

Did Twitter / X Video Downloader save you time? A short review on the Apify Store helps other users find Twitter / X Video Downloader. If something does not work, open an issue on the Issues tab of Twitter / X Video Downloader and include the run link: every report is read and answered.

### FAQ about Twitter / X Video Downloader

#### Does the Twitter / X Video Downloader need an X account?

No. It works without an X (Twitter) account, login, cookies or API key and reads only public posts.

#### How fast is Twitter / X Video Downloader?

Twitter / X Video Downloader paces its requests like a careful visitor and uses residential IPs. Small runs finish in a few minutes; the run log shows the progress of Twitter / X Video Downloader for every input.

#### Can I schedule Twitter / X Video Downloader?

Yes. In Apify Console, create a task with your input for Twitter / X Video Downloader and add a schedule (hourly, daily, weekly). Each scheduled run of Twitter / X Video Downloader produces a new dataset.

#### Which export formats does Twitter / X Video Downloader support?

Every dataset of Twitter / X Video Downloader can be downloaded as JSON, CSV, Excel, HTML, XML or RSS, or read through the Apify API.

#### Why is a field of Twitter / X Video Downloader empty?

Twitter / X Video Downloader writes `null` when X does not show that value. Twitter / X Video Downloader never fills a field with a guess.

#### Why did some downloads fail?

The file was larger than `maxFileSizeMb` (downloadStatus failed and the error says the size). Raise the limit or choose a lower `quality`; the direct link is in the row either way.

#### Can I download all videos of an account?

Only those among its 5 newest posts - X shows visitors without an account no more. For older videos, use their post links.

#### Do the links expire?

Direct X links can change over time; the stored copy in `downloadUrl` stays as long as your Apify storage keeps it.

#### Are GIFs included?

Yes. GIFs are MP4 files on X; they come with `mediaType` gif and no duration or bitrate.

#### How do I report a problem with Twitter / X Video Downloader?

Open the Issues tab of Twitter / X Video Downloader on the Apify Store, describe what you expected and paste the run link. Problems with Twitter / X Video Downloader are usually fixed within days.

# Actor input Schema

## `startUrls` (type: `array`):

X post links (https://x.com/NASA/status/...), post ids or profile links, one per line.

## `tweetUrls` (type: `array`):

Same as Post URLs - for inputs copied from other tools.

## `twitterHandles` (type: `array`):

Accounts whose newest video posts you want (X shows the 5 newest original posts of a profile).

## `searchTerms` (type: `array`):

Topics to find video posts for, one per line (e.g. rocket launch). Found posts are kept only when they carry a video or GIF.

## `maxVideosPerSearch` (type: `integer`):

How many video posts to keep for each search term.

## `maxSearchPages` (type: `integer`):

How many pages of results to look through per search term.

## `quality` (type: `string`):

Which MP4 quality to pick and store.

## `includeAllQualities` (type: `boolean`):

Also list every MP4 quality with its bitrate and resolution.

## `downloadVideos` (type: `boolean`):

Download every video into the run's key-value store and give its download link. Off: only the direct links.

## `maxFileSizeMb` (type: `integer`):

Skip storing files larger than this; the direct link is still given.

## `sinceDate` (type: `string`):

Keep only videos of posts from this date on, e.g. 2026-11-01.

## `untilDate` (type: `string`):

Keep only videos of posts up to this date.

## `language` (type: `string`):

Two-letter language of the post text (en, es, ja ...). Empty = any.

## `mediaType` (type: `string`):

Keep videos and GIFs, or GIFs only.

## `minViews` (type: `integer`):

Keep only posts with at least this many views.

## `minLikes` (type: `integer`):

Keep only posts with at least this many likes.

## `minReplies` (type: `integer`):

Keep only posts with at least this many replies.

## `minRetweets` (type: `integer`):

Keep only posts with at least this many reposts.

## `verifiedOnly` (type: `boolean`):

Keep only videos posted by verified accounts.

## `includeHls` (type: `boolean`):

Adds the video's HLS (.m3u8) stream link in hlsUrl.

## `includeSubtitles` (type: `boolean`):

Adds the subtitle / caption tracks the video's stream lists (tracks), when the video has any.

## `includeMetadata` (type: `boolean`):

Adds the post text, author and engagement to every video row. Off = video columns only.

## `deliverMode` (type: `string`):

Summary also writes one OUTPUT record to the key-value store that lists every video link of the run.

## `maxConcurrency` (type: `integer`):

How many posts are read at the same time.

## `maxItems` (type: `integer`):

Optional cap for the whole run. 0 = no total cap.

## `proxyConfiguration` (type: `object`):

Residential proxies are recommended.

## Actor input object example

```json
{
  "startUrls": [
    "https://x.com/NASA/status/2121280846183137564"
  ],
  "maxVideosPerSearch": 10,
  "maxSearchPages": 3,
  "quality": "highest",
  "includeAllQualities": false,
  "downloadVideos": true,
  "maxFileSizeMb": 500,
  "language": "",
  "mediaType": "media",
  "minViews": 0,
  "minLikes": 0,
  "minReplies": 0,
  "minRetweets": 0,
  "verifiedOnly": false,
  "includeHls": true,
  "includeSubtitles": true,
  "includeMetadata": true,
  "deliverMode": "perPost",
  "maxConcurrency": 6,
  "maxItems": 0,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (type: `string`):

One row per result, in the run's default dataset.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        "https://x.com/NASA/status/2121280846183137564"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("neuro-scraper/twitter-x-video-downloader").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "startUrls": ["https://x.com/NASA/status/2121280846183137564"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("neuro-scraper/twitter-x-video-downloader").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    "https://x.com/NASA/status/2121280846183137564"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call neuro-scraper/twitter-x-video-downloader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neuro-scraper/twitter-x-video-downloader"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/dfMRLZTkTtbf76cdT/builds/h9eEYwMWDBD9gCtYs/openapi.json
