# Twitter Scraper - Unlimited Tweets, Fixed Price (`epctex/twitter-scraper`) Actor

Extract unlimited Twitter data with fixed monthly pricing. Scrape user tweets, conversations, and search results with advanced filtering options. Features multi-lang support, geo-targeting, and detailed user analytics. Perfect for researchers, analysts, and businesses needing reliable Twitter data.

- **URL**: https://apify.com/epctex/twitter-scraper.md
- **Developed by:** [epctex](https://apify.com/epctex) (community)
- **Categories:** Social media, Developer tools, Other
- **Stats:** 154 total users, 4 monthly users, 100.0% runs succeeded, 15 bookmarks
- **User rating**: 4.79 out of 5 stars

## Pricing

$40.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#rental-actors

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **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 usage examples, see the [API](#api) section below.

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).

# README

## 🐦 Twitter Scraper - Unlimited Tweets, Fixed Price

### 🚀 Overview

The **Twitter Scraper** allows you to extract valuable data from Twitter, including:

- User tweets
- Search tweets
- Tweet conversations

With advanced filtering, multi-language support, and high efficiency, it is the ultimate tool for data collection.

### ✨ Features and Functionality

#### 📌 **General Features**

- **Detailed User Information** – Perfect for data mining.
- **Multi-Language Support** – Works globally without restrictions.
- **Geo-Targeting** – Filter tweets based on location.
- **Lightning Fast & Efficient** – Ideal for integration into any platform.
- **Query Wizard** – Simple input tool for non-technical users.
- **Advanced Search Integration** – Use [Twitter Advanced Search](https://twitter.com/search-advanced) with ease.

#### 🔎 **Scraping Options**

- **Custom Start URLs**\
  Start scraping from:
  - User profiles: `https://x.com/KMbappe`
  - Search queries: `https://x.com/search?q=real%20madrid&src=typed_query`
  - Specific tweets: `https://x.com/realmadrid/status/1877491794000412879`

- **Search Queries**\
  Provide a list of keywords to find relevant tweets (e.g., `"barca"`, `"atletico madrid"`).

- **Search Modes**
  - **Latest** – Most recent tweets
  - **Top** – Most popular tweets

- **Date Filters**
  - Tweets **newer than** a specific date (YYYY-MM-DD)
  - Tweets **older than** a specific date (YYYY-MM-DD)

- **Content Filters**
  - **Only tweets with media** (images, videos, GIFs)
  - **Only tweets from verified users**
  - **Exclude replies, retweets, or links**

- **Tweet Stats Filters**
  - Filter tweets based on **minimum likes, replies, or retweets**.

- **Account Filters**
  - Scrape tweets:
    - **From** a specific account
    - **To** a specific account
    - **Mentioning** a specific account

- **Language & Location**
  - Filter tweets by **specific languages**.
  - Find tweets **near a defined location**.

- **Proxy Configuration**
  - Use advanced proxy settings for anonymous & efficient scraping.

- **Limitations**
  - Set a **maximum number of tweets or pages** for optimized performance.

### 🎯 Who Needs This?

The **Twitter Scraper** delivers enriched data at high speed and low cost, benefiting a wide range of users:

#### 📊 **Cryptocurrency Analysts & Investors**

- Track sentiment and influencer opinions.
- Catch **panic buying/selling trends** instantly.

#### 🔍 **Market Research Analysts**

- Gather public opinions and trends.
- Analyze **consumer behavior and market patterns**.

#### 📚 **Academic Researchers**

- Study **social behaviors, communication trends, and misinformation spread**.
- Understand **public reactions** to major events.

#### 🏢 **HR & Recruitment Specialists**

- Monitor **industry trends and job market sentiment**.
- Identify potential candidates for recruitment.

***

With its **powerful filters**, **high-speed performance**, and **easy integration**, the Twitter Scraper is the perfect tool for **data-driven decision-making**. 🚀

### 🔧 Bugs, fixes, updates, and changelog

This scraper is under active development. If you have any feature requests you can create an issue from [here](https://github.com/epctex/twitter-scraper/issues).

### ⚙️ Input and Definitions

| Field | Type | Description
| ----- | ---- | ----------- |
startUrls | array | Twitter (X) URLs.
searchQueries | array | Search queries you want to search from Twitter (X). Check [this](https://github.com/igorbrigadir/twitter-advanced-search) page for further reference.
searchMode | String | Search mode for search tweets. It can be either "Latest" or "Top".
authTokens | array | Authentication tokens for Twitter (X).
conversationIds | array | Conversation IDs that you want to get from Twitter (X)
maxItems | number | Maximum number of items that you want to receive as output
endPage | number | End page for the scraper. It can be used to limit the number of pages to scrape.
since | String | Returns tweets newer than the given date.
until | String | Returns tweets older than the given date.
minLikes | number | Returns tweets with at least the given number of likes.
minReplies | number | Returns tweets with at least the given number of replies.
minRetweets | number | Returns tweets with at least the given number of retweets.
fromUser | String | Returns tweets from the given user.
toUser | String | Returns tweets to the given user.
mentioningUser | String | Returns tweets that mention the given user.
onlyNativeRetweets | boolean | Returns only native retweets.
onlyMedia | boolean | Returns only tweets with media.
onlyNativeImages | boolean | Returns only tweets with native images.
onlyImages | boolean | Returns only tweets with images.
onlyVideos | boolean | Returns only tweets with videos.
onlyNews | boolean | Returns only tweets with news.
onlyVerified | boolean | Returns only tweets from verified users.
onlyNativeVideo | boolean | Returns only tweets with native video.
onlyReplies | boolean | Returns only tweets with replies.
onlyLinks | boolean | Returns only tweets with links.
onlySafe | boolean | Returns only tweets marked as potentially sensitive.
onlyQuote | boolean | Returns only tweets that quote other tweets.
onlyProVideo | boolean | Returns only tweets with pro video.
excludeNativeRetweets | boolean | Returns tweets without native retweets.
excludeMedia | boolean | Returns tweets without media.
excludeNativeImages | boolean | Returns tweets without native images.
excludeImages | boolean | Returns tweets without images.
excludeVideos | boolean | Returns tweets without videos.
excludeNews | boolean | Returns tweets without news.
excludeVerified | boolean | Returns tweets from unverified users.
excludeNativeVideo | boolean | Returns tweets without native video.
excludeReplies | boolean | Returns tweets without replies.
excludeLinks | boolean | Returns tweets without links.
excludeSafe | boolean | Returns tweets marked as potentially sensitive.
excludeQuote | boolean | Returns tweets that quote other tweets.
excludeProVideo | boolean | Returns tweets with pro video.

This solution requires the use of **Proxy servers**, either your own proxy servers or you can use [Apify Proxy](https://www.apify.com/docs/proxy).

#### Tip

**Important**: You must provide your own Twitter/X authentication tokens in the `authTokens` array for the scraper to work. These can be obtained from your Twitter accounts.

When you want to scrape over a specific list URL, just copy and paste the link as one of the **startUrl**.

If you would like to scrape only the first page of a list then put the link for the page and have the `endPage` as 1.

With the last approach that is explained above you can also fetch any interval of pages. If you provide the 5th page of a list and define the `endPage` parameter as 6 then you'll have the 5th and 6th pages only.

#### Compute Unit Consumption

The actor is optimized to run blazing fast and scrape as many items as possible. Therefore, it forefronts all the detailed requests. If the actor doesn't block very often it can scrape 2000-3000 tweets in 2 minutes with ~0.07-0.08 compute units.

#### Twitter Scraper Input example

```json
{
    "proxy": {
        "useApifyProxy": true
    },
    "startUrls": [
        "https://x.com/KMbappe",
        "https://x.com/search?q=real%20madrid&src=typed_query",
        "https://x.com/realmadrid/status/1877491794000412879"
    ],
    "searchQueries": [
        "barcelona",
        "atletico madrid"
    ],
    "searchMode": "Latest",
    "maxItems": 100,
    "endPage": 5,
    "authTokens": [
        
    ],
}
```

### During the Run

During the run, the actor will output messages letting you know what is going on. Each message always contains a short label specifying which page from the provided list is currently specified.
When items are loaded from the page, you should see a message about this event with a loaded item count and total item count for each page.

If you provide incorrect input to the actor, it will immediately stop with a failure state and output an explanation of what is wrong.

### Tweet Export

During the run, the actor stores results into a dataset. Each tweet is a separate item in the dataset.

You can manage the results in any language (Python, PHP, Node JS/NPM). See the FAQ or <a href="https://www.apify.com/docs/api" target="blank">our API reference</a> to learn more about getting results from this Twitter actor.

### Scraped Twitter Properties

The structure of each tweet looks like this:

#### Tweet Detail

```json
{
	"id": "1877102356627673443",
	"url": "https://x.com/10Ronaldinho/status/1877102356627673443",
	"text": "Hermosos recuerdos en Barcelona... Sempre Barça!!!!! https://t.co/1ljiuvNHf9",
	"retweetCount": 4078,
	"replyCount": 357,
	"likeCount": 58982,
	"quoteCount": 147,
	"createdAt": "Wed Jan 08 21:17:31 +0000 2025",
	"lang": "es",
	"protected": false,
	"bookmarkCount": 421,
	"isReply": false,
	"entities": {
		"hashtags": [],
		"media": [
			{
				"display_url": "pic.x.com/1ljiuvNHf9",
				"expanded_url": "https://x.com/10Ronaldinho/status/1877102356627673443/photo/1",
				"id_str": "1877102283202162688",
				"indices": [
					53,
					76
				],
				"media_key": "3_1877102283202162688",
				"media_url_https": "https://pbs.twimg.com/media/GgzOlM1W8AAXri7.jpg",
				"type": "photo",
				"url": "https://t.co/1ljiuvNHf9",
				"ext_media_availability": {
					"status": "Available"
				},
				"features": {
					"all": {
						"tags": [
							{
								"user_id": "96951800",
								"name": "FC Barcelona",
								"screen_name": "FCBarcelona",
								"type": "user"
							}
						]
					},
					"large": {
						"faces": []
					},
					"medium": {
						"faces": []
					},
					"small": {
						"faces": []
					},
					"orig": {
						"faces": []
					}
				},
				"sizes": {
					"large": {
						"h": 1280,
						"w": 1280,
						"resize": "fit"
					},
					"medium": {
						"h": 1200,
						"w": 1200,
						"resize": "fit"
					},
					"small": {
						"h": 680,
						"w": 680,
						"resize": "fit"
					},
					"thumb": {
						"h": 150,
						"w": 150,
						"resize": "crop"
					}
				},
				"original_info": {
					"height": 1280,
					"width": 1280,
					"focus_rects": [
						{
							"x": 0,
							"y": 0,
							"w": 1280,
							"h": 717
						},
						{
							"x": 0,
							"y": 0,
							"w": 1280,
							"h": 1280
						},
						{
							"x": 111,
							"y": 0,
							"w": 1123,
							"h": 1280
						},
						{
							"x": 352,
							"y": 0,
							"w": 640,
							"h": 1280
						},
						{
							"x": 0,
							"y": 0,
							"w": 1280,
							"h": 1280
						}
					]
				},
				"media_results": {
					"result": {
						"media_key": "3_1877102283202162688"
					}
				}
			}
		],
		"symbols": [],
		"timestamps": [],
		"urls": [],
		"user_mentions": []
	},
	"extentedEntities": {
		"media": [
			{
				"display_url": "pic.x.com/1ljiuvNHf9",
				"expanded_url": "https://x.com/10Ronaldinho/status/1877102356627673443/photo/1",
				"id_str": "1877102283202162688",
				"indices": [
					53,
					76
				],
				"media_key": "3_1877102283202162688",
				"media_url_https": "https://pbs.twimg.com/media/GgzOlM1W8AAXri7.jpg",
				"type": "photo",
				"url": "https://t.co/1ljiuvNHf9",
				"ext_media_availability": {
					"status": "Available"
				},
				"features": {
					"all": {
						"tags": [
							{
								"user_id": "96951800",
								"name": "FC Barcelona",
								"screen_name": "FCBarcelona",
								"type": "user"
							}
						]
					},
					"large": {
						"faces": []
					},
					"medium": {
						"faces": []
					},
					"small": {
						"faces": []
					},
					"orig": {
						"faces": []
					}
				},
				"sizes": {
					"large": {
						"h": 1280,
						"w": 1280,
						"resize": "fit"
					},
					"medium": {
						"h": 1200,
						"w": 1200,
						"resize": "fit"
					},
					"small": {
						"h": 680,
						"w": 680,
						"resize": "fit"
					},
					"thumb": {
						"h": 150,
						"w": 150,
						"resize": "crop"
					}
				},
				"original_info": {
					"height": 1280,
					"width": 1280,
					"focus_rects": [
						{
							"x": 0,
							"y": 0,
							"w": 1280,
							"h": 717
						},
						{
							"x": 0,
							"y": 0,
							"w": 1280,
							"h": 1280
						},
						{
							"x": 111,
							"y": 0,
							"w": 1123,
							"h": 1280
						},
						{
							"x": 352,
							"y": 0,
							"w": 640,
							"h": 1280
						},
						{
							"x": 0,
							"y": 0,
							"w": 1280,
							"h": 1280
						}
					]
				},
				"media_results": {
					"result": {
						"media_key": "3_1877102283202162688"
					}
				}
			}
		]
	},
	"author": {
		"username": "10Ronaldinho",
		"url": "https://x.com/10Ronaldinho",
		"id": "29479000",
		"name": "Ronaldinho",
		"isVerified": false,
		"isBlueVerified": true,
		"profilePicture": "https://pbs.twimg.com/profile_images/1537593562619060225/AmmxIwWi_normal.jpg",
		"coverPicture": "https://pbs.twimg.com/profile_banners/29479000/1650911561",
		"description": "Twitter oficial de Ronaldinho Gaúcho. Duas vezes eleito o melhor do mundo pela FIFA.\n\n@BetifyOfficial embaixador\nhttps://t.co/jctU4nkSvp",
		"location": "",
		"followers": 21437149,
		"following": 152,
		"canDm": false,
		"canMediaTag": false,
		"createdAt": "Tue Apr 07 16:11:50 +0000 2009",
		"entities": {
			"description": {
				"urls": [
					{
						"display_url": "bit.ly/RonniexBetify",
						"expanded_url": "https://bit.ly/RonniexBetify",
						"url": "https://t.co/jctU4nkSvp",
						"indices": [
							113,
							136
						]
					}
				]
			},
			"url": {
				"urls": [
					{
						"display_url": "nooke.ag",
						"expanded_url": "http://www.nooke.ag/",
						"url": "https://t.co/f6O6lqd6yM",
						"indices": [
							0,
							23
						]
					}
				]
			}
		},
		"fastFollowersCount": 0,
		"favouritesCount": 1552,
		"listedCount": 26192,
		"hasCustomTimelines": false,
		"isTranslator": false,
		"mediaCount": 3449,
		"statusesCount": 7101,
		"withheldInCountries": [],
		"affiliatesHighlightedLabel": {}
	}
}
```

### Contact

Please visit us through [epctex.com](https://epctex.com) to see all the products that are available for you. If you are looking for any custom integration or so, please reach out to us through the chat box in [epctex.com](https://epctex.com). In need of support? <business@epctex.com> is at your service.

# Actor input Schema

## `startUrls` (type: `array`):

You can provide a list of starting URLs for the scraper, which may include user URLs, search URLs, or tweet URLs.

## `searchTerms` (type: `array`):

Search terms you want to search from Twitter (X). You can refer to https://github.com/igorbrigadir/twitter-advanced-search.

## `twitterHandles` (type: `array`):

Twitter handles that you want to search on Twitter (X)

## `conversationIds` (type: `array`):

Conversation IDs that you want to search on Twitter (X)

## `maxItems` (type: `integer`):

Maximum number of items that you want as output.

## `sort` (type: `string`):

Sorts search results by the given option. Only works with search terms and search URLs.

## `authTokens` (type: `array`):

Select authentication tokens to be used by your crawler.

## `tweetLanguage` (type: `string`):

Restricts tweets to the given language, given by an ISO 639-1 code.

## `onlyVerifiedUsers` (type: `boolean`):

If selected, only returns tweets by users who are verified.

## `onlyTwitterBlue` (type: `boolean`):

If selected, only returns tweets by users who are Twitter Blue subscribers.

## `onlyImage` (type: `boolean`):

If selected, only returns tweets that contain images.

## `onlyVideo` (type: `boolean`):

If selected, only returns tweets that contain videos.

## `onlyQuote` (type: `boolean`):

If selected, only returns tweets that are quotes.

## `author` (type: `string`):

Returns tweets sent by the given user. It should be a Twitter (X) Handle.

## `inReplyTo` (type: `string`):

Returns tweets that are replies to the given user. It should be a Twitter (X) Handle.

## `mentioning` (type: `string`):

Returns tweets mentioning the given user. It should be a Twitter (X) Handle.

## `geotaggedNear` (type: `string`):

Returns tweets sent near the given location.

## `withinRadius` (type: `string`):

Returns tweets sent within the given radius of the given location.

## `geocode` (type: `string`):

Returns tweets sent by users located within a given radius of the given latitude/longitude.

## `placeObjectId` (type: `string`):

Returns tweets tagged with the given place.

## `minimumRetweets` (type: `integer`):

Returns tweets with at least the given number of retweets.

## `minimumFavorites` (type: `integer`):

Returns tweets with at least the given number of favorites.

## `minimumReplies` (type: `integer`):

Returns tweets with at least the given number of replies.

## `start` (type: `string`):

Returns tweets sent after the given date.

## `end` (type: `string`):

Returns tweets sent before the given date.

## `includeSearchTerms` (type: `boolean`):

If selected, a field will be added to each tweets about the search term that was used to find it.

## `customMapFunction` (type: `string`):

Function that takes each of the objects as argument and returns data that will be mapped by the function itself. This function is not intended for filtering, please don't use it for filtering purposes or you will get banned automatically.

## `proxy` (type: `object`):

Select proxies to be used by your crawler.

## Actor input object example

```json
{
  "startUrls": [
    "https://x.com/KMbappe",
    "https://x.com/search?q=real%20madrid&src=typed_query",
    "https://x.com/realmadrid/status/1877491794000412879"
  ],
  "searchTerms": [
    "web scraping",
    "scraping from:apify"
  ],
  "twitterHandles": [
    "elonmusk",
    "taylorswift13"
  ],
  "conversationIds": [
    "1754067365707563045",
    "1732037140111102460"
  ],
  "maxItems": 1000,
  "sort": "Latest",
  "tweetLanguage": "en",
  "author": "apify",
  "inReplyTo": "webexpo",
  "mentioning": "elonmusk",
  "geotaggedNear": "Los Angeles",
  "withinRadius": "15km",
  "geocode": "37.7764685,-122.4172004,10km",
  "placeObjectId": "96683cc9126741d1",
  "minimumRetweets": 5,
  "minimumFavorites": 5,
  "minimumReplies": 5,
  "start": "2021-07-01",
  "end": "2021-07-02",
  "customMapFunction": "(object) => { return {...object} }",
  "proxy": {
    "useApifyProxy": true
  }
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        "https://x.com/KMbappe",
        "https://x.com/search?q=real%20madrid&src=typed_query",
        "https://x.com/realmadrid/status/1877491794000412879"
    ],
    "searchTerms": [
        "web scraping",
        "scraping from:apify"
    ],
    "twitterHandles": [
        "elonmusk",
        "taylorswift13"
    ],
    "conversationIds": [
        "1754067365707563045",
        "1732037140111102460"
    ],
    "maxItems": 1000,
    "sort": "Latest",
    "tweetLanguage": "en",
    "author": "apify",
    "inReplyTo": "webexpo",
    "mentioning": "elonmusk",
    "geotaggedNear": "Los Angeles",
    "withinRadius": "15km",
    "geocode": "37.7764685,-122.4172004,10km",
    "placeObjectId": "96683cc9126741d1",
    "minimumRetweets": 5,
    "minimumFavorites": 5,
    "minimumReplies": 5,
    "start": "2021-07-01",
    "end": "2021-07-02",
    "customMapFunction": (object) => { return {...object} }
};

// Run the Actor and wait for it to finish
const run = await client.actor("epctex/twitter-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "startUrls": [
        "https://x.com/KMbappe",
        "https://x.com/search?q=real%20madrid&src=typed_query",
        "https://x.com/realmadrid/status/1877491794000412879",
    ],
    "searchTerms": [
        "web scraping",
        "scraping from:apify",
    ],
    "twitterHandles": [
        "elonmusk",
        "taylorswift13",
    ],
    "conversationIds": [
        "1754067365707563045",
        "1732037140111102460",
    ],
    "maxItems": 1000,
    "sort": "Latest",
    "tweetLanguage": "en",
    "author": "apify",
    "inReplyTo": "webexpo",
    "mentioning": "elonmusk",
    "geotaggedNear": "Los Angeles",
    "withinRadius": "15km",
    "geocode": "37.7764685,-122.4172004,10km",
    "placeObjectId": "96683cc9126741d1",
    "minimumRetweets": 5,
    "minimumFavorites": 5,
    "minimumReplies": 5,
    "start": "2021-07-01",
    "end": "2021-07-02",
    "customMapFunction": "(object) => { return {...object} }",
}

# Run the Actor and wait for it to finish
run = client.actor("epctex/twitter-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    "https://x.com/KMbappe",
    "https://x.com/search?q=real%20madrid&src=typed_query",
    "https://x.com/realmadrid/status/1877491794000412879"
  ],
  "searchTerms": [
    "web scraping",
    "scraping from:apify"
  ],
  "twitterHandles": [
    "elonmusk",
    "taylorswift13"
  ],
  "conversationIds": [
    "1754067365707563045",
    "1732037140111102460"
  ],
  "maxItems": 1000,
  "sort": "Latest",
  "tweetLanguage": "en",
  "author": "apify",
  "inReplyTo": "webexpo",
  "mentioning": "elonmusk",
  "geotaggedNear": "Los Angeles",
  "withinRadius": "15km",
  "geocode": "37.7764685,-122.4172004,10km",
  "placeObjectId": "96683cc9126741d1",
  "minimumRetweets": 5,
  "minimumFavorites": 5,
  "minimumReplies": 5,
  "start": "2021-07-01",
  "end": "2021-07-02",
  "customMapFunction": "(object) => { return {...object} }"
}' |
apify call epctex/twitter-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,epctex/twitter-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/2RQBFwgnLW5TeNF8R/builds/RFW47NOonn7J640zd/openapi.json
