# Twitter followers scraper (`curious_coder/twitter-scraper`) Actor

Scrape followers, following and subscriptions list of any twitter profile

- **URL**: https://apify.com/curious_coder/twitter-scraper.md
- **Developed by:** [Curious Coder](https://apify.com/curious_coder) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 2,696 total users, 7 monthly users, 10.9% runs succeeded, 44 bookmarks
- **User rating**: 1.16 out of 5 stars

## Pricing

from $0.50 / 1,000 results

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?

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

### What can you scrape

You can scrape twitter followers, following and subscripions of any user with this scraper.

### Why scrape followers

People often follow others because they are interested in the content they share. This could include tweets about a specific topic, industry, hobby, or passion that aligns with the follower's interests.

You can scrape followers of accounts which are similar to yours on Twitter for various purposes, such as increasing your own followers, promoting your content, or spreading a message

### What types of data you can get

| 🔒 Can DM                       | 📷 Can Media Tag              | 🕒 Created At                   |
| ------------------------------ | ---------------------------- | ------------------------------ |
| 🌐 Entities                     | 🔢 Fast Followers Count        | ❤️ Favourites Count             |
| 👥 Followers Count              | 👫 Friends Count              | 🌐 Has Custom Timelines        |
| 🗣 Is Translator                | 📊 Listed Count               | 🌍 Location                    |
| 📸 Media Count                  | 🚻 Name                       | #️⃣ Normal Followers Count       |
| 📌 Pinned Tweet IDs            | 🚫 Possibly Sensitive         | 🖼 Profile Banner URL          |
| 🖼 Profile Image URL           | 🚸 Profile Interstitial Type  | 👤 Screen Name                  |
| 📊 Statuses Count               | 🔍 Translator Type            | 🔗 URL                         |
| ✔ Verified                      | ✔ Verified Type              | 🔄 Want Retweets               |
| 🏳 Withheld in Countries        | 🆔 ID                         |  📝 Description                 |
| 🤝 Affiliates Highlighted Label | 📘 Has Graduated Access       | 🔵 Is Blue Verified             |
| 📐 Profile Image Shape          | 💼 Professional Type          | 📱 Super Follow Eligible       |
| 📵 Verified Phone Status        | 📽️ Professional Category     |

### Getting Started

Install [Cookie-Editor](https://chromewebstore.google.com/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm) chrome extension

Login to your twitter account

Click on the extension and export the twitter cookies

Paste the cookies into this actor's `cookie` input field

### Related Scrapers

To extract replies and comments from tweets, use the [Twitter Replies Scraper](https://apify.com/curious_coder/twitter-replies-scraper) which captures all users who replied to specific tweets along with their comment content. For collecting users who liked tweets, the [Twitter Likes Scraper](https://apify.com/curious_coder/twitter-likes-scraper) extracts complete engagement data. For Facebook data, the [Facebook Group Member Scraper](https://apify.com/curious_coder/facebook-group-member-scraper) collects member information from groups, while the [Facebook Post Scraper](https://apify.com/curious_coder/facebook-post-scraper) extracts posts with engagement metrics. For LinkedIn outreach, check out the [LinkedIn Profile Scraper](https://apify.com/curious_coder/linkedin-profile-scraper) and [LinkedIn People Search Scraper](https://apify.com/curious_coder/linkedin-people-search-scraper). Browse [all available scrapers](https://apify.com/curious_coder) to find the right tool for your data needs.

### Integrations

You can use [Make](https://www.make.com/en/register?pc=growthhack) to integrate twitter followers scraper to any other SaaS platform by designing your own automation flows.

### Sample output

Here is the sample output of this actor:

```json
{
	"can_dm": true,
	"can_media_tag": false,
	"created_at": "Wed Jul 17 00:04:53 +0000 2019",
	"default_profile": true,
	"default_profile_image": false,
	"description": "Wizkid fc • 🦅I| Chealsea💙 Best Club in England🏆",
	"entities": {
		"description": {
			"urls": []
		},
		"url": {
			"urls": [
				{
					"display_url": "instagram.com/bigkay_5?igshi…",
					"expanded_url": "https://instagram.com/bigkay_5?igshid=MmVlMjlkMTBhMg%3D%3D&utm_source=qr",
					"url": "https://t.co/pV0buvKfad",
					"indices": [
						0,
						23
					]
				}
			]
		}
	},
	"fast_followers_count": 0,
	"favourites_count": 36576,
	"followers_count": 3596,
	"friends_count": 2894,
	"has_custom_timelines": false,
	"is_translator": false,
	"listed_count": 1,
	"location": "",
	"media_count": 1516,
	"name": "KAYLEE🦅💙",
	"normal_followers_count": 3596,
	"pinned_tweet_ids_str": [
		"1708528290091209059"
	],
	"possibly_sensitive": false,
	"profile_banner_url": "https://pbs.twimg.com/profile_banners/1151281581769859073/1694370587",
	"profile_image_url_https": "https://pbs.twimg.com/profile_images/1706024469532172288/0qXKM5_I_normal.jpg",
	"profile_interstitial_type": "",
	"screen_name": "_kkaylee05",
	"statuses_count": 12840,
	"translator_type": "none",
	"url": "https://t.co/pV0buvKfad",
	"verified": false,
	"want_retweets": false,
	"withheld_in_countries": [],
	"__typename": "User",
	"id": "1151281581769859073",
	"rest_id": "1151281581769859073",
	"affiliates_highlighted_label": {},
	"has_graduated_access": true,
	"is_blue_verified": true,
	"profile_image_shape": "Circle",
	"verified_phone_status": false
}
```

# Changelog

This Actor's version history is a separate document: https://apify.com/curious_coder/twitter-scraper/changelog.md

# Actor input Schema

## `cookie` (type: `array`):

Cookies are used to authorize the actor with twitter<br><br> Follow these steps to get the cookies: <ol> <li>Install [Cookie-Editor](https://chromewebstore.google.com/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm) chrome extension</li> <li> Login to your twitter account </li> <li> Click on the extension and export the twitter cookies </li> <li>Paste the copied contents here</li> </ol> <p> \<a href=https://youtu.be/YuKp9BlVgNM target=\_blank>\<img src=https://www.youtube.com/s/desktop/66e817d4/img/favicon_32x32.png width=16px> Video - How to get cookies (0:14)</a>

## `profileUrl` (type: `string`):

To scrape followers, following, subscribers, etc

## `friendshipType` (type: `string`):

No description

## `cursor` (type: `string`):

Cursor value to resume scraping from

## `count` (type: `integer`):

No description

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

You can use proxy from your account's country if needed for extra safety.

## `minDelay` (type: `integer`):

Minimum duration in seconds to wait before scraping next page

## `maxDelay` (type: `integer`):

Maximum duration in seconds to wait before scraping next page

## `storeId` (type: `string`):

If you want to use an existing storage, enter the store ID or name of the store. Make sure you've assigned a name to the store because unnamed stores will be auto deleted after a few days

## Actor input object example

```json
{
  "profileUrl": "https://twitter.com/elonmusk",
  "friendshipType": "followers",
  "count": 100,
  "minDelay": 3,
  "maxDelay": 15
}
```

# 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 = {
    "profileUrl": "https://twitter.com/elonmusk",
    "friendshipType": "followers",
    "count": 100,
    "minDelay": 3,
    "maxDelay": 15
};

// Run the Actor and wait for it to finish
const run = await client.actor("curious_coder/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 = {
    "profileUrl": "https://twitter.com/elonmusk",
    "friendshipType": "followers",
    "count": 100,
    "minDelay": 3,
    "maxDelay": 15,
}

# Run the Actor and wait for it to finish
run = client.actor("curious_coder/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 '{
  "profileUrl": "https://twitter.com/elonmusk",
  "friendshipType": "followers",
  "count": 100,
  "minDelay": 3,
  "maxDelay": 15
}' |
apify call curious_coder/twitter-scraper --silent --output-dataset

```

## MCP server setup

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