# X Twitter Brand Account Tweets Scraper

**Use case:** 

Scrape recent tweets from any X (Twitter) accounts. Get text, likes, retweets, replies, views and media. Example pulls NASA and OpenAI tweets.

## Input

```json
{
  "mode": "userTweets",
  "handles": [
    "nasa",
    "OpenAI"
  ],
  "tweetsLimit": 50,
  "includeReplies": false,
  "tweetIds": [
    "https://x.com/BarackObama/status/266031293945503744"
  ],
  "searchType": "Top",
  "maxItems": 50,
  "lang": "en",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

## Output

```json
{
  "text": {
    "label": "Text",
    "format": "text"
  },
  "url": {
    "label": "URL",
    "format": "link"
  },
  "id": {
    "label": "Tweet ID",
    "format": "text"
  },
  "author": {
    "label": "Author",
    "format": "object"
  },
  "createdAt": {
    "label": "Created",
    "format": "text"
  },
  "conversationId": {
    "label": "Conversation ID",
    "format": "text"
  },
  "likeCount": {
    "label": "Likes",
    "format": "number"
  },
  "retweetCount": {
    "label": "Retweets",
    "format": "number"
  },
  "replyCount": {
    "label": "Replies",
    "format": "number"
  },
  "quoteCount": {
    "label": "Quotes",
    "format": "number"
  },
  "bookmarkCount": {
    "label": "Bookmarks",
    "format": "number"
  },
  "viewCount": {
    "label": "Views",
    "format": "number"
  },
  "lang": {
    "label": "Lang",
    "format": "text"
  },
  "noteTweet": {
    "label": "Note (longform)",
    "format": "text"
  },
  "media": {
    "label": "Media",
    "format": "array"
  },
  "entities": {
    "label": "Entities",
    "format": "object"
  },
  "quotedTweet": {
    "label": "Quoted Tweet",
    "format": "object"
  },
  "observedAt": {
    "label": "Scraped",
    "format": "text"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## About this Actor

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