# X Profile Metrics Scraper (`chronometrica/x-profile-metrics`) Actor

Extract public X profile identity, bio, verification, links, and follower, following, post, media, like, and list counts from handles or URLs.

- **URL**: https://apify.com/chronometrica/x-profile-metrics.md
- **Developed by:** [Chronometrica](https://apify.com/chronometrica) (community)
- **Categories:** Social media, Agents, Automation
- **Features:** Limited permissions
- **Stats:** 3 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.75 / 1,000 x profile metric snapshots

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 Profile Metrics Scraper

### 📊 What does X Profile Metrics Scraper do?

X Profile Metrics Scraper turns public X or Twitter profile URLs and handles
into clean profile snapshots. Use it for creator checks, lead lists, account
tracking, reports, and scheduled data updates.

Each input creates one stable row with profile identity, bio, links, account
flags, and public counts.

This Actor reads public logged-out X data. It does not use cookies, log in to
X, collect follower lists, or open private account data.

With X Profile Metrics Scraper, you can:

- 📈 Track follower, following, and post counts.
- 🧑‍💻 Build clean creator or company profile lists.
- ✅ Check verification and account flags.
- 🔗 Collect public bios, websites, and profile links.
- 📦 Export rows to JSON, CSV, Excel, XML, RSS, or an API.

### 📦 What X profile data can I extract?

One dataset row represents one attempted public X profile input.

| Data group          | Example fields                                              |
| ------------------- | ----------------------------------------------------------- |
| 🔗 Profile identity | `input`, `profileId`, `profileUrl`, `handle`, `displayName` |
| 🧾 Public details   | `biography`, `website`, `location`, `joinedAt`              |
| 🖼️ Images           | `avatarUrl`, `bannerUrl`                                    |
| ✅ Account flags    | `isBlueVerified`                                            |
| 📊 Public metrics   | followers, following, posts, media, liked posts, and lists  |
| 🎯 Quality          | `profileMetricStatus`, `status`, `statusReason`             |
| 🕒 Observation      | `observedAt`                                                |

Missing public values stay `null`. They are never changed to a made-up zero.
`profileMetricStatus` shows which counts were exact and which were unavailable.

### ⚙️ Can I use X Profile Metrics Scraper through an API?

Yes. Run it in Apify Console or connect it through:

- Apify API
- Python SDK
- JavaScript SDK
- Webhooks
- Scheduled Tasks
- Apify integrations

### 🎯 Why collect X profile metrics?

| Use case            | How the data helps                                   |
| ------------------- | ---------------------------------------------------- |
| 🧑‍🎨 Creator research | Compare public audience size and account details.    |
| 🧲 Lead lists       | Add stable profile IDs, handles, bios, and websites. |
| 📈 Account tracking | Save repeated public profile snapshots over time.    |
| 🧱 Data pipelines   | Load clean profile rows into a sheet or warehouse.   |

### 💵 Pricing event

The product is designed for pay-per-result pricing. One paid result means one
successfully resolved public profile row. Failed rows are free.

The price ranges from $0.75 to $1.50 per 1,000 results, based on your Apify
plan. Platform usage is included. Use Apify's maximum charge setting to cap
paid results.

### 🚀 How do I use X Profile Metrics Scraper?

1. Open **X Profile Metrics Scraper** in Apify Console.
2. Add one or more X profile URLs, handles, or user names.
3. Click **Start**.
4. Open the **Output** tab.
5. Download the dataset or connect it to your workflow.

### ⬇️ Input

Add up to 1,000 public X profile URLs or handles, with or without `@`, to
`profiles`.

```json
{
  "profiles": ["https://x.com/OpenAI", "@NASA", "github"]
}
```

Duplicate inputs are checked once. Search pages, post URLs, lists, follower
lists, and following lists are not supported.

### ⬆️ Output sample

```json
{
  "platform": "x",
  "input": "https://x.com/OpenAI",
  "profileId": "4398626122",
  "profileUrl": "https://x.com/OpenAI",
  "handle": "@OpenAI",
  "displayName": "OpenAI",
  "biography": "",
  "website": "https://openai.com",
  "location": null,
  "followersCount": 5000000,
  "followingCount": 4,
  "postsCount": 9000,
  "profileMetricStatus": {
    "followersCount": "exact",
    "followingCount": "exact",
    "postsCount": "exact",
    "mediaCount": "unavailable",
    "likedPostsCount": "unavailable",
    "listedCount": "exact"
  },
  "status": "ok",
  "failureCategory": null,
  "statusReason": null,
  "observedAt": "2026-07-17T12:00:00.000Z"
}
```

Good and failed rows use the same ordered fields. Failed rows keep unknown
values as `null`. `failureCategory` separates safe causes such as a network
failure or empty response without exposing raw source data.

#### 📌 Run summary

The `OUTPUT` record reports input count, unique inputs, saved rows, billable
rows, status counts, start time, finish time, and runtime.

### 🚦 Status and quality fields

`failureCategory` is `null` for good rows. Failed rows use a safe category such
as `network`, `empty_response`, `rate_limit`, `access`, or `unknown`.

- `ok`: the public profile identity was proven.
- `not_found`: the profile does not exist or is no longer available.
- `private`: the account does not show public profile data.
- `blocked`: X challenged the public request.
- `rate_limited`: X asked the run to slow down.
- `login_required`: X required a signed-in view at that time.
- `parser_miss`: X returned data without a stable profile identity.
- `invalid_input`: the value was not a profile URL or handle.
- `failed`: another safe source error happened.

### 🔒 Source boundary

This Actor reads only data X shows without signing in. It does not use your X
account, cookies, passwords, or private tokens. It does not bypass login or
challenge screens.

### ⚠️ Limits

- Full follower and following lists are not included.
- Deleted, blocked, region-limited, or private accounts may fail.
- X may hide some fields. Hidden values stay `null`.
- Results are snapshots. Use a schedule to build history.
- X can change its public pages, so a later run may need an Actor update.

### ❓ FAQ

#### Does this Actor need an X login or API key?

No. It reads logged-out public X data.

#### Why is a profile count `null`?

X did not show that value publicly for the profile at run time. Check
`profileMetricStatus` and the row status.

#### How are duplicate profiles handled?

The same normalized handle is checked once per run.

### 🏠 Related Actors

Continue the same workflow on this platform or compare public data across
platforms.

#### Continue on X

- [X Search & Discovery Scraper](https://apify.com/chronometrica/x-search-scraper)
  — find public posts and profiles by keyword.
- [X Post Metrics Scraper](https://apify.com/chronometrica/x-post-metrics)
  — collect public post views, engagement, media, and author details.

#### Compare profiles across platforms

- [Facebook Page Scraper](https://apify.com/chronometrica/facebook-channel-scraper)
  — collect public Page details, links, and audience stats.
- [Instagram Profile Scraper](https://apify.com/chronometrica/instagram-channel-scraper)
  — collect public profile details, links, and audience stats.
- [TikTok Profile Scraper](https://apify.com/chronometrica/tiktok-channel-scraper)
  — collect public creator details, links, and audience stats.
- [YouTube Channel Scraper](https://apify.com/chronometrica/youtube-channel-scraper)
  — collect public channel details, links, and audience stats.
- [LinkedIn Profile Scraper](https://apify.com/chronometrica/linkedin-profile-scraper)
  — collect public profile identity, headlines, and visible profile facts.

### 🛟 Support

For help, share the public profile URL, run ID, expected result, and actual
result. Never share passwords, cookies, or private tokens.

Use public data in line with the law, X rules, and Apify rules.

# Changelog

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

# Actor input Schema

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

Add up to 1,000 public X profile URLs or handles, with or without @. Each unique profile creates one attempted result row.

## Actor input object example

```json
{
  "profiles": [
    "https://x.com/elonmusk"
  ]
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `summary` (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/elonmusk"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("chronometrica/x-profile-metrics").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/elonmusk"] }

# Run the Actor and wait for it to finish
run = client.actor("chronometrica/x-profile-metrics").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/elonmusk"
  ]
}' |
apify call chronometrica/x-profile-metrics --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,chronometrica/x-profile-metrics"
        }
    }
}
```

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/NYkUA1Be1d3HPOJZg/builds/DHHUFICsEBHxHZfHz/openapi.json
