# X (Twitter) User Profile Scraper (`automly/x-twitter-user-profile-scraper`) Actor

Scrape X (Twitter) user profiles in bulk: followers, following, tweet count, bio, location, website, join date, checkmark type, profile picture and banner. No login.

- **URL**: https://apify.com/automly/x-twitter-user-profile-scraper.md
- **Developed by:** [Automly](https://apify.com/automly) (community)
- **Categories:** Social media
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.30 / 1,000 profiles

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## X (Twitter) User Profile Scraper

### What is X (Twitter) User Profile Scraper?

**X (Twitter) User Profile Scraper** is a tool that lets you **scrape X (Twitter) user profiles in bulk**: follower and following counts, tweet and media counts, bio, location, website, join date, checkmark type, organization badge, profile picture and banner. Paste usernames, click **Start**, and download the profiles as Excel, CSV or JSON.

- ⚡ **Speed:** about 840 profiles per minute (210 profiles in 15 seconds in our test)
- 🔢 **Bulk:** up to 10,000 usernames in one run, no minimum
- ✅ **Checkmarks:** blue, gold (business) and grey (government), plus the organization badge
- 🔓 **No login:** no X account, cookies or API key needed

### What can X (Twitter) User Profile Scraper do?

- Get **follower counts** for a list of X accounts
- Get **bio, location, website and join date** of any public profile
- Check which accounts have a **blue, gold or grey checkmark**
- See the **organization badge** an account shows (for example, the company it works for)
- Download **profile pictures and banners**
- **Track follower growth** by scraping the same accounts on a schedule
- Get results in seconds over the **real-time API**, without starting a run
- Export to Excel, CSV, JSON, HTML or XML, or send them to Google Sheets, Make, Zapier and more

### What data can you extract from X (Twitter) profiles?

| | | |
|---|---|---|
| 👤 Username and display name | 👥 Followers | ➡️ Following |
| 📝 Tweet count | 🖼️ Media count | ❤️ Likes given |
| 🗒️ Bio (links expanded) | 📍 Location | 🔗 Website |
| 📅 Join date | ✅ Checkmark type | 🏢 Organization badge |
| 🧑‍💼 Professional category | 🔒 Protected or public | 📌 Pinned tweet |
| 📷 Profile picture (400x400) | 🌄 Banner | 🆔 User ID |

### How to scrape X (Twitter) profiles

1. [Create a free Apify account](https://console.apify.com/sign-up) (no credit card needed).
2. Open **X (Twitter) User Profile Scraper**.
3. Paste one or more **usernames or profile links**.
4. Click **Start**.
5. When the run finishes, download your profiles as Excel, CSV, JSON, HTML or XML.

### ⬇️ Input

Usernames can be written as `NASA`, `@NASA`, or a link (`https://x.com/NASA`, `https://twitter.com/NASA`). The same account written two ways is scraped once.

| Setting | What it does |
|---|---|
| Usernames or profile URLs | The accounts to scrape, up to 10,000 per run |

Example:

```json
{
  "usernames": ["NASA", "@SpaceX", "https://x.com/USSpaceForce"]
}
```

### ⬆️ Output

You get one row per account. You can view them as a table in Apify Console or download them as Excel, CSV, JSON, HTML or XML. A real row:

```json
{
  "id": "26572460",
  "username": "USSpaceForce",
  "name": "United States Space Force",
  "url": "https://x.com/USSpaceForce",
  "description": "Official U.S. Space Force X: The appearance of hyperlinks does not = endorsement. Comment moderation & endorsement policy: https://www.af.mil/Disclaimer",
  "location": "Washington D.C.",
  "website": "https://www.spaceforce.mil/",
  "createdAt": "2009-03-25T19:41:08Z",
  "followers": 725120,
  "following": 717,
  "tweets": 13148,
  "mediaCount": 2745,
  "likesGiven": 4771,
  "isBlueVerified": true,
  "verifiedType": "Government",
  "isProtected": false,
  "affiliation": "Department of War 🇺🇸",
  "professionalType": "Business",
  "profileImageUrl": "https://pbs.twimg.com/profile_images/1839021693961990144/Lgi_WnUj_400x400.jpg",
  "bannerUrl": "https://pbs.twimg.com/profile_banners/26572460/1749147909",
  "pinnedTweetIds": [],
  "source": "USSpaceForce",
  "fetchedAt": "2026-09-25T00:50:01Z"
}
```

`source` is the username or link you entered. Each run also saves a short report listing any account it could not scrape and why (for example, a suspended or mistyped username).

### How can I use X (Twitter) profile data?

- **Influencer discovery:** compare follower counts and activity across a list of creators
- **Lead research:** get the website, location and bio of accounts in your market
- **Follower tracking:** run the same list daily and chart follower growth
- **Account verification checks:** see which accounts carry a checkmark or an organization badge
- **CRM enrichment:** add X profile details to the contacts or companies you already have

### Real-time X (Twitter) profile API

Need profile details right away inside your app? Call the actor's API and get the rows back in the response, without starting a run:

```
GET https://<your-actor-standby-url>/user?username=NASA&username=SpaceX
Authorization: Bearer <YOUR_APIFY_TOKEN>
```

You can also run the actor from your own code with the [Apify API](https://docs.apify.com/api/v2) or the Python and JavaScript clients:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("automly/x-twitter-user-profile-scraper").call(run_input={
    "usernames": ["NASA", "SpaceX"],
})
for profile in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(profile["username"], profile["followers"])
```

### ❓FAQ

#### How much does it cost to scrape X (Twitter) profiles?

$0.30 per 1,000 profiles ($0.0003 per profile), plus $0.00005 per run at the default settings. You pay only for the profiles you get, and the **Pricing** tab always shows the current price. Every Apify account gets $5 of free usage each month, enough for about 16,000 profiles, so you can try it at no cost.

#### Can I get the list of an account's followers?

No. X does not show follower and following lists to visitors who are not logged in. You get the follower and following counts of each account.

#### Can I get an account's tweets too?

Use [X (Twitter) Profile Tweets Scraper](https://apify.com/automly/x-twitter-profile-tweets-scraper). It returns the same profile info plus the account's latest tweets.

#### Does it return email addresses or phone numbers?

No. It only collects what the profile shows publicly. If an account put an email in its bio, it appears as part of the bio text.

#### Can I scrape protected accounts?

You get the profile info X shows to visitors who are not logged in, and `isProtected` is `true` so you can tell them apart. Their tweets stay private. Suspended or mistyped usernames are listed in the run report.

#### Do I need an X account?

No. You don't need an X account, cookies or an API key.

#### Is it legal to scrape X (Twitter)?

This scraper only collects profile information that people chose to make public. It does not collect private data such as email addresses or phone numbers. Profiles can still contain personal data, which may be protected by laws such as GDPR, so only scrape it for a legitimate reason and ask a lawyer if you are unsure. You can read more in [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

X (Twitter) User Profile Scraper is an independent tool. It is not affiliated with, endorsed by or sponsored by X Corp.

#### Something isn't working. What should I do?

Open the **Issues** tab and tell us the username and what you expected. We usually reply within a day.

### Scrape more X (Twitter) data

| Actor | What it does |
|---|---|
| [X (Twitter) Profile Tweets Scraper](https://apify.com/automly/x-twitter-profile-tweets-scraper) | The latest tweets of any public account, with profile info |
| [X (Twitter) Tweet Scraper](https://apify.com/automly/x-twitter-tweet-scraper) | Full details of any tweets by URL or ID |

# Actor input Schema

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

X usernames or profile links, e.g. NASA, @NASA or https://x.com/NASA.

## `proxyConfiguration` (type: `object`):

Proxy settings. The default works for most runs.

## Actor input object example

```json
{
  "usernames": [
    "NASA",
    "SpaceX"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `profiles` (type: `string`):

No description

## `results` (type: `string`):

No description

## `report` (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 = {
    "usernames": [
        "NASA",
        "SpaceX"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("automly/x-twitter-user-profile-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": [
        "NASA",
        "SpaceX",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("automly/x-twitter-user-profile-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": [
    "NASA",
    "SpaceX"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call automly/x-twitter-user-profile-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automly/x-twitter-user-profile-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/dfvQQLegwI2XLTRL1/builds/7WlQzTiKmPR4zNfxu/openapi.json
