# 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
- **Stats:** 2 total users, 1 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# 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

| Actor                                                                    | Use it for                                                                                |
| ------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------- |
| [X Post Metrics Scraper](https://apify.com/chronometrica/x-post-metrics) | Track public views, likes, replies, reposts, quotes, and bookmarks for known X post URLs. |

### 🛟 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.

# 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("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=chronometrica/x-profile-metrics",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "X Profile Metrics Scraper",
        "description": "Extract public X profile identity, bio, verification, links, and follower, following, post, media, like, and list counts from handles or URLs.",
        "version": "1.0",
        "x-build-id": "xqWyHMDGhvd8XsJtK"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/chronometrica~x-profile-metrics/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-chronometrica-x-profile-metrics",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/chronometrica~x-profile-metrics/runs": {
            "post": {
                "operationId": "runs-sync-chronometrica-x-profile-metrics",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/chronometrica~x-profile-metrics/run-sync": {
            "post": {
                "operationId": "run-sync-chronometrica-x-profile-metrics",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "profiles"
                ],
                "properties": {
                    "profiles": {
                        "title": "Profile URLs or handles",
                        "minItems": 1,
                        "maxItems": 1000,
                        "uniqueItems": true,
                        "type": "array",
                        "description": "Add up to 1,000 public X profile URLs or handles, with or without @. Each unique profile creates one attempted result row.",
                        "items": {
                            "type": "string"
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
