# Filter a Specific Account's Tweets by Keyword

**Use case:** 

Searches within a single X (Twitter) account's tweets for a keyword or phrase. Set an account URL, a date range and a keyword (for example 'Artemis' on NASA), and the scraper returns only that account's tweets containing the term, with 40 fields each: fullText, engagement, media, hashtags, mentions and author info. Ideal for tracking how an account talks about a topic. Export to CSV or JSON.

## Input

```json
{
  "accountUrls": [
    "https://x.com/NASA"
  ],
  "startDate": "2026-04-01",
  "endDate": "2026-09-10",
  "splitMode": "day",
  "language": "any",
  "maxCollections": 0,
  "keyword": "Artemis",
  "excludeReplies": false,
  "mediaFilter": "any",
  "minLikes": 0,
  "minRetweets": 0,
  "sort": "Top"
}
```

## Output

```json
{
  "tweetId": {
    "label": "Tweet ID",
    "format": "text"
  },
  "authorHandle": {
    "label": "Author Handle",
    "format": "text"
  },
  "authorName": {
    "label": "Author Name",
    "format": "text"
  },
  "tweetUrl": {
    "label": "Tweet URL",
    "format": "link"
  },
  "fullText": {
    "label": "Text",
    "format": "text"
  },
  "createdAt": {
    "label": "Created At",
    "format": "text"
  },
  "lang": {
    "label": "Language",
    "format": "text"
  },
  "source": {
    "label": "Source",
    "format": "text"
  },
  "replyCount": {
    "label": "Replies",
    "format": "number"
  },
  "repostCount": {
    "label": "Reposts",
    "format": "number"
  },
  "retweetCount": {
    "label": "Retweets",
    "format": "number"
  },
  "quoteCount": {
    "label": "Quotes",
    "format": "number"
  },
  "likeCount": {
    "label": "Likes",
    "format": "number"
  },
  "viewCount": {
    "label": "Views",
    "format": "number"
  },
  "bookmarkCount": {
    "label": "Bookmarks",
    "format": "number"
  },
  "isReply": {
    "label": "Is Reply",
    "format": "boolean"
  },
  "replyToHandle": {
    "label": "Reply To Handle",
    "format": "text"
  },
  "replyToUrl": {
    "label": "Reply To URL",
    "format": "link"
  },
  "isQuote": {
    "label": "Is Quote",
    "format": "boolean"
  },
  "quotedTweetUrl": {
    "label": "Quoted Tweet URL",
    "format": "link"
  },
  "isRetweet": {
    "label": "Is Retweet",
    "format": "boolean"
  },
  "isAd": {
    "label": "Is Ad",
    "format": "boolean"
  },
  "mediaType": {
    "label": "Media Type",
    "format": "text"
  },
  "imageUrls": {
    "label": "Image URLs",
    "format": "array"
  },
  "videoUrls": {
    "label": "Video URLs",
    "format": "array"
  },
  "hashtags": {
    "label": "Hashtags",
    "format": "array"
  },
  "mentions": {
    "label": "Mentions",
    "format": "array"
  },
  "externalUrls": {
    "label": "External URLs",
    "format": "array"
  },
  "authorId": {
    "label": "Author ID",
    "format": "text"
  },
  "authorUrl": {
    "label": "Author URL",
    "format": "link"
  },
  "authorLocation": {
    "label": "Author Location",
    "format": "text"
  },
  "authorVerified": {
    "label": "Verified",
    "format": "boolean"
  },
  "authorFollowers": {
    "label": "Author Followers",
    "format": "number"
  },
  "authorFollowing": {
    "label": "Author Following",
    "format": "number"
  },
  "authorTweetsCount": {
    "label": "Author Tweets",
    "format": "number"
  },
  "authorProfileImage": {
    "label": "Author Profile Image",
    "format": "image"
  },
  "authorBannerImage": {
    "label": "Author Banner Image",
    "format": "image"
  },
  "authorBio": {
    "label": "Author Bio",
    "format": "text"
  },
  "authorWebsite": {
    "label": "Author Website",
    "format": "link"
  },
  "authorCreatedAt": {
    "label": "Author Joined",
    "format": "text"
  }
}
```

## About this Actor

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


## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
This Task's input is already configured above — use it as-is rather than inventing a new one.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/delicious_zebu/advanced-x-twitter-profile-scraper.md

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).
