# Twitter Profile Scraper - X.com User & Bio API | $0.10/1K (`kaitoeasyapi/twitter-profile-scraper`) Actor

Twitter Profile Scraper & X.com User API — From $0.10/1K ($0.10/1K Gold+, $0.14/1K Free–Silver · $0 Platform Compute Fee, zero extra CU cost). Extract X user profiles, follower ratios, verified status, bio links & recent tweets without login.

- **URL**: https://apify.com/kaitoeasyapi/twitter-profile-scraper.md
- **Developed by:** [Kaito T](https://apify.com/kaitoeasyapi) (community)
- **Categories:** Social media, Lead generation, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.10 / 1,000 x (twitter) profile 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/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 | From $0.10/1K

> **From $0.10/1K ($0.10/1K Gold+, $0.14/1K Free–Silver · $0 Platform Compute Fee · Free-Plan Live Access)** — Convert any list of **X (Twitter) `@handles`, profile URLs, or numeric user IDs** into structured **account dossiers** complete with verification badges, follower/following ratios, account age, posting cadence, optional recent post snapshots, and opt-in public bio link extraction.

### Key Capabilities

- **Flexible Account Inputs**: Mix full profile URLs (`https://x.com/apify`), `@handles` (`@OpenAI`), bare usernames (`elonmusk`), and numeric `userIds` in a single run. Numeric IDs are automatically batch-resolved for high throughput.
- **Computed Account Intelligence**: Beyond raw profile counters, every record includes `followerToFollowingRatio`, `accountAgeDays`, `avgTweetsPerDay`, expanded website URLs (unwrapping `t.co` entities), `affiliatesLabel`, `isAutomated`, and `pinnedTweetIds`.
- **Optional Recent Posts Snapshot**: Enable `includeRecentTweets` (`recentTweetsCount` `0–20`) to attach each account's latest public posts alongside `avgRecentLikes` and `avgRecentViews` for fast creator vetting.
- **Strictly Opt-In Public Bio Link Parsing**: Keep `extractBioContacts` off (`false` by default) for standard profile analytics, or explicitly enable it to parse publicly displayed emails, phone numbers, domains, and linked social profiles from public bios.
- **Pay Only for Delivered Profiles ($0 Compute Fee)**: Empty inputs, nonexistent handles, and duplicates cost **$0.00**.

### Transparent Pay-Per-Result Pricing

| Apify Plan Tier | Price per 1,000 Profiles | Platform Compute / Start Fees |
| :--- | :--- | :--- |
| **Free / Starter / Bronze / Silver** | **$0.14 / 1K** | **$0 (Included)** |
| **Gold / Platinum / Diamond** | **$0.10 / 1K** | **$0 (Included)** |

### Input Parameters

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `profiles` | `array` | `["https://x.com/apify", "@OpenAI", "elonmusk"]` | Public X/Twitter profile URLs, `@handles`, or plain usernames. |
| `userIds` | `array` | `[]` | Optional numeric X/Twitter user IDs (batch-fetched automatically). |
| `includeRecentTweets` | `boolean` | `false` | Attach each profile's latest public posts with average likes & views. |
| `recentTweetsCount` | `integer` | `5` | Number of recent posts per profile (`0–20`) when `includeRecentTweets` is enabled. |
| `includeRepliesInTimeline` | `boolean` | `false` | Include replies inside the optional recent posts snapshot. |
| `extractBioContacts` | `boolean` | `false` | **Strictly opt-in.** Explicitly enable to parse publicly posted emails, phones, domains, and social links from public bios. |
| `maxItems` | `integer` | `50` | Maximum total profile records to deliver (`1–50,000`). |

#### Quick-Start Input Example

```json
{
  "profiles": [
    "https://x.com/apify",
    "@OpenAI",
    "elonmusk"
  ],
  "includeRecentTweets": true,
  "recentTweetsCount": 5,
  "extractBioContacts": false,
  "maxItems": 50
}
```

### Output Schema Highlights

- **Identity & Verification**: `userId`, `userName`, `name`, `profileUrl`, `description`, `location`, `websiteUrl`, `expandedUrls`, `isVerified`, `isBlueVerified`, `verifiedType`, `isProtected`, `canDm`, `isAutomated`, `automatedBy`, `affiliatesLabel`, `pinnedTweetIds`, `createdAt`, `profilePicture`, `coverPicture`
- **Scale & Velocity Metrics**: `followers`, `following`, `favouritesCount`, `statusesCount`, `mediaCount`, `followerToFollowingRatio`, `accountAgeDays`, `avgTweetsPerDay`
- **Optional Recent Timeline (`includeRecentTweets: true`)**: `recentTweets`, `recentTweetsCount`, `avgRecentLikes`, `avgRecentViews`
- **Opt-In Public Bio Contacts (`extractBioContacts: true`)**: `bioContacts` (`emails`, `primaryEmail`, `phones`, `websites`, `domains`, `socialLinks`)

### Data Compliance & Public Data Notice (GDPR / CCPA)

This Actor only reads **publicly accessible** X (Twitter) profile information and never accesses private or protected accounts. The `extractBioContacts` feature is **strictly opt-in (`default: false`)** and, only when explicitly enabled by the user, parses text and URLs voluntarily published by account holders in their public profile bios and URL entities. You are responsible for ensuring that any collection, storage, or use of personal data complies with **GDPR**, **CCPA**, and all applicable data protection laws in your jurisdiction.

### Complete X (Twitter) Suite — All From $0.10/1K

| Actor on Apify Store | Primary Use Case |
| :--- | :--- |
| [**Tweet Scraper (Enterprise 40+ Filters)**](https://apify.com/kaitoeasyapi/twitter-x-data-tweet-scraper-pay-per-result-cheapest) | Full historical & real-time X search with 40+ query filters |
| [**Twitter Scraper (Fast Lite)**](https://apify.com/kaitoeasyapi/twitter-scraper) | Streamlined 1-click tweet search by keywords, handles, or URLs |
| [**Twitter Follower Scraper**](https://apify.com/kaitoeasyapi/premium-x-follower-scraper-following-data) | Bulk followers & following graphs for any public X account |
| [**X (Twitter) Replies Scraper**](https://apify.com/kaitoeasyapi/twitter-replies-scraper) | Full reply threads, nested reply depth & author metadata |
| [**X (Twitter) Profile Scraper**](https://apify.com/kaitoeasyapi/twitter-profile-scraper) | Full user profiles, computed metrics & optional recent posts |
| [**X (Twitter) User Search Scraper**](https://apify.com/kaitoeasyapi/twitter-user-search-scraper) | Discover X accounts by keyword, niche, role, location & filters |
| [**X (Twitter) Engagement Scraper**](https://apify.com/kaitoeasyapi/twitter-engagement-scraper) | Unified retweeters, quote tweets, replies & post engagement stats |

# Actor input Schema

## `profiles` (type: `array`):

Public X/Twitter profile URLs (https://x.com/elonmusk), @handles (@OpenAI), or plain usernames (apify).

## `userIds` (type: `array`):

Optional numeric X/Twitter user IDs (e.g. \["44196397", "3510729917"]). Batch-fetched automatically alongside profiles.

## `includeRecentTweets` (type: `boolean`):

When enabled, attaches each account's latest public posts along with average likes and views.

## `recentTweetsCount` (type: `integer`):

How many recent public tweets to attach to each profile when Include Recent Posts Snapshot is enabled (0–20).

## `includeRepliesInTimeline` (type: `boolean`):

When fetching recent posts, include reply tweets in addition to original posts.

## `extractBioContacts` (type: `boolean`):

Strictly opt-in (default false). When explicitly enabled, parses publicly posted emails, phone numbers, domains, and social links from each account's public bio text and profile entities.

## `maxItems` (type: `integer`):

Maximum total profiles to deliver in this run (default 50).

## Actor input object example

```json
{
  "profiles": [
    "https://x.com/apify",
    "@OpenAI",
    "elonmusk"
  ],
  "includeRecentTweets": false,
  "recentTweetsCount": 5,
  "includeRepliesInTimeline": false,
  "extractBioContacts": false,
  "maxItems": 50
}
```

# Actor output Schema

## `results` (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 = {
    "profiles": [
        "https://x.com/apify",
        "@OpenAI",
        "elonmusk"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("kaitoeasyapi/twitter-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 = {
    "profiles": [
        "https://x.com/apify",
        "@OpenAI",
        "elonmusk",
    ],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("kaitoeasyapi/twitter-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 '{
  "profiles": [
    "https://x.com/apify",
    "@OpenAI",
    "elonmusk"
  ],
  "maxItems": 50
}' |
apify call kaitoeasyapi/twitter-profile-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kaitoeasyapi/twitter-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/O5eWskKjYpYOCljBJ/builds/ffqilArvPLJkocUMW/openapi.json
