# Remove Spam From Twitter Reply Data

**Use case:** 

Scrape Twitter replies while excluding spam keywords. Remove giveaways, airdrops, or custom phrases before billed output.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://x.com/OpenAI/status/2082577277246972300"
    }
  ],
  "tweetIds": [
    "2082577277246972300"
  ],
  "usernames": [
    "OpenAI",
    "@apify"
  ],
  "collectionStrategy": "auto",
  "scope": "all",
  "sort": "relevance",
  "includeOriginalPost": false,
  "maxItems": 100,
  "maxPagesPerTarget": 10,
  "dedupeAcrossTargets": true,
  "excludeWords": [
    "airdrop",
    "giveaway",
    "spam"
  ],
  "excludeOriginalAuthor": false,
  "verifiedOnly": false,
  "blueVerifiedOnly": false,
  "hasMediaOnly": false,
  "outputMode": "full",
  "outputPreset": "flat",
  "fieldStyle": "source",
  "includeTargetMetadata": true,
  "useSearch": false,
  "includeOriginalTweet": false,
  "includeRaw": false
}
```

## Output

```json
{
  "status": {
    "label": "Diagnostic Status",
    "format": "string"
  },
  "message": {
    "label": "Diagnostic Message",
    "format": "string"
  },
  "id": {
    "label": "Reply ID",
    "format": "string"
  },
  "text": {
    "label": "Reply Text",
    "format": "string"
  },
  "authorUsername": {
    "label": "Author Username",
    "format": "string"
  },
  "depth": {
    "label": "Reply Depth",
    "format": "integer"
  },
  "isOriginalPost": {
    "label": "Original Post",
    "format": "boolean"
  },
  "likeCount": {
    "label": "Likes",
    "format": "integer"
  },
  "replyCount": {
    "label": "Child Replies",
    "format": "integer"
  },
  "sourceTweetId": {
    "label": "Source Tweet ID",
    "format": "string"
  },
  "url": {
    "label": "Reply URL",
    "format": "string"
  }
}
```

## About this Actor

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