# X (Twitter) Scraper & Account Analytics (`husseinelabeedy/x-twitter-scraper-account-analytics`) Actor

Scrape X (Twitter) posts from multiple accounts with parallel processing. Extract tweet text, dates, engagement metrics, and account data. Generate CSV, JSON, and analytics reports to monitor competitors, analyze audiences, and track content performance. Requires X session credentials.

- **URL**: https://apify.com/husseinelabeedy/x-twitter-scraper-account-analytics.md
- **Developed by:** [AL-Hussein EL-Abeedy](https://apify.com/husseinelabeedy) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 tweets

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## ScrapeNess — X (Twitter) Scraper & Account Analytics

**2500 tweets with full dashboard under 2 minutes**

**ScrapeNess** turns X (Twitter) account posts into a visual performance and competitive-intelligence report. Track multiple accounts in one run, compare engagement, discover top-performing posts, and export the collected data for further analysis.

![ScrapeNess X account performance dashboard](https://i.ibb.co/rGdSSHmJ/overview.png)

### Why use ScrapeNess?

ScrapeNess is designed for social media managers, marketing agencies, researchers, and analysts who need more than a raw tweet export. It combines multi-account post collection with a visual dashboard that makes the results easier to understand and compare.

- **Compare X accounts:** review collected posts, views, interactions, engagement rates, and posting activity side by side.
- **Engagement leaderboard:** identify which tracked accounts generated the most interactions in the collected sample.
- **Analyze top posts:** find high-performing posts and open the original post on X.
- **Discover content signals:** review frequent hashtags, keywords, active days, and peak posting hours.
- **Export your data:** use the posts dataset, JSON report, CSV summaries, and ZIP archive in your own workflows.

### ScrapeNess dashboard preview

#### Account performance overview

The overview brings the most important run-level KPIs and account comparisons together in one report.

[![ScrapeNess account performance overview](https://i.ibb.co/rGdSSHmJ/overview.png)](https://ibb.co/bgbZZXPn)

#### Account comparison and engagement leaderboard

Compare accounts by collected posts, views, total interactions, engagement rate, average interactions, and peak posting hour.

[![Account engagement leaderboard](https://i.ibb.co/9HTqZdgr/tablee.png)](https://ibb.co/d42QmHM5)

[![Engagement leaderboard and run summary](https://i.ibb.co/67pB8rPf/reallife.png)](https://ibb.co/mVY80bqM)

#### Account intelligence and content signals

Review account-level performance indicators, best-post interactions, median interactions, posting pace, active days, hashtags, and content keywords.

[![Account intelligence and content signals](https://i.ibb.co/0dZ9T7t/intelligence.png)](https://ibb.co/2fPMx9N)

#### Engagement leaderboard and run summary

See the relative interaction performance of tracked accounts alongside run completion, requested post count, runtime, worker limit, and failed-account count.

[![Engagement leaderboard and run summary](https://i.ibb.co/DgY99LBc/engagement.png)](https://ibb.co/Z1SBBNQ4)

### How to use the X (Twitter) scraper

1. Enter the X usernames as a comma-separated list.
2. Enter the post targets as comma-separated numbers in the same order.
3. Start the Actor.
4. Open the run's **Output** tab to view the dashboard and access the collected posts and reports.

### Input

ScrapeNess uses two input fields:

| Input | Description | Example |
|---|---|---|
| **Usernames** | Comma-separated X usernames, with or without `@`. | `nasa,openai,tesla` |
| **Counts** | Requested number of posts for each username, in the same order. | `500,1000,250` |

Example input:

```text
Usernames: nasa,openai,tesla
Counts:    500,1000,250
```

Each count maps to the username in the same position. The number of counts must match the number of usernames. Set each account's target between **1 and 5,000 posts**.

### Output

Every successful run generates a visual dashboard and structured data outputs.

| Output | What it contains |
|---|---|
| **HTML dashboard** | Run KPIs, account comparison, engagement leaderboard, account intelligence, content signals, and top-performing posts. |
| **Posts dataset** | Individual collected post records, available in Apify Dataset. |
| **JSON report** | Run summary, account-level metrics, top posts, and analytics methodology. |
| **Account insights CSV** | One row per tracked account with its collected performance metrics. |
| **Top posts CSV** | The highest-interaction posts across the tracked accounts. |
| **ZIP report** | A downloadable archive containing the dashboard, JSON report, CSV reports, and account-level collected data. |

#### Main post fields

| Field | Description |
|---|---|
| `tweet_id` | Unique X post ID |
| `username` | Tracked account username |
| `author_name` | Post author's display name |
| `author_user_id` | Post author's X user ID |
| `text` | Post text |
| `created_at` | Post timestamp |
| `likes` | Like count |
| `retweets` | Repost count |
| `replies` | Reply count |
| `quotes` | Quote-post count |
| `bookmarks` | Bookmark count, when available |
| `views` | View count, when available |
| `url` | Direct link to the X post |
| `lang` | Post language, when available |

You can export the Apify dataset in formats supported by the platform, including JSON, CSV, Excel, and other available formats.

### Pricing — how much does ScrapeNess cost?

The target pay-per-result price is **$0.005 per collected post**, equivalent to **$5 per 1,000 posts**. The Actor-start event and any applicable Apify platform or compute charges are additional. The final amount is determined by the current pricing configured on the ScrapeNess Store page.

### Analytics notes

- Account comparisons and rankings describe only the posts collected in the current run, not an account's complete lifetime performance.
- Views and some engagement fields may be unavailable for individual posts depending on the data returned by X.
- Engagement rate is calculated as total interactions divided by total views, multiplied by 100.
- Total interactions are calculated from likes, reposts, replies, quotes, and bookmarks.
- Posting-hour analysis is reported in UTC.

Use ScrapeNess only for accounts and data you are authorized to access.

# Actor input Schema

## `usernames` (type: `string`):

Comma-separated X usernames, with or without @. Example: nasa, openai, tesla

## `counts` (type: `string`):

Comma-separated post limits in the same order as usernames. Example: 500,1000,250

## Actor input object example

```json
{
  "usernames": "nasa,openai,tesla",
  "counts": "500,1000,250"
}
```

# Actor output Schema

## `dashboard` (type: `string`):

Visual account comparison, performance KPIs, engagement leaderboard, content signals, and top posts.

## `postsDataset` (type: `string`):

All collected posts as structured records.

## `fullAnalyticsReport` (type: `string`):

Run overview, account metrics, top posts, content signals, and metric methodology.

## `accountInsightsCSV` (type: `string`):

Comparable account-level metrics in spreadsheet-ready format.

## `topPostsCSV` (type: `string`):

Highest-interaction posts across all tracked accounts.

## `completeExport` (type: `string`):

Dashboard, JSON report, CSV analytics, per-account post files, and raw response pages.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("husseinelabeedy/x-twitter-scraper-account-analytics").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("husseinelabeedy/x-twitter-scraper-account-analytics").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 '{}' |
apify call husseinelabeedy/x-twitter-scraper-account-analytics --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,husseinelabeedy/x-twitter-scraper-account-analytics"
        }
    }
}
```

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/6vH4XdQroQsdnYIyg/builds/EKJ6lfcgX3UsgG4Yt/openapi.json
