# X (Twitter) List Scraper — Members & Tweets (`khadinakbar/x-list-scraper`) Actor

Scrape X/Twitter List members (username, bio, followers, verified) and timeline tweets (text, likes, media, hashtags) by List URL or ID. Playwright browser intercept. MCP-ready.

- **URL**: https://apify.com/khadinakbar/x-list-scraper.md
- **Developed by:** [Khadin Akbar](https://apify.com/khadinakbar) (community)
- **Categories:** Social media, Lead generation, MCP servers
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 x list member founds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

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

## X (Twitter) List Scraper — Members & Tweets

Scrape **X/Twitter List members** and **List timeline tweets** by List URL or numeric ID. Supports bulk lists, pagination, dedup, and retweet filtering. MCP-ready.

**Pricing:** $0.005/member · $0.003/tweet · $0.00005 actor start

***

### What you get

| Mode | Fields |
|------|--------|
| **Members** | userId, username, name, bio, location, followersCount, followingCount, tweetCount, isVerified, isBlueVerified, profileImageUrl, profileUrl |
| **Tweets** | tweetId, authorHandle, authorName, text, fullText, likeCount, retweetCount, replyCount, quoteCount, viewCount, createdAt, hashtags, mediaUrls, isRetweet, isReply, lang, tweetUrl |

***

### Why use this

X Lists are curated user collections — competitors' influence lists, investor radars, journalist rosters, niche community maps. This actor extracts the full member roster and latest tweets from any public list in one run.

**Typical use cases:**

- **Competitor intelligence** — scrape a competitor's "Partners" or "Customers" X List
- **Journalist outreach** — pull members from media-curated reporter lists
- **Influencer mapping** — download all members of a niche creator list with follower counts
- **Feed monitoring** — track latest tweets from any public X List timeline

***

### Setup — cookies required

X/Twitter requires authentication cookies. The actor does **not** store them beyond the run.

1. Open [x.com](https://x.com) in Chrome and log in
2. Press **F12** → **Application** → **Cookies** → `https://x.com`
3. Copy the value of `auth_token` and `ct0`
4. Paste both into the actor input fields

***

### Input

```json
{
  "lists": ["https://x.com/i/lists/1130857490764091392"],
  "mode": "both",
  "auth_token": "YOUR_AUTH_TOKEN",
  "ct0": "YOUR_CT0_TOKEN",
  "maxMembersPerList": 100,
  "maxTweetsPerList": 50,
  "excludeRetweets": false
}
```

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `lists` | string\[] | — | X List URLs (`https://x.com/i/lists/ID`) or numeric IDs |
| `mode` | string | `"both"` | `"members"`, `"tweets"`, or `"both"` |
| `auth_token` | string | — | Your x.com `auth_token` cookie (**required**) |
| `ct0` | string | — | Your x.com `ct0` CSRF cookie (**required**) |
| `maxMembersPerList` | number | 100 | Max members to collect per list (1–1000) |
| `maxTweetsPerList` | number | 50 | Max tweets per list timeline (1–500) |
| `excludeRetweets` | boolean | false | Skip retweets from tweet results |
| `includeRaw` | boolean | false | Attach raw GraphQL response for debugging |

***

### Output sample

**Member row:**

```json
{
  "recordType": "member",
  "listId": "1130857490764091392",
  "username": "elonmusk",
  "name": "Elon Musk",
  "bio": "The people who are crazy enough...",
  "followersCount": 180000000,
  "isBlueVerified": true,
  "profileUrl": "https://x.com/elonmusk",
  "scrapedAt": "2026-08-19T12:00:00.000Z"
}
```

**Tweet row:**

```json
{
  "recordType": "tweet",
  "listId": "1130857490764091392",
  "tweetId": "1825100000000000000",
  "authorHandle": "techcrunch",
  "text": "Breaking: AI startup raises $500M...",
  "likeCount": 1200,
  "retweetCount": 340,
  "createdAt": "Tue Aug 19 09:30:00 +0000 2026",
  "tweetUrl": "https://x.com/techcrunch/status/1825100000000000000",
  "scrapedAt": "2026-08-19T12:00:00.000Z"
}
```

***

### API example

```javascript
const run = await client.actor('khadinakbar/x-list-scraper').call({
  lists: ['https://x.com/i/lists/1130857490764091392'],
  mode: 'both',
  auth_token: process.env.TWITTER_AUTH_TOKEN,
  ct0: process.env.TWITTER_CT0,
  maxMembersPerList: 200,
  maxTweetsPerList: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
const members = items.filter(r => r.recordType === 'member');
const tweets = items.filter(r => r.recordType === 'tweet');
```

***

### Limitations & honest contract

- **Public lists only.** Private lists are inaccessible without membership.
- **Cookies expire.** Refresh `auth_token` + `ct0` every 30 days or when runs fail.
- **X rate limits.** Large lists (1000+ members) may trigger rate limiting; reduce `maxMembersPerList` if needed.
- **No liker identities.** Tweet engagement (likes/views) counts are scraped but liker/retweeter identities are not collected.

***

### Related actors

- [X Tweet Scraper](https://apify.com/khadinakbar/x-tweet-scraper) — keyword/hashtag/profile tweet search
- [X Community Members Scraper](https://apify.com/khadinakbar/x-community-members-scraper) — X Community member extraction
- [Twitter Profile & Followers Scraper](https://apify.com/khadinakbar/twitter-profile-followers-scraper) — full profile + follower data

***

### Legal

This actor accesses publicly available X.com data using your own authenticated session. You are responsible for complying with X's Terms of Service and all applicable laws. The actor author accepts no liability for how scraped data is used.

# Actor input Schema

## `lists` (type: `array`):

One or more X/Twitter List URLs (https://x.com/i/lists/1234567890) or numeric List IDs. Supports public lists only.

## `mode` (type: `string`):

Choose what to collect: members (list subscribers), tweets (list timeline), or both.

## `auth_token` (type: `string`):

Your x.com auth\_token cookie value. Needed only for member roster extraction via browser (Playwright). Without this, the actor uses ScrapeCreators + SociaVault to enrich profiles by handle. Find it: F12 → Application → Cookies → x.com → auth\_token.

## `ct0` (type: `string`):

Your x.com ct0 cookie value. Required alongside auth\_token when using browser mode. Find it: F12 → Application → Cookies → x.com → ct0.

## `maxMembersPerList` (type: `integer`):

Maximum number of list members to collect per list (1–1000). Charged per member found.

## `maxTweetsPerList` (type: `integer`):

Maximum number of tweets to collect per list timeline (1–500). Charged per tweet scraped.

## `excludeRetweets` (type: `boolean`):

When enabled, retweets (posts starting with RT @) are not saved to the dataset.

## `includeRaw` (type: `boolean`):

Attach the raw X.com GraphQL response object to each row for debugging. Increases dataset size.

## Actor input object example

```json
{
  "lists": [
    "https://x.com/i/lists/1130857490764091392"
  ],
  "mode": "both",
  "maxMembersPerList": 100,
  "maxTweetsPerList": 50,
  "excludeRetweets": false,
  "includeRaw": false
}
```

# Actor output Schema

## `datasetItems` (type: `string`):

No description

## `outputSummary` (type: `string`):

No description

## `runSummary` (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 = {
    "lists": [
        "https://x.com/i/lists/1130857490764091392"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("khadinakbar/x-list-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 = { "lists": ["https://x.com/i/lists/1130857490764091392"] }

# Run the Actor and wait for it to finish
run = client.actor("khadinakbar/x-list-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 '{
  "lists": [
    "https://x.com/i/lists/1130857490764091392"
  ]
}' |
apify call khadinakbar/x-list-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,khadinakbar/x-list-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/5JReJdm13JopH4icL/builds/U2xnXLKrLATJcdB6X/openapi.json
