# X Twitter Data Archive Search for Market Research

**Use case:** 

Search the public X Twitter data archive by keyword or hashtag to gather posts for market research. Returns tweet text, author info, likeCount, retweetCount, viewCount, and engagementRate. Ideal for analysts tracking public discourse. Adjust keywords and maxTweets to customize your query.

## Input

```json
{
  "keywords": [
    "market trends",
    "consumer insights"
  ],
  "maxTweets": 50,
  "searchType": "Top",
  "language": "en",
  "dateFrom": "2026-01-01",
  "dateTo": "2026-06-30",
  "excludeRetweets": false,
  "excludeReplies": false,
  "onlyVerifiedUsers": false,
  "onlyImages": false,
  "onlyVideos": false
}
```

## Output

```json
{
  "type": {
    "label": "Type"
  },
  "searchTerm": {
    "label": "Search term"
  },
  "text": {
    "label": "Text"
  },
  "author.username": {
    "label": "Username"
  },
  "createdAt": {
    "label": "Created at"
  },
  "language": {
    "label": "Language"
  },
  "replyCount": {
    "label": "Reply count"
  },
  "retweetCount": {
    "label": "Retweet count"
  },
  "likeCount": {
    "label": "Like count"
  },
  "quoteCount": {
    "label": "Quote count"
  },
  "viewCount": {
    "label": "View count"
  },
  "engagementRate": {
    "label": "Engagement rate"
  },
  "isRetweet": {
    "label": "Is retweet"
  },
  "isQuote": {
    "label": "Is quote"
  },
  "isReply": {
    "label": "Is reply"
  },
  "url": {
    "label": "Url"
  },
  "media": {
    "label": "Media"
  },
  "collectedAt": {
    "label": "Collected at"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The X/Twitter Keyword & Hashtag Tweet Search Actor is ready to run with the inputs already set for "X Twitter Data Archive Search for Market Research". [Sign up or log in](https://console.apify.com/create-task-from-example/8RYroZNNR9LUCDX5g) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "X Twitter Data Archive Search for Market Research" task

The X/Twitter Keyword & Hashtag Tweet Search Actor will start running based on the input automatically. You can also change all the input fields, like search keywords, maximum tweets per keyword, and more, to match your specific use case.

### 3. Receive the "X Twitter Data Archive Search for Market Research" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as type, search term, text, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "X Twitter Data Archive Search for Market Research" task via API](https://apify.com/nimbryxo-studio/x-twitter-keyword-and-hashtag-tweet-search.md).

## FAQ

### How do I search the X Twitter data archive for market trends?

The X archive search task searches “market trends” and “consumer insights” separately, with Top selected. Each result shows which search term found the post.

### What information does X Twitter search return for each post?

Each post in the X archive search task can include its text, author username, posting date, language, likes, reposts, views, and engagement rate.

### How many X Twitter posts can I get for each keyword?

The X archive search task is set to return up to 50 posts per keyword. That is a ceiling; the number returned depends on what X search surfaces for each term.

### Can I change the X Twitter keywords or search for newer posts?

Change the search terms in the X archive search task, or choose Latest to put newer posts first instead of Top, which returns more relevant and popular posts.

### How much does an X Twitter data search cost?

For the X archive search task’s limit of 50 posts per keyword, the result charge is at most $0.05 on the Free plan. Actor start and Apify compute charges are additional.

### Do I need an X Twitter login or API key to search public posts?

The X archive search task needs no X login or developer credentials; it searches public results visible to logged-out visitors.

### Can I download X Twitter search results as a spreadsheet?

Results from the X archive search task are stored in a dataset that you can download as CSV or Excel, among other formats, or read through the Apify API.

### How do I monitor X Twitter market trends every week?

Run the X archive search task on an Apify Schedule to repeat it over time; this task searches “market trends” and “consumer insights” separately.

## About this Actor

This example demonstrates how to use [X/Twitter Keyword & Hashtag Tweet Search](https://apify.com/nimbryxo-studio/x-twitter-keyword-and-hashtag-tweet-search.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/nimbryxo-studio/x-twitter-keyword-and-hashtag-tweet-search.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/nimbryxo-studio/x-twitter-keyword-and-hashtag-tweet-search.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
