How to Export X (Twitter) Followers and Following Lists: Step-by-Step with Screenshots

Twitter X.com Followers & Following Scraper exports two lists for any public X (Twitter) account: the people who follow it, and the accounts it follows. Every row is a full profile, with follower counts, bio, location, website and emails found in the bio. No X login is needed.

For this walkthrough I ran it on @NASA with both lists at 20 users each. In under 6 seconds it returned 39 rows, and the two lists could hardly be more different:

Below is every step with real Apify Console screenshots, the exact input, a sample row, filters, pricing and code.

What you get

Input Example Result
usernames NASA, @apify The lists of each account
userIds 44196397 Same, by numeric user ID
startUrls https://x.com/apify, https://x.com/apify/followers Same, from profile URLs
getFollowers (default true) Rows with type: "follower"
getFollowing Rows with type: "following"

Every row has type, sourceUser (the account whose list it came from, as you typed it) and its copy searchTerms, plus the profile: username, name, followersCount, followingCount, tweetCount, likeCount, mediaCount, description, location, createdAt, verified, isBlueVerified, profileUrl, avatar and banner, website (expanded link) and emails (addresses found in the bio).

Step 1: Open the Actor

Open Twitter X.com Followers & Following Scraper on Apify and click Try for free. New to Apify? Sign up here to get free monthly credit.

Twitter X.com Followers & Following Scraper on the Apify Store

Step 2: Name the account

On the Input tab, fill in Profile URLs, Usernames or User IDs. Mix them freely, and use Bulk edit to paste many accounts, one per line. I typed NASA.

Input form with Profile URLs, Usernames (NASA) and User IDs

Step 3: Pick the lists (and filters, if you want leads)

Under Lists to scrape, turn on Get followers, Get following, or both. Max users per list (maxItems) is per account and per list, so 20 here means up to 20 followers and up to 20 following for each account.

Filters are optional. They run before results are delivered and charged, so you only pay for users that match:

Lists to scrape, Max users per list and Filters

Step 4: Or paste the input as JSON

Switch to JSON to copy or paste the whole input. This run used:

{
  "usernames": ["NASA"],
  "getFollowers": true,
  "getFollowing": true,
  "maxItems": 20
}

JSON input editor

Step 5: Save & start, then compare the lists

Click Save & start. The run succeeded with 39 results. The Users view shows the profile columns; in this run, the following list came first:

Run output: the accounts NASA follows, led by Hubble and the ISS

Scroll right to Relation (type) and Source account (sourceUser). Where the following rows end and the follower rows begin, the follower counts drop from hundreds of thousands to single digits. (Follower names and bios are blurred in this screenshot; they’re private individuals.)

Following rows with hundreds of thousands of followers next to follower rows with almost none

Here’s a real row from the run (shortened):

{
  "type": "following",
  "id": "14091091",
  "name": "Hubble",
  "username": "NASAHubble",
  "followersCount": 8885248,
  "followingCount": 44,
  "tweetCount": 8536,
  "createdAt": "Thu Mar 06 20:15:02 +0000 2008",
  "location": "Goddard Space Flight Center",
  "isBlueVerified": true,
  "profileUrl": "https://x.com/NASAHubble",
  "website": "http://www.nasa.gov/mission_pages/hubble/main/index.html",
  "emails": [],
  "sourceUser": "NASA",
  "searchTerms": "NASA"
}

The rest of the circle: Space_Station (8.87M), NASAEarth (3.72M), NASAJPL (3.71M), NASAWebb (3.51M), NASASolarSystem, NASAKennedy, NASAJohnson, NASA_es, esa (1.90M), NASAMars, NASAScience_, NASAArtemis, NASAhistory, NASAUniverse, NASAGoddard, NASA_Marshall, chandraxray, airandspace and csa_asc (361K).

Step 6: Export

Click Export on the run page and download JSON, CSV, XML, Excel, HTML Table, RSS or JSONL, from either the Users view or All fields. You can include or omit fields.

Export dataset dialog

Run it from code (Python & Node.js)

Get your token in Settings → API & Integrations.

Python (pip install apify-client):

from apify_client import ApifyClient
from collections import defaultdict

client = ApifyClient("YOUR_APIFY_TOKEN")

run = client.actor("xtdata/twitter-x-followers-following-scraper").call(run_input={
    "usernames": ["NASA"],
    "getFollowers": True,
    "getFollowing": True,
    "maxItems": 20,
})

reach = defaultdict(int)
for user in client.dataset(run["defaultDatasetId"]).iterate_items():
    reach[user["type"]] += user["followersCount"]
print(dict(reach))  # combined followers per list

Node.js (npm install apify-client): followers with an email in the bio, for lead lists:

import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });

const run = await client.actor('xtdata/twitter-x-followers-following-scraper').call({
    startUrls: ['https://x.com/apify'],
    minFollowers: 1000,
    onlyWithEmail: true,
    maxItems: 100,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((u) => [u.username, u.followersCount, u.emails.join(' ')]));

Pricing

Pay per event, no start charge. You pay for each delivered user; filtered-out users are free.

Event Free plan Starter / Scale members (Bronze, Silver) Gold / Platinum / Diamond
Follower (follower) $2.00 / 1,000 $0.50 / 1,000 $0.40 / 1,000
Following (following) $4.00 / 1,000 $1.00 / 1,000 $0.90 / 1,000

The 39-row run above cost $0.12 on the Free plan, which works out to about $0.03 at member rates. Set Maximum cost per run under Run options if you want a hard cap.

Tips

FAQ

Do I need an X account? No. The Actor reads only publicly visible data, without logging in.

Is maxItems per run? No, it’s per account and per list. Two accounts with both lists at maxItems: 100 can return up to 400 rows.

Can I get the followers of a protected account? No, only public data.

Need profiles of specific accounts as well? Use Twitter (X.com) User Info Scraper. It returns the profile of each account you list, plus followers and following.

Ready to map an account’s crowd and circle? Open Twitter X.com Followers & Following Scraper on Apify.