# Download X (Twitter) Photos in Original Quality

**Use case:** 

Download every photo from a public X (Twitter) post in original quality, save the image files to Apify Storage, and receive direct download URLs.

## Input

```json
{
  "tweets": [
    "https://x.com/zjp1997720/status/2097482656682529147"
  ],
  "storeMediaFiles": true,
  "videoQuality": "highest",
  "imageQuality": "original"
}
```

## Output

```json
{
  "status": {
    "label": "Status",
    "format": "string"
  },
  "tweet_id": {
    "label": "Tweet ID",
    "format": "string"
  },
  "tweet_url": {
    "label": "Tweet URL",
    "format": "string"
  },
  "author.username": {
    "label": "Username",
    "format": "string"
  },
  "media": {
    "label": "Media",
    "format": "array"
  },
  "preview_image_url": {
    "label": "Preview",
    "format": "image"
  },
  "type": {
    "label": "Media type"
  },
  "requested_quality": {
    "label": "Requested quality"
  },
  "selected_quality": {
    "label": "Selected quality"
  },
  "selected_resolution": {
    "label": "Resolution"
  },
  "size_bytes": {
    "label": "File size",
    "format": "number"
  },
  "download_status": {
    "label": "Download status"
  },
  "stored_url": {
    "label": "Download",
    "format": "link"
  },
  "source_url": {
    "label": "X source",
    "format": "link"
  },
  "filename": {
    "label": "Filename"
  },
  "content_type": {
    "label": "Content type"
  },
  "text": {
    "label": "Post text",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The X (Twitter) Video & Media Downloader Actor is ready to run with the inputs already set for "Download X (Twitter) Photos in Original Quality". [Sign up or log in](https://console.apify.com/create-task-from-example/i681UNdVgEMyV8B3J) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Download X (Twitter) Photos in Original Quality" task

The X (Twitter) Video & Media Downloader Actor will start running based on the input automatically. You can also change all the input fields, like x post ids or urls, store media files, and more, to match your specific use case.

### 3. Receive the "Download X (Twitter) Photos in Original Quality" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as status, tweet id, tweet url, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Download X (Twitter) Photos in Original Quality" task via API](https://apify.com/arjun_code/x-twitter-media-downloader.md).

## About this Actor

This example demonstrates how to use [X (Twitter) Video & Media Downloader](https://apify.com/arjun_code/x-twitter-media-downloader.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/arjun_code/x-twitter-media-downloader.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/arjun_code/x-twitter-media-downloader.md

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`).
