# X (Twitter) Bulk Image Downloader: Photos + Post Text (`scrapelabmax/x-twitter-bulk-image-downloader`) Actor

Download images from any public X (Twitter) profile or post in original quality, with post text, date and engagement on every row. No login, no 10-image limit. Links, files or one ZIP.

- **URL**: https://apify.com/scrapelabmax/x-twitter-bulk-image-downloader.md
- **Developed by:** [Scrapelab Max](https://apify.com/scrapelabmax) (community)
- **Categories:** Social media, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 3 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## X (Twitter) Bulk Image Downloader: Photos + Post Text

Download images in bulk from any public X (Twitter) profile or post, in original quality, with the post text that went with each picture. **No login, no cookies, and no 10-image limit.**

Enter a handle and this X image downloader pages through the profile and returns one row per image: the original-resolution image link, the full post text, the date, the author and the engagement counts. Choose links only, saved files, or one ZIP archive per profile.

- **Bulk Twitter image download**: a whole profile in one run, several profiles at once.
- **Original resolution** on every image, at no extra charge.
- **Post text on every row**: text, date, likes, reposts, replies, views and alt text.
- **Links, files or ZIP**: use the CDN links, save every file, or download one ZIP per profile.
- **Honest results**: a run summary shows images found versus returned for every profile, and the reason for any gap.
- **25 free images on every run**, so you can check the quality before you pay.

### What this Twitter image downloader does

| You enter | You get |
| --- | --- |
| One or more X handles | Every reachable image from each profile, newest first |
| One or more post URLs | Every image in those posts |
| A date range | Only images posted in that window |
| Output: Links | Original-resolution image URL on every row |
| Output: Files | The same, plus each image saved to storage |
| Output: ZIP | The same, plus one ZIP archive per profile |

It collects photos. Videos and GIFs are not collected.

### How far back it goes

X serves logged-out visitors about the 800 most recent posts of a profile. This Actor reads all of them, which covers the full history of most accounts and the last months or years of very active ones. In test runs on 13 Nov 2026 it returned 386 of @NASAWebb's own images going back 3 years (to November 2023), and 261 of @NASA's own images going back 7 months (556 with reposts included). Each run took about one minute.

Two cases return less, and the run summary tells you when either applies:

- **Very active accounts**: posts older than the most recent 800 or so cannot be reached without a login. The summary marks the profile `depth_limited`.
- **Some accounts**: X shows logged-out visitors a short selection of about 100 popular posts instead of the timeline. The summary marks the profile `limited_view`.

The Actor never asks for your X login or cookies. That keeps your own account out of it.

### Input

A handle is all you need. Everything else is optional.

```json
{
    "handles": ["NASA", "@NASAWebb", "https://x.com/SpaceX"],
    "postUrls": ["https://x.com/NASA/status/2121280846183137564"],
    "outputMode": "links",
    "maxImagesPerProfile": 0,
    "dateFrom": "2026-01-01",
    "dateTo": "2026-06-30",
    "includePostText": true,
    "includeReposts": false
}
```

| Field | Default | What it does |
| --- | --- | --- |
| `handles` | none | X usernames or profile URLs. `NASA`, `@NASA` and `https://x.com/NASA` all work. |
| `postUrls` | none | Individual post URLs (`x.com` or `twitter.com`). |
| `outputMode` | `links` | `links`, `files` or `zip`. |
| `maxImagesPerProfile` | `0` (all) | Stop after this many images per handle. |
| `dateFrom`, `dateTo` | none | Only posts published in this window (UTC). |
| `includePostText` | `true` | Attach post text, date, author and engagement to each row. |
| `includeReposts` | `false` | Also return images from posts the account only reposted. |
| `skipSensitive` | `false` | Leave out posts X marks as possibly sensitive. |

### Output

One row per image. Export as JSON, CSV, Excel or HTML, or read it over the Apify API.

```json
{
    "imageUrl": "https://pbs.twimg.com/media/HV72x1oWIAAXmgC?format=jpg&name=orig",
    "fileUrl": null,
    "fileName": null,
    "width": 1920,
    "height": 1080,
    "postUrl": "https://x.com/NASAWebb/status/2116594806554018121",
    "postId": "2116594806554018121",
    "postText": "Happy Halloween! Like a spectral form rising out of a cold mist, @NASAHubble and Webb have captured a hauntingly dynamic star-forming scene...",
    "postedAt": "2026-10-31T18:15:00.000Z",
    "authorHandle": "NASAWebb",
    "authorName": "NASA Webb Telescope",
    "likes": 1245,
    "reposts": 184,
    "replies": 63,
    "quotes": 16,
    "bookmarks": 56,
    "views": 97242,
    "altText": "Mid-infrared image of the Cat's Head Nebula by Webb...",
    "imageIndex": 1,
    "imageCount": 1,
    "isRepost": false,
    "isSensitive": false,
    "sourceInput": "NASAWebb",
    "scrapedAt": "2026-11-14T03:23:47.916Z"
}
```

In **Files** mode `fileUrl` links to the saved image, named `<date>_<postId>_<index>.jpg` so files sort in posting order. In **ZIP** mode `fileUrl` links to the archive, `<handle>-images-part1.zip`, and `fileName` is the entry inside it. Archives are split into parts of about 250 MB.

#### Run summary

Every run writes a free `RUN_SUMMARY` record to the key-value store with one entry per handle and post URL:

```json
{
    "input": "NASAWebb",
    "status": "succeeded",
    "completeness": "complete",
    "postsScanned": 134,
    "imagesFound": 84,
    "imagesReturned": 67,
    "skipped": { "reposts": 17, "outsideDateRange": 0, "sensitive": 0, "duplicates": 0, "overLimit": 0, "fileErrors": 0 },
    "profileMediaCount": 3185,
    "oldestPostAt": "2026-01-21T16:09:46.000Z",
    "zipUrls": []
}
```

`status` is one of `succeeded`, `no_images`, `not_found`, `suspended`, `protected`, `unavailable`, `budget_reached`, `not_started` or `failed`. A private, suspended or missing account never stops the run and is never charged.

### Pricing

Pay per image. No subscription.

| Event | Price | Charged when |
| --- | --- | --- |
| Image result | $1.00 per 1,000 images | An image row is returned |
| Stored file | $1.50 per 1,000 files | An image is saved (Files or ZIP mode) |
| Free allowance | First 25 images of every run | Always |

Examples: 500 images as links cost about $0.48. 2,000 images in a ZIP cost about $4.94. Set **Maximum cost per run** in the run options and the Actor stops cleanly at that amount.

You are not charged for accounts that are private, suspended or missing, for posts without photos, for reposts and date-filtered images that were skipped, or for a file that failed to download.

### FAQ

**Is there a limit of 10 images?**
No. A handle alone returns every image the profile exposes without login. `maxImagesPerProfile` is `0` (no limit) by default.

**Do I need an X (Twitter) account or API key?**
No. The Actor reads public pages the way a logged-out visitor does.

**Are the images full quality?**
Yes. Every image is requested at original resolution, the largest size X stores.

**Can I download a whole Twitter profile as a ZIP?**
Yes. Set Output to ZIP and you get one archive per handle, with the link in the run summary and on every row.

**Can I get the tweet text with each image?**
Yes, that is the default. Each row has the post text, date, author, alt text and engagement counts.

**Why did a profile return fewer images than it has?**
Check the run summary. Reposts are skipped by default, videos are not collected, and very active profiles are only reachable for their most recent 800 or so posts. The summary states which applies.

**Can it read private accounts, likes or bookmarks?**
No. Public accounts only.

**Can I use it from an AI agent or my own code?**
Yes. Call it through the Apify API, the Apify clients, or the Apify MCP server. The input is a handful of plain fields and the output schema is stable.

### Responsible use

Use this tool for public content only. Images and text belong to the people who posted them: downloading an image does not give you the right to reuse it, so get the owner's permission before you republish. Post text can be personal data, so collect only what you need and handle it under the laws that apply to you, such as GDPR. Do not use this tool to harass anyone or to repost someone's media without consent. For removal requests or concerns, open an issue on the Actor's Issues tab.

# Changelog

This Actor's version history is a separate document: https://apify.com/scrapelabmax/x-twitter-bulk-image-downloader/changelog.md

# Actor input Schema

## `handles` (type: `array`):

Public X (Twitter) accounts to download images from. Accepts <code>NASA</code>, <code>@NASA</code> or <code>https://x.com/NASA</code>. Each profile is read newest first, as far back as X serves it without login (about the 800 most recent posts). Private, suspended and missing accounts are reported in the run summary and never charged.

## `postUrls` (type: `array`):

Individual posts to download images from, for example <code>https://x.com/NASA/status/2121280846183137564</code>. <code>twitter.com</code> links work too. Use this with or without handles.

## `outputMode` (type: `string`):

<b>Links</b> returns the original-resolution image URL on every row (cheapest, fastest). <b>Files</b> also saves each image to the run's key-value store. <b>ZIP</b> also packs each profile's images into one downloadable ZIP archive. Files and ZIP add the stored-file charge per image.

## `maxImagesPerProfile` (type: `integer`):

Stop after this many images for each handle. <code>0</code> means no limit: every reachable image is returned. Use it, together with the run's maximum cost, to control spending.

## `dateFrom` (type: `string`):

Only return images from posts published on or after this date (UTC), for example <code>2026-01-01</code>. Reading stops as soon as older posts are reached, so a recent window is quick and cheap.

## `dateTo` (type: `string`):

Only return images from posts published on or before this date (UTC), for example <code>2026-06-30</code>.

## `includePostText` (type: `boolean`):

Attach the post text, date, author, alt text and engagement counts (likes, reposts, replies, views) to every image row. Turn off to get image and post links only. The price is the same either way.

## `includeReposts` (type: `boolean`):

Also return images from posts the account only reposted (retweets). Off by default, so you get the account's own images.

## `skipSensitive` (type: `boolean`):

Leave out posts that X marks as possibly sensitive. Off by default.

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

Proxy used to read X. The default works for most runs. Switch to residential proxies only if a run reports rate limiting.

## Actor input object example

```json
{
  "handles": [
    "NASA"
  ],
  "outputMode": "links",
  "maxImagesPerProfile": 0,
  "includePostText": true,
  "includeReposts": false,
  "skipSensitive": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `images` (type: `string`):

Every image row as JSON: original-resolution image URL, stored file URL (Files and ZIP modes), post text, date, author and engagement. See the dataset schema for all fields.

## `imagesView` (type: `string`):

Table view: image preview, post text, date, author, likes and link to the post.

## `downloadsView` (type: `string`):

Table view with the stored file or ZIP link for each image (Files and ZIP modes), next to the original image URL.

## `csv` (type: `string`):

The same rows as a CSV file for Excel or Google Sheets.

## `runSummary` (type: `string`):

RUN_SUMMARY record: for every handle and post URL, its status, images found versus returned, what was skipped and why, whether the profile was read in full, and the ZIP archive links.

## `files` (type: `string`):

All records in the run's key-value store: saved images (Files mode) and ZIP archives named <handle>-images-part1.zip (ZIP mode).

# 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 = {
    "handles": [
        "NASA"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapelabmax/x-twitter-bulk-image-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 = {
    "handles": ["NASA"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("scrapelabmax/x-twitter-bulk-image-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 '{
  "handles": [
    "NASA"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call scrapelabmax/x-twitter-bulk-image-downloader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapelabmax/x-twitter-bulk-image-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/fN5saDLateXZsrWwL/builds/b1RcJ4zhZyY3ekJQs/openapi.json
