# Scrape Twitter (X) Followings by Username - No Login Required (`patient_discovery/twitter-followings`) Actor

Extract Twitter followings without login or cookies. Enter a username and get the accounts they follow including profile bio, followers count, tweet stats, and profile images in JSON or CSV. Ideal for influencer research, network analysis, and lead generation.

- **URL**: https://apify.com/patient_discovery/twitter-followings.md
- **Developed by:** [Surge Street](https://apify.com/patient_discovery) (community)
- **Categories:** Social media, Lead generation, Other
- **Features:** Limited permissions
- **Stats:** 25 total users, 4 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.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.
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) Followings Scraper - No Login Required**

## **What does this scraper do?**

This actor extracts the accounts followed by any public Twitter user using their username.

Enter a username, run the actor, and receive structured profile data for all accounts that the user follows.

The output includes profile metadata such as usernames, bios, follower counts, tweet statistics, and account creation dates.

No Twitter login, no cookies, and no session management required.

Cookieless architecture ensures reliable and scalable data extraction without authentication risks.

## **Why scrape Twitter followings?**

Twitter followings reveal network relationships, influence circles, and industry connections. This makes them useful for:

- Identifying influencer networks
- Discovering emerging industry voices
- Mapping professional communities
- Building targeted prospect lists
- Analyzing competitor partnerships
- Finding potential collaborators
- Enriching CRM systems with social profiles

By analyzing who influential accounts follow, businesses can uncover valuable opportunities and audience insights.

## **How much will scraping cost?**

The pricing for this actor is **$2.50 per 1,000 scraped results**. Refer to the pricing page.

Since the scraper operates without authentication or API limits, it offers stable and predictable performance for large-scale data extraction.

## **How to use the scraper**

Here is a **step-by-step guide**:

**Step 1: Enter the username:**\
Input the target Twitter handle in the `userId` field without the @ symbol.

Example:

```
elonmusk
```

**Step 2: Configure extraction scope:**\
Adjust pagination or result limits depending on how many followings you want to extract.

**Step 3: Start the run:**\
Click Start to begin extraction. The actor will retrieve publicly available profiles followed by the target user.

**Step 4: Export or integrate:**\
Download results in JSON, CSV, or Excel format, or connect via API to your analytics or CRM systems.

## **Input parameters**

**Input example**

```json
{
  "userId": "elonmusk",
  "maxPages": 10
}
```

| Field | Type | Description |
|------|------|-------------|
| userId | String | Twitter username without the @ symbol |
| maxPages | Number | Number of pages of followings to extract |

## **What data does this scraper extract?**

**Formats:** JSON, CSV, Excel

**Each following profile includes:**

- `user_id` - Unique Twitter user identifier
- `screen_name` - Twitter username/handle
- `name` - Display name
- `description` - Profile bio text
- `profile_image` - Profile picture URL
- `statuses_count` - Total number of tweets
- `followers_count` - Number of followers
- `friends_count` - Number of accounts followed
- `media_count` - Total media items shared
- `created_at` - Account creation timestamp

All data is returned in structured JSON format suitable for analytics, CRM enrichment, and influencer marketing research.

### Sample Output

```json
[
  {
    "user_id": "44196397",
    "screen_name": "elonmusk",
    "name": "Elon Musk",
    "description": "Tesla, SpaceX, Neuralink, xAI",
    "profile_image": "https://pbs.twimg.com/profile_images/example.jpg",
    "statuses_count": 52847,
    "followers_count": 210458392,
    "friends_count": 856,
    "media_count": 4521,
    "created_at": "Tue Jun 02 20:12:29 +0000 2009"
  },
  {
    "user_id": "813286",
    "screen_name": "BarackObama",
    "name": "Barack Obama",
    "description": "Dad, husband, President, citizen.",
    "profile_image": "https://pbs.twimg.com/profile_images/example2.jpg",
    "statuses_count": 17943,
    "followers_count": 131847205,
    "friends_count": 610,
    "media_count": 1289,
    "created_at": "Mon Mar 05 22:08:25 +0000 2007"
  }
]
```

This dataset is ideal for influencer discovery, network mapping, competitive analysis, and audience research.

## **Key Features:**

- 📈 Extract Twitter followings by username
- 📊 Capture detailed profile data for each followed account
- ⚡ Structured JSON output for analytics and automation
- 📈 Identify influential accounts within networks
- 📊 Export-ready formats including JSON, CSV, and Excel
- ⚡ Scalable architecture for large follower networks
- 🔒 Fully cookieless architecture with no login required

## **FAQs**

**Does this scraper require Twitter login?**\
No. It operates fully cookieless without authentication.

**Can it extract followings from private accounts?**\
No. Only publicly accessible accounts can be scraped.

**Is this useful for influencer marketing?**\
Yes. Followings often reveal industry connections and collaboration opportunities.

**Other Twitter scrapers that you may find useful:**

[Twitter Search Scraper](https://apify.com/patient_discovery/twitter-search)

[Twitter User Scraper](https://apify.com/patient_discovery/twitter-user)

[Twitter User Tweets Scraper](https://apify.com/patient_discovery/twitter-user-tweets)

[Twitter Followers Scraper](https://apify.com/patient_discovery/twitter-followers)

[Twitter Followings Scraper](https://apify.com/patient_discovery/twitter-followings)

[Twitter Comments Scraper](https://apify.com/patient_discovery/twitter-comments)

[Twitter Trends by Location Scraper](https://apify.com/patient_discovery/twitter-trends-by-location)

[Twitter List Members Scraper](https://apify.com/patient_discovery/twitter-list-members)

[Twitter Community Members Scraper](https://apify.com/patient_discovery/twitter-community-members)

# Actor input Schema

## `userId` (type: `string`):

Username

## `maxPages` (type: `integer`):

Maximum number of pages to fetch (pagination handled automatically)

## Actor input object example

```json
{
  "userId": "elonmusk",
  "maxPages": 1
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("patient_discovery/twitter-followings").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("patient_discovery/twitter-followings").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 '{}' |
apify call patient_discovery/twitter-followings --silent --output-dataset

```

## MCP server setup

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

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/of8D1LFwFeFP9J3ve/builds/bpQpONJVtOkwRC9x9/openapi.json
