# Twitter X Following Scraper (`igview-owner/twitter-x-following-scraper`) Actor

Extract following lists from any public Twitter (X) account at scale. Get comprehensive profile data (bio, counts, images, location), multi-user batching, and clean CSV/JSON exports. Perfect for network analysis, competitor research, influencer discovery.

- **URL**: https://apify.com/igview-owner/twitter-x-following-scraper.md
- **Developed by:** [Sachin Kumar Yadav](https://apify.com/igview-owner) (community)
- **Categories:** Social media, Automation, Lead generation
- **Stats:** 246 total users, 3 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 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.
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 Following Scraper

> **Unlock the Power of Network Intelligence** - Extract comprehensive following data from any Twitter X account with unprecedented precision and speed. Perfect for network analysis, competitor research, and influencer discovery.

[![Apify Actor](https://img.shields.io/badge/Apify-Actor-00D4AA?style=flat-square\&logo=apify)](https://apify.com)
[![Twitter API](https://img.shields.io/badge/Twitter-API-1DA1F2?style=flat-square\&logo=twitter)](https://twitter.com)
[![Node.js](https://img.shields.io/badge/Node.js-18+-339933?style=flat-square\&logo=node.js)](https://nodejs.org)

***

### 📋 Table of Contents

- [🚀 Quick Start](#-quick-start)
- [✨ Key Features](#-key-features)
- [🎯 Use Cases](#-use-cases)
- [📊 Data Output](#-data-output)
- [⚙️ Configuration](#️-configuration)
- [💡 Pro Tips](#-pro-tips)
- [🔧 API Integration](#-api-integration)
- [📈 Performance](#-performance)
- [🌐 Network Analysis](#-network-analysis)
- [❓ FAQ](#-faq)
- [🆘 Support](#-support)

***

### 🚀 Quick Start

**Transform your network analysis in 3 simple steps:**

1. **Add Target Usernames** - Enter Twitter X usernames whose following lists you want to analyze
2. **Configure Settings** - Set following extraction limits for optimal performance
3. **Extract & Analyze** - Get comprehensive following data for network mapping

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

const client = new ApifyApi({
    token: '<YOUR_API_TOKEN>',
});

const input = {
    usernames: ['KylieJenner', 'KimKardashian'],
    max_following_per_user: 1000
};

const run = await client.actor("your-username/twitter-x-following-scraper").call(input);
console.log(run.defaultDatasetItems);
```

***

### ✨ Key Features

#### 🎯 **Precision Network Mapping**

- Extract following lists from any public Twitter X account
- Support for multiple username formats (@username, username, full URLs)
- Batch processing for multiple accounts simultaneously
- Advanced network analysis capabilities

#### 📊 **Rich Data Collection**

- **Profile Information**: Names, bios, profile images, locations
- **Engagement Metrics**: Followers, following, tweets, media counts
- **Verification Status**: Twitter Blue and legacy verification badges
- **Account Details**: Creation dates, business accounts, affiliates
- **Network Insights**: Following patterns and relationship mapping

#### ⚡ **Enterprise Performance**

- **High-Speed Processing**: Extract thousands of followers per minute
- **Smart Rate Limiting**: Automatic request throttling to avoid blocks
- **Robust Error Handling**: Continues processing even if some accounts fail
- **Scalable Architecture**: Handle multiple API keys for increased throughput

#### 🔒 **Reliability & Compliance**

- **Real-time Data**: Always fresh, up-to-date follower information
- **Error Recovery**: Automatic retries and failover mechanisms
- **Data Integrity**: Comprehensive validation and cleaning

***

### 🎯 Use Cases

| Use Case | Description | Benefits |
|----------|-------------|----------|
| 🕸️ **Network Analysis** | Map social networks and relationship patterns | Deep insights, network visualization |
| 🔍 **Competitor Research** | Analyze who competitors are following | Strategic intelligence, market positioning |
| 🎯 **Influencer Discovery** | Find influencers through following patterns | Quality partnerships, targeted outreach |
| 📈 **Market Intelligence** | Study industry networks and key players | Competitive advantage, trend identification |
| 🤝 **Partnership Opportunities** | Identify potential collaborators and partners | Business growth, strategic alliances |
| 📊 **Social Graph Mapping** | Understand social hierarchies and connections | Community insights, relationship analysis |
| 🎪 **Brand Intelligence** | Monitor brand associations and networks | Brand positioning, reputation insights |
| 🚀 **Growth Strategy** | Identify key accounts for strategic following | Organic growth, network expansion |

***

### 📊 Data Output

Each following record contains comprehensive information:

#### 👤 **Profile Data**

```json
{
  "user_id": "1234567890",
  "screen_name": "example_user",
  "name": "Example User",
  "description": "Digital marketing expert 🚀",
  "profile_image": "https://pbs.twimg.com/profile_images/...",
  "location": "San Francisco, CA",
  "website": "https://example.com"
}
```

#### 📈 **Engagement Metrics**

```json
{
  "statuses_count": 1250,
  "followers_count": 5420,
  "friends_count": 890,
  "media_count": 156
}
```

#### ✅ **Verification & Status**

```json
{
  "blue_verified": true,
  "verified": false,
  "can_dm": true,
  "business_account": null,
  "created_at": "Wed Mar 15 12:30:45 +0000 2023"
}
```

***

### ⚙️ Configuration

#### 🎛️ **Input Parameters**

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `usernames` | Array | ✅ | Twitter X usernames to extract following lists from |
| `max_following_per_user` | Integer | ❌ | Maximum following accounts per user (default: 1000) |

#### 🔧 **Advanced Settings**

```json
{
  "usernames": ["KylieJenner", "elonmusk", "@sundarpichai"],
  "max_following_per_user": 5000
}
```

**Username Format Support:**

- ✅ `username` - Simple username
- ✅ `@username` - With @ symbol
- ✅ `https://twitter.com/username` - Full Twitter URL
- ✅ `https://x.com/username` - X.com URL

***

### 💡 Pro Tips

#### 🚀 **Maximize Performance**

- **Batch Processing**: Add multiple usernames to process them efficiently
- **Optimal Limits**: Use 1000-5000 following accounts per user for best speed/data balance
- **Network Mapping**: Extract following lists from key industry players

#### 🎯 **Data Quality**

- **Regular Updates**: Run extractions regularly to track following changes
- **Data Validation**: Always validate extracted data before network analysis
- **Quality Filtering**: Focus on verified and high-engagement accounts

#### 📊 **Analysis Strategies**

- **Network Overlap**: Compare following lists across different accounts
- **Influence Patterns**: Analyze following relationships and hierarchies
- **Trend Tracking**: Monitor following changes and network evolution
- **Community Detection**: Identify clusters and communities within networks

***

### 📈 Performance

#### ⚡ **Speed Benchmarks**

| Following | Processing Time | API Requests |
|-----------|----------------|--------------|
| 1,000 | ~2-3 minutes | 10-15 requests |
| 5,000 | ~8-12 minutes | 50-75 requests |
| 10,000 | ~15-25 minutes | 100-150 requests |

#### 🔄 **Rate Limiting**

- **Smart Throttling**: Automatic delays between requests
- **Error Recovery**: Automatic retries on temporary failures

### 🌐 Network Analysis

#### 🔗 **Relationship Mapping**

- **Following Patterns**: Understand who influences whom in your industry
- **Network Clusters**: Identify communities and interest groups
- **Influence Hierarchies**: Map social influence and authority structures

#### 📊 **Advanced Analytics**

- **Network Overlap Analysis**: Find common connections between accounts
- **Trend Identification**: Spot emerging influencers and thought leaders
- **Community Detection**: Discover niche communities and specialized networks

#### 🎯 **Strategic Applications**

- **Competitor Intelligence**: See who your competitors are following for strategic insights
- **Partnership Discovery**: Find potential collaborators through network analysis
- **Market Research**: Understand industry relationships and key players

***

### ❓ FAQ

#### **Q: How many following accounts can I extract?**

**A:** You can extract up to 50,000 following accounts per username. For optimal performance, we recommend 1,000-5,000 following accounts per run.

#### **Q: What data do I get for each following account?**

**A:** Complete profile information including username, display name, bio, follower counts, verification status, profile image, location, and more.

#### **Q: Can I extract following lists from private accounts?**

**A:** No, the scraper only works with public Twitter X accounts due to API limitations.

#### **Q: How is this different from follower extraction?**

**A:** This scraper extracts who a user is following (their following list), not who follows them. Perfect for network analysis and understanding influence patterns.

#### **Q: How often should I run the scraper?**

**A:** For network monitoring, run weekly or monthly. For competitive analysis, quarterly runs are often sufficient.

#### **Q: Is the data real-time?**

**A:** Yes, all data is fetched in real-time directly from Twitter X's API.

#### **Q: What happens if an account is suspended or deleted?**

**A:** The scraper will skip unavailable accounts and continue processing others, logging any errors.

#### **Q: Can I analyze network relationships?**

**A:** Yes! The data is perfect for network analysis, relationship mapping, and identifying influence patterns between accounts.

#### **Q: How do I handle large datasets for network analysis?**

**A:** Use Apify's dataset API to process data in chunks, or export to CSV/JSON for network visualization tools like Gephi or Cytoscape.

***

### 🆘 Support

#### 📞 **Get Help**

- 📧 **Email Support**: Contact us for technical assistance
- 📚 **Documentation**: Comprehensive guides and examples
- 💬 **Community**: Join our developer community
- 🐛 **Bug Reports**: Report issues for quick resolution

#### 🔄 **Updates & Maintenance**

- ✅ Regular updates for API changes
- 🛡️ Security patches and improvements
- 📈 Performance optimizations
- 🆕 New features based on user feedback

***

**Ready to unlock the power of Twitter X network intelligence?** 🚀

Start your network analysis journey today and transform how you understand social connections, influence patterns, and industry relationships!

***

*Built with ❤️ for the Apify community*

#### Search Me

Twitter Following Scraper, Twitter Following scraper apify, Twitter following scraper download, Twitter following scraper hack, export twitter following list, twitter following tracker, export twitter following list free, twitter following list viewer, twitter following manager, X scraper Apify, X follower scraper online, Twitter followers scraper github.

# Actor input Schema

## `usernames` (type: `array`):

📝 List of Twitter X usernames to extract following lists from. Supports usernames with or without @ symbol (e.g., 'elonmusk' or '@elonmusk'), full URLs (https://twitter.com/elonmusk), or X.com URLs. You can add multiple usernames for batch processing.

## `max_following_per_user` (type: `integer`):

🔢 Maximum number of following accounts to extract per username. Higher values will take longer to process but provide more comprehensive network data. Recommended: 1000-5000 for balanced performance and thorough analysis.

## Actor input object example

```json
{
  "usernames": [
    "KylieJenner",
    "KimKardashian"
  ],
  "max_following_per_user": 10
}
```

# 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 = {
    "usernames": [
        "KylieJenner",
        "KimKardashian"
    ],
    "max_following_per_user": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("igview-owner/twitter-x-following-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 = {
    "usernames": [
        "KylieJenner",
        "KimKardashian",
    ],
    "max_following_per_user": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("igview-owner/twitter-x-following-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 '{
  "usernames": [
    "KylieJenner",
    "KimKardashian"
  ],
  "max_following_per_user": 10
}' |
apify call igview-owner/twitter-x-following-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,igview-owner/twitter-x-following-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/HulvnTVTJCOwkBusU/builds/62igFfeeTOGXyA914/openapi.json
