# X (Twitter) Profile Scraper 👤 (bio, followers, latest posts) (`tagadanar/x-profile-scraper`) Actor

Scrape X (Twitter) profiles by handle or URL: name, bio, location, website, joined date, follower, following and post counts, verified type, avatar, banner and the latest posts. No login, no API key. $3.00 per 1,000 profiles, all-in.

- **URL**: https://apify.com/tagadanar/x-profile-scraper.md
- **Developed by:** [Tagada Data](https://apify.com/tagadanar) (community)
- **Categories:** Social media, Lead generation, News
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 1,000 profiles

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

## X (Twitter) Profile Scraper 👤 (bio, followers, latest posts)

Paste X (Twitter) handles or profile URLs and get one clean row per account: name, bio, location, website, joined date, follower / following / post / media / like counts, verified type, full-size avatar, banner, and the account's latest public posts with their likes, reposts, replies and media. No X login, no API key, no developer account, no cookies.

**$3.00 per 1,000 profiles on Free ($2.10 on Gold), plus $0.001 per run. Platform usage is included, and the latest posts are included in the profile price.** No proxy to configure.

### What you get

One row per account you asked for. Fields X does not publish for an account are null.

| Field | What it is |
| --- | --- |
| `input` | The handle or URL as you gave it |
| `handle` | The account's current handle on X |
| `userId` | X's numeric account ID (stable across renames) |
| `name` | Display name |
| `profileUrl` | `https://x.com/<handle>` |
| `bio` | Profile bio, with shortened links expanded |
| `bioLinks` | Links found in the bio |
| `location` | Location as written on the profile |
| `website` | The profile's website link, expanded |
| `joinedAt` | Account creation date (ISO 8601) |
| `followersCount` / `followingCount` | Followers and accounts followed |
| `postsCount` / `mediaCount` / `likesCount` | Total posts, media posts and likes given |
| `isVerified` / `isBlueVerified` / `verifiedType` | Verification: any badge, the blue checkmark, and the type X shows (`Business`, `Government`, ...) |
| `isProtected` / `hasDefaultAvatar` | Protected account; still on the default picture |
| `avatarUrl` / `bannerUrl` | Full-size (400x400) profile picture and the header banner |
| `latestPostId` / `latestPostAt` | Newest post on the public timeline |
| `latestPosts` | Up to `maxPostsPerProfile` latest posts, newest first: `postId`, `url`, `postedAt`, `text`, `lang`, `likeCount`, `repostCount`, `replyCount`, `quoteCount`, `isRepost`, `repostOfHandle`, `isQuote`, `isReply`, `mediaTypes`, `mediaUrls`, `links`, `hashtags` |
| `status` / `statusDetail` | `ok`, or why there is no profile (see below) |
| `scrapedAt` | When the row was fetched (ISO 8601) |

### Who uses it

- **Influencer and partnership teams** checking a shortlist of creators: audience size, bio, website and how recently and how well they post, in one sheet.
- **Sales and research teams** enriching a list of company or founder accounts with follower counts, websites and verification before outreach.
- **Analysts and journalists** snapshotting accounts (counts, bios, latest posts) on a date, for tracking or for an archive.

### Examples

Prefill (two accounts, 5 latest posts each):

```json
{"handles":["NASA","github"]}
```

A list of profile URLs, profile only (no posts):

```json
{"handles":["https://x.com/nytimes","https://twitter.com/BBCWorld","@Reuters"],"maxPostsPerProfile":0}
```

Profiles with their 20 latest posts:

```json
{"handles":["OpenAI","AnthropicAI","nvidia"],"maxPostsPerProfile":20}
```

### Results, zeros and errors

- Every handle you give gets a row. Only rows with `status: "ok"` are charged.
- `not_found`: X says there is no public account under that handle (it does not exist, is suspended, or is protected). Not charged.
- `no_public_posts`: the account exists but shows no public posts; X's public profile card needs at least one. Not charged.
- `rate_limited`: X serves this public data in 15-minute windows shared by everyone reading it. With `waitForQuota` on (the default) a big list waits for the next window and keeps going, up to 4 windows and within your run timeout; whatever is still left is marked `rate_limited`. Re-run those handles about 15 minutes later. Not charged.
- Invalid input ends the run right away with an "Input error: ..." message and only the $0.001 start charge.
- The run status line counts each of these, so a run that hit X's window says so and is never reported as "not found".

### Pricing

- $0.001 per run (start).
- $3.00 per 1,000 profiles on Free, with lower prices on higher Apify plans ($2.10 per 1,000 on Gold). Platform usage is included.
- The latest posts in each row are part of the profile price; accounts that are not found, have no public posts or were rate limited cost nothing.

Set a maximum charge per run in Apify if you want a hard ceiling; the actor stops at it and says so in the status.

### FAQ

**Do I need an X account, cookies or an API key?** No. The actor reads the same public, logged-out profile timeline that X serves to every website that embeds an account's posts.

**How many profiles per run?** Up to 1,000 handles per run. Small lists finish in seconds; in our tests a list of about 150 accounts returned over 100 profiles in under 4 minutes, and the rest came back as `rate_limited`. Large lists are paced by X's 15-minute windows, which everyone reading this public data shares, so how many you get per window varies; split big lists into runs spread over time, and re-run the `rate_limited` handles.

**Why is the post count in `latestPosts` sometimes lower than I asked?** X's public timeline shows a limited number of recent posts (often 20, up to 100 for very active accounts), and replies to other accounts are not part of it.

**Can I get followers lists or search results?** No: this actor returns the profile and its latest public posts. For an ongoing feed of new posts from a list of accounts, see our X (Twitter) Watchlist actor.

### Data use

The data comes from X's public, logged-out embedded timeline. Profiles are personal data where they describe a person: use the output under the law that applies to you (GDPR in the EU) and X's terms, for a legitimate purpose, and do not use it for spam.

# Changelog

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

# Actor input Schema

## `handles` (type: `array`):

One account per line: a handle (NASA or @NASA) or a profile URL (https://x.com/NASA, twitter.com/NASA; a post URL works too). Duplicates are removed. Up to 1,000 per run.

## `maxPostsPerProfile` (type: `integer`):

How many of the account's latest public posts to include in its row (text, date, likes, reposts, replies, media, links). 0 = profile only. Included in the profile price.

## `waitForQuota` (type: `boolean`):

X serves this public data in 15-minute windows. On: when a window is used up, the run waits for the next one and keeps going (up to 4 windows, within your run timeout). Off: the run stops and lists the remaining handles as rate_limited (never charged).

## Actor input object example

```json
{
  "handles": [
    "NASA",
    "github"
  ],
  "maxPostsPerProfile": 5,
  "waitForQuota": true
}
```

# Actor output Schema

## `dataset` (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 = {
    "handles": [
        "NASA",
        "github"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("tagadanar/x-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 = { "handles": [
        "NASA",
        "github",
    ] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tagadanar/x-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/DCTV0m9sygWOvWkpa/builds/1HOFPhIjT3WqC2jQU/openapi.json
