# Compare Photo Tweets from Two X Accounts

**Use case:** 

Compare original and quote tweets with photos from NASA and NASA Johnson in the same week. Export up to 20 matches per account with tweet text, dates, photo links, and engagement counts.

## Input

```json
{
  "screenNames": [
    "@NASA",
    "@NASAJohnson"
  ],
  "userIds": [],
  "maxTweetsPerAccount": 20,
  "tweetType": "non_replies",
  "includeRetweets": false,
  "mediaType": "images",
  "startDate": "2026-11-06",
  "endDate": "2026-11-12"
}
```

## Output

```json
{
  "status": {
    "label": "Status",
    "format": "string"
  },
  "message": {
    "label": "Message",
    "format": "string"
  },
  "created_at": {
    "label": "Posted at (UTC)",
    "format": "string"
  },
  "post_type": {
    "label": "Post type",
    "format": "string"
  },
  "text": {
    "label": "Text",
    "format": "string"
  },
  "author.username": {
    "label": "Username",
    "format": "text"
  },
  "tweet_url": {
    "label": "Tweet link",
    "format": "string"
  },
  "like_count": {
    "label": "Likes",
    "format": "integer"
  },
  "reply_count": {
    "label": "Replies",
    "format": "integer"
  },
  "retweet_count": {
    "label": "Reposts",
    "format": "integer"
  },
  "view_count": {
    "label": "Views",
    "format": "integer"
  }
}
```

## How it works

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

The X (Twitter) User Tweets & Replies Scraper Actor is ready to run with the inputs already set for "Compare Photo Tweets from Two X Accounts". [Sign up or log in](https://console.apify.com/create-task-from-example/38QsP9ZyO8CD8MWcx) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Compare Photo Tweets from Two X Accounts" task

The X (Twitter) User Tweets & Replies Scraper Actor will start running based on the input automatically. You can also change all the input fields, like 👤 usernames or x profile links, 🆔 numeric x user ids, and more, to match your specific use case.

### 3. Receive the "Compare Photo Tweets from Two X Accounts" 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, message, posted at (utc), 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 "Compare Photo Tweets from Two X Accounts" task via API](https://apify.com/arjun_code/x-twitter-user-tweets-scraper.md).

## FAQ

### Which tweets match this example?

The example keeps original and quote tweets with photos on the tweet itself. Replies and retweets are excluded. Both UTC dates are included.

### Does the result limit apply to each account?

Yes. This example saves up to 20 matching tweets for each account. With a limit from 1 to 500, you can enter up to 25 accounts per run.

### Where can I find the photo links?

Open a tweet in the JSON output and read its media or media_source_urls fields. Use those links to open the available images.

## About this Actor

This example demonstrates how to use [X (Twitter) User Tweets & Replies Scraper](https://apify.com/arjun_code/x-twitter-user-tweets-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/arjun_code/x-twitter-user-tweets-scraper.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-user-tweets-scraper.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`).
