# Monitor Brand Mentions With a Twitter Scraper

**Use case:** 

Track fresh mentions of a brand while excluding its own posts, then export text, engagement, authors, links, and media.

## Input

```json
{
  "mode": "legacy",
  "outputVariant": "rich",
  "fieldStyle": "legacy",
  "outputPreset": "flat",
  "startUrls": [
    {
      "url": "https://x.com/elonmusk"
    },
    {
      "url": "https://x.com/search?q=AI"
    }
  ],
  "twitterHandles": [
    "elonmusk",
    "@nasa"
  ],
  "usernames": [
    "elonmusk",
    "@nasa"
  ],
  "listIds": [
    "1748648376080666720"
  ],
  "tweetIds": [
    "1846987139428634858"
  ],
  "twitterContent": "web scraping OR #datascience",
  "searchTerms": [
    "@NotionHQ OR Notion lang:en -from:NotionHQ"
  ],
  "maxItems": 150,
  "includeRaw": false,
  "includeArticles": false,
  "includeUnavailableFields": false,
  "includeOriginalTweet": false,
  "respectProfileSubpages": false,
  "includeSearchTerms": false,
  "queryType": "Latest",
  "lang": "en",
  "within": "10km",
  "geocode": "37.7749,-122.4194,10km",
  "filter:blue_verified": false,
  "filter:nativeretweets": false,
  "include:nativeretweets": false,
  "filter:replies": false,
  "filter:quote": false,
  "filter:has_engagement": false,
  "filter:media": false,
  "filter:twimg": false,
  "filter:images": false,
  "filter:videos": false,
  "filter:native_video": false,
  "filter:vine": false,
  "filter:consumer_video": false,
  "filter:pro_video": false,
  "filter:spaces": false,
  "filter:links": false,
  "filter:mentions": false,
  "filter:news": false,
  "filter:safe": false,
  "filter:hashtags": false,
  "min_retweets": 0,
  "min_faves": 0,
  "min_replies": 0,
  "-min_retweets": 0,
  "-min_faves": 0,
  "-min_replies": 0
}
```

## Output

```json
{
  "resultType": {
    "label": "Result Type",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "message": {
    "label": "Message",
    "format": "string"
  },
  "sourceTweetId": {
    "label": "Source Tweet ID",
    "format": "string"
  },
  "sourceTarget": {
    "label": "Source Target",
    "format": "string"
  },
  "searchTerm": {
    "label": "Search Term",
    "format": "string"
  },
  "engagementMode": {
    "label": "Engagement Mode",
    "format": "string"
  },
  "id": {
    "label": "Tweet ID",
    "format": "string"
  },
  "text": {
    "label": "Text",
    "format": "string"
  },
  "createdAt": {
    "label": "Created At",
    "format": "string"
  },
  "lang": {
    "label": "Language",
    "format": "string"
  },
  "authorUsername": {
    "label": "Author Username",
    "format": "string"
  },
  "author": {
    "label": "Author",
    "format": "object"
  },
  "likeCount": {
    "label": "Likes",
    "format": "integer"
  },
  "replyCount": {
    "label": "Replies",
    "format": "integer"
  },
  "retweetCount": {
    "label": "Retweets",
    "format": "integer"
  },
  "quoteCount": {
    "label": "Quotes",
    "format": "integer"
  },
  "viewCount": {
    "label": "Views",
    "format": "integer"
  },
  "bookmarkCount": {
    "label": "Bookmarks",
    "format": "integer"
  },
  "mediaUrls": {
    "label": "Media URLs",
    "format": "array"
  },
  "url": {
    "label": "Tweet URL",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [X Tweet Scraper | $0.15/1K Tweets | Pay-Per Result](https://apify.com/xquik/x-tweet-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/xquik/x-tweet-scraper) to learn more, explore other use cases, and run it yourself.