# Twitter Scraper (`nghianguyen2/twitter-scraper`) Actor

⚡ From $0.10/1K — No-Login Twitter (X.com) Scraper & Crypto X-Intel API (11-in-1): Tweets, Timelines, Threads, Replies, Profiles, HD Videos & Solana/Pump.fun Sentiment. MCP-ready for AI Agents & n8n. Zero cookies required.

- **URL**: https://apify.com/nghianguyen2/twitter-scraper.md
- **Developed by:** [Nghia Nguyen](https://apify.com/nghianguyen2) (community)
- **Categories:** Social media, AI, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.10 / 1,000 standard dataset results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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

# README

## ⚡ Twitter (X) Tweet Scraper, HD Video Downloader & Crypto X-Intel (No Minimums • Unlimited)

The fastest **all-in-one Twitter (X.com) Tweet Scraper, HD MP4 Video Downloader, KOL Timeline Monitor, Thread Unroller, and Solana / Base / DexScreener Crypto Token X-Intel Scraper** on Apify.

Unlike legacy Twitter scrapers that block single-tweet lookups, enforce a 50-tweet minimum per query, or disable API access for free users, this Actor works **instantly for 1 single tweet, 25 batch tweets, full self-reply threads, multi-KOL timelines, and real-time Crypto Contract Address (CA) → X intelligence** with **zero X API keys, zero cookies, and zero residential proxies required**.

> 🚀 **Building a Low-Latency Trading Bot, Telegram Sniper, or AI Agent?**
> Need **sub-250ms synchronous REST API calls** without container startup wait? Connect directly to our Cloudflare Global Edge Gateway on RapidAPI Hub:
> 👉 **[Twitter (X) Real-Time Data & Crypto X-Intel REST API on RapidAPI](https://rapidapi.com/Techssss/api/twitter-x-real-time-data-crypto-x-intel)**
> *(Also explore our [43-Endpoint TikTok & TikTok Shop No-Watermark API + MCP Server](https://rapidapi.com/Techssss/api/tiktok-data-tiktok-shop-no-watermark-video) & [Shopee E-Commerce & Affiliate Intelligence API](https://rapidapi.com/Techssss/api/shopee-e-commerce-live-affiliate-intelligence))*

***

### 🏆 Why Developers Switch From Legacy Tweet Scrapers to This Actor

| Feature | ⚡ **Our Twitter (X) & Crypto X-Intel v2.0** | Legacy Tweet Scraper V2 (`apidojo`) | Basic X Scrapers |
| :--- | :-: | :-: | :-: |
| **Single Tweet & Direct HD MP4 Video Download** | ✅ **Included (`1` to `50` items)** | ❌ Blocked (*forces separate actor*) | ⚠️ Unreliable |
| **Minimum Tweets Charged per Query** | ✅ **None (`1 tweet = 1 item`)** | ❌ **50 tweets minimum** | ⚠️ 20–50 minimum |
| **Thread Unroller (Self-Reply Chain Reconstruction)** | ✅ **Built-in (`thread_unroll`)** | ❌ Blocked | ❌ Missing |
| **Real-Time KOL Monitoring (Repeated Short-Interval Runs)** | ✅ **Allowed 24/7** | ❌ Prohibited in TOS | ❌ Rate-limited |
| **API Access for Apify Free Plan Users** | ✅ **100% Unlocked** | ❌ Blocked in Demo Mode | ❌ Restricted |
| **Multi-URL Auto-Router (`startUrls`: Tweets + Profiles + Token CAs)** | ✅ **Built-in (`auto_start_urls`)** | ⚠️ Tweets/Profiles only | ❌ Single input |
| **Solana / Base / ETH Contract Address (CA) → Official X Intel** | ✅ **Built-in (`token_x_intel`)** | ❌ None | ❌ None |
| **Live DexScreener Boosts & Meme Token X Radar** | ✅ **Built-in (`meme_radar`, `dex_boosts_live`)** | ❌ None | ❌ None |

***

### 🔥 11 Extraction Modes (`action`)

1. **`auto_start_urls` (⚡ Smart Multi-URL & Multi-KOL Auto-Router — Default)**:
   Paste any combination of **X Tweet URLs** (`https://x.com/elonmusk/status/1812258574049157405`), **X Profile URLs** (`https://x.com/solana`), **X Handles** (`twitterHandles: ["solana", "VitalikButerin"]`), or **Solana/Base Contract Addresses** (`DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263`). The Actor automatically detects every input and extracts them in one unified dataset!
2. **`timeline` (KOL / User Latest Timeline Tweets)**:
   Scrape the latest posts from one or multiple public X handles (`@elonmusk`, `@solana`, `@VitalikButerin`, `@cz_binance`) with full text, engagement metrics (`likes`, `retweets`, `views`, `replies`), media attachments, and built-in filters (`onlyVideo`, `onlyImage`, `minimumLikes`, `minimumRetweets`).
3. **`tweet` (Single Tweet Detail & HD MP4 Video Downloader)**:
   Extract complete metadata for any single Tweet ID or URL, including the highest-bitrate direct `.mp4` video stream URL, photos, quote tweets, polls, and exact timestamps.
4. **`batch_tweets` (Concurrent Multi-Tweet Lookup)**:
   Fetch up to 25 numeric Tweet IDs or URLs in parallel in a single request.
5. **`thread_unroll` (Chronological Thread Unroller)**:
   Automatically walks up and down an author's self-reply chain to reconstruct the full thread in reading order.
6. **`user` (X User Profile & Follower Analytics)**:
   Extract bio, verification badge status, follower/following counts, total tweet count, avatar, banner, and creation date.
7. **`token_x_intel` (Crypto Contract Address → Official X Handle & Latest Tweets)**:
   Pass any Solana, Base, Ethereum, or BSC token Contract Address (CA). Automatically queries DexScreener for the token's verified official X/Twitter link, live USD price, 24h volume, liquidity, FDV/Market Cap, and fetches the project's latest X posts.
8. **`meme_radar` (Live Meme Token Radar + Official X Verification)**:
   Real-time feed of trending & boosted meme tokens on Solana, Base, and Ethereum cross-referenced with their official X social accounts.
9. **`search_x_tokens` (Search Crypto Tokens by Ticker / Keyword + X Intel)**:
   Search any token ticker (`BONK`, `PEPE`, `SOL`, `AI16Z`) to retrieve top liquidity pairs alongside verified X handles and social telemetry.
10. **`dex_boosts_live` (Live DexScreener Paid Boosts + X Socials)**:
    Track tokens actively spending on DexScreener boosts right now with their verified X profiles.
11. **`new_token_profiles` (Freshly Claimed Token Profiles + X Links)**:
    Catch newly registered token profiles on DexScreener the moment they attach an X/Twitter account.

***

### 📋 Quick-Start Input Examples

#### 1. Paste Mixed Tweet URLs, Profile URLs & KOL Handles (`auto_start_urls`)

```json
{
  "action": "auto_start_urls",
  "startUrls": [
    "https://x.com/elonmusk/status/1812258574049157405",
    "https://x.com/solana"
  ],
  "twitterHandles": ["VitalikButerin"],
  "maxItems": 10
}
```

#### 2. Monitor Multiple KOL Timelines with Engagement & Video Filters (`timeline`)

```json
{
  "action": "timeline",
  "twitterHandles": ["elonmusk", "solana", "cz_binance"],
  "maxItems": 15,
  "onlyVideo": false,
  "minimumLikes": 100
}
```

#### 3. Single Tweet + Direct HD MP4 Video Download (`tweet`)

```json
{
  "action": "tweet",
  "tweetIdOrUrl": "https://x.com/elonmusk/status/1812258574049157405"
}
```

#### 4. Solana Token Contract Address (CA) → Official X Handle, Market Cap & Latest Tweets (`token_x_intel`)

```json
{
  "action": "token_x_intel",
  "contractAddress": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"
}
```

***

### 📦 Sample Output Dataset Items

#### 1. Tweet Item (`action: "tweet"` or `"timeline"`)

```json
{
  "type": "tweet",
  "id": "2125078025377378634",
  "username": "solana",
  "author_name": "Solana",
  "text": "Mitsui & Co. operates in 62 countries. Here's why they chose Solana.\n\n\"Better issuance controls, automatic settlement, global onchain distribution. Solana brings us to the new stage, we believe.\"",
  "likes": 236,
  "retweets": 28,
  "replies": 39,
  "views": 18420,
  "video_url": "https://video.twimg.com/amplify_video/2125077961145782272/vid/avc1/1280x720/...",
  "has_video": true,
  "has_image": true,
  "created_at": "Tue Nov 24 04:15:10 +0000 2026",
  "url": "https://x.com/solana/status/2125078025377378634",
  "_direct_rest_api": "https://rapidapi.com/Techssss/api/twitter-x-real-time-data-crypto-x-intel"
}
```

#### 2. User Profile Item (`action: "user"`)

```json
{
  "type": "user_profile",
  "id": "951329744804392960",
  "username": "solana",
  "author_name": "Solana",
  "text": "The high performance network powering internet capital markets, payments, AI agents, stocks, memes, and crypto applications.",
  "followers_count": 4215369,
  "following_count": 3748,
  "tweets_count": 31289,
  "likes_count": 30087,
  "media_count": 4368,
  "author_avatar": "https://pbs.twimg.com/profile_images/...",
  "banner_url": "https://pbs.twimg.com/profile_banners/...",
  "created_at": "Thu Jan 11 05:36:14 +0000 2018",
  "url": "https://x.com/solana",
  "_direct_rest_api": "https://rapidapi.com/Techssss/api/twitter-x-real-time-data-crypto-x-intel"
}
```

### Use Cases

- **Build large prospect databases** from Twitter/X creator profiles, followers, and bio metadata without cookies.
- **Track online conversations, brand mentions, and real-time crypto / Pump.fun token signals** for AI agents and trading bots.
- **Get deal, launch, and restock alerts** on breaking KOL announcements and trending hashtags.

***

### AI Agents, MCP Server & Automation Integrations

- **Native MCP Server Ready**: Connect directly as a remote tool in **Claude Desktop**, **Cursor IDE**, **ChatGPT**, **LangChain**, and **CrewAI** via Apify MCP (`https://mcp.apify.com`) — **No Login & No Cookies required**.
- **No-Code Workflows**: Plug straight into **n8n**, **Make (Integromat)**, **Zapier**, and webhooks for automated 24/7 price monitoring, deal & restock alerts, and competitor intelligence.

### High-Volume Enterprise API & Custom Scrapers

Need **unlimited throughput**, dedicated raw REST endpoints (zero platform overhead), custom anti-bot scrapers, or private data pipelines for your e-commerce / trading team?

- **Direct Telegram (Fastest — Same-Day Response)**: [**@WinJ_sui**](https://t.me/WinJ_sui) (for dedicated high-speed API keys, custom scrapers, bulk volume discounts & USDT/Bank invoicing)
- Or click **"Message Creator"** on our Apify profile (`nghianguyen2`).

# Actor input Schema

## `action` (type: `string`):

Select the extraction mode, or choose 'auto_start_urls' to paste a mixed list of Tweet URLs, Profile URLs, and Token CAs into Start URLs below.

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

Paste any mix of X/Twitter Tweet URLs (https://x.com/user/status/123), Profile URLs (https://x.com/solana), or Solana/Base Contract Addresses. The scraper automatically detects each item type!

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

List of X handles (without @) to fetch their latest timeline tweets and profile stats (e.g., \['solana', 'elonmusk', 'VitalikButerin']).

## `tweetIdOrUrl` (type: `string`):

Numeric Tweet ID or full https://x.com/user/status/1234567890 URL.

## `username` (type: `string`):

Twitter/X username without @ (e.g. 'elonmusk', 'solana', 'VitalikButerin').

## `batchTweetIds` (type: `string`):

Up to 25 comma-separated numeric Tweet IDs or URLs.

## `contractAddress` (type: `string`):

Solana, Base, Ethereum, or BSC token contract address (e.g. 'DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263').

## `searchQuery` (type: `string`):

Search token ticker or keyword on DexScreener + X (e.g. 'BONK', 'PEPE', 'SOL').

## `chain` (type: `string`):

Filter tokens by blockchain network.

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

Maximum number of tweets or tokens to return per handle or query (1 - 50). No 50-tweet minimum!

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

If enabled, only returns tweets that contain a downloadable video.

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

If enabled, only returns tweets that contain images or media.

## `minimumLikes` (type: `integer`):

Only return tweets with at least this many likes (0 = no filter).

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

Only return tweets with at least this many retweets (0 = no filter).

## `rapidapiKey` (type: `string`):

Optional: Provide a RapidAPI key from https://rapidapi.com/Techssss/api/twitter-x-real-time-data-crypto-x-intel to route through our Cloudflare Global Edge Cache. Leave blank to run directly inside the Actor.

## Actor input object example

```json
{
  "action": "auto_start_urls",
  "startUrls": [
    "https://x.com/solana/status/2125078025377378634",
    "https://x.com/solana"
  ],
  "twitterHandles": [
    "solana"
  ],
  "tweetIdOrUrl": "2124953580662886416",
  "username": "solana",
  "batchTweetIds": "2125078025377378634,1812258574049157405,20",
  "contractAddress": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
  "searchQuery": "BONK",
  "chain": "solana",
  "maxItems": 10,
  "onlyVideo": false,
  "onlyImage": false,
  "minimumLikes": 0,
  "minimumRetweets": 0
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `rawOutput` (type: `string`):

No description

# 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 = {
    "action": "auto_start_urls",
    "startUrls": [
        "https://x.com/solana/status/2125078025377378634",
        "https://x.com/solana"
    ],
    "twitterHandles": [
        "solana"
    ],
    "tweetIdOrUrl": "2124953580662886416",
    "username": "solana",
    "batchTweetIds": "2125078025377378634,1812258574049157405,20",
    "contractAddress": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
    "searchQuery": "BONK",
    "chain": "solana"
};

// Run the Actor and wait for it to finish
const run = await client.actor("nghianguyen2/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 = {
    "action": "auto_start_urls",
    "startUrls": [
        "https://x.com/solana/status/2125078025377378634",
        "https://x.com/solana",
    ],
    "twitterHandles": ["solana"],
    "tweetIdOrUrl": "2124953580662886416",
    "username": "solana",
    "batchTweetIds": "2125078025377378634,1812258574049157405,20",
    "contractAddress": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
    "searchQuery": "BONK",
    "chain": "solana",
}

# Run the Actor and wait for it to finish
run = client.actor("nghianguyen2/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 '{
  "action": "auto_start_urls",
  "startUrls": [
    "https://x.com/solana/status/2125078025377378634",
    "https://x.com/solana"
  ],
  "twitterHandles": [
    "solana"
  ],
  "tweetIdOrUrl": "2124953580662886416",
  "username": "solana",
  "batchTweetIds": "2125078025377378634,1812258574049157405,20",
  "contractAddress": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
  "searchQuery": "BONK",
  "chain": "solana"
}' |
apify call nghianguyen2/twitter-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nghianguyen2/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/eHaBKIWQVqVUv8QtL/builds/ZnN3gCViNzJgVaTzs/openapi.json
