# Collect X Tweets for AI & Sentiment Analysis

**Use case:** 

Build a dataset of X (Twitter) tweets from any account for sentiment analysis or AI training. Export full text, engagement metrics, media and timestamps.

## Input

```json
{
  "handles": [
    "NASA"
  ],
  "includeProfile": false,
  "includeTweets": true,
  "includeReplies": false,
  "maxTweetsPerProfile": 100,
  "onlyTweetsNewerThan": "",
  "maxItems": 0,
  "deduplicateResults": true,
  "monitorMode": false,
  "monitorStoreName": "twitter-scraper-monitor",
  "maxRunSeconds": 240,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "type": {
    "label": "Type"
  },
  "authorHandle": {
    "label": "Author"
  },
  "text": {
    "label": "Tweet"
  },
  "createdAt": {
    "label": "Posted"
  },
  "favoriteCount": {
    "label": "Likes"
  },
  "retweetCount": {
    "label": "Retweets"
  },
  "replyCount": {
    "label": "Replies"
  },
  "viewCount": {
    "label": "Views"
  },
  "mediaCount": {
    "label": "Media"
  },
  "lang": {
    "label": "Lang"
  },
  "url": {
    "label": "URL"
  }
}
```

## About this Actor

This example demonstrates how to use [Twitter (X) Scraper - Tweets, Profiles & Monitor](https://apify.com/scrapesage/twitter-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/scrapesage/twitter-scraper) to learn more, explore other use cases, and run it yourself.