# X(Twitter) Reposts Scraper (`powerai/twitter-retweets-scraper`) Actor

See who reposted a given X post—accounts, bios, and follow context in structured rows.

- **URL**: https://apify.com/powerai/twitter-retweets-scraper.md
- **Developed by:** [PowerAI](https://apify.com/powerai) (community)
- **Categories:** Social media, Lead generation, Integrations
- **Stats:** 45 total users, 5 monthly users, 97.9% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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 Reposts Scraper

List **accounts that reposted** a specific **X post**—the same kind of profiles people see in the reposts / reposted-by experience. Each dataset row is one account with nested profile fields, relationship hints, and verification details when returned.

### Who it’s for

- **Social & comms teams** measuring who amplified a campaign post.
- **Researchers & analysts** who need structured exports instead of scrolling the repost list.
- **Moderation workflows** that compare reposters against internal rules.

### What you can do with it

- **Target one post** by its numeric id (from the post URL).
- **Collect many accounts** in one run until you reach the limit you set or the list ends.
- **Match every row** to that post via **`requestedTweetId`**, plus **`scrapedAt`** on each row.

### How it works (in plain terms)

You enter the **post’s numeric id** (not the `@handle`). The tool loads accounts in successive batches until your **maximum** is reached or there are no more to load—you do not need to manage paging yourself.

### Input

| Field | Required | What it means |
|-------|----------|----------------|
| **Post ID** (`tweetId`) | Yes | Which post’s reposts to export. |
| **Maximum results** (`maxResults`) | No | Upper limit on how many account rows to collect (default **50**). |

### Output

- **One row per account** that reposted the post (until your cap).
- **Identity**: **`__typename`** (`User`), internal **`id`**, numeric **`rest_id`**, **`profile_image_shape`**, **`avatar.image_url`** when present (profile photo may appear here rather than only under **`legacy`**), **`is_blue_verified`**, **`has_graduated_access`**.
- **Names**: **`core`** includes **`name`**, **`screen_name`**, **`created_at`**.
- **Permissions**: **`dm_permissions`** (**`can_dm`**) and **`media_permissions`** (**`can_media_tag`**) when returned.
- **Profile & counts**: **`legacy`** often includes **`description`** (possibly multi-line), **`entities`**, **`default_profile`** / **`default_profile_image`**, **`followers_count`**, **`friends_count`**, **`normal_followers_count`**, **`favourites_count`**, **`listed_count`**, **`media_count`**, **`statuses_count`**, **`pinned_tweet_ids_str`**, **`profile_banner_url`**, **`possibly_sensitive`**, **`want_retweets`**, **`withheld_in_countries`**, **`notifications`**, **`follow_request_sent`**, **`has_custom_timelines`**, **`is_translator`**, **`translator_type`**, **`profile_interstitial_type`**, and similar fields.
- **Relationship to viewer**: **`relationship_perspectives`** (**`blocked_by`**, **`blocking`**, **`followed_by`**, **`following`**, **`muting`**), **`privacy.protected`**.
- **Other**: **`location`**, **`affiliates_highlighted_label`** (often `{}`), **`parody_commentary_fan_label`**, **`tipjar_settings`** (often `{}`), **`verification.verified`**, **`super_follow_eligible`**, **`super_followed_by`**, **`super_following`**.
- **Export metadata**: **`requestedTweetId`** repeats the post id you entered; **`scrapedAt`** is when that row was saved.

Optional fields vary by account. Details may change as X updates its product.

#### Sample output (one dataset row, from a real run)

```json
{
  "__typename": "User",
  "affiliates_highlighted_label": {},
  "avatar": {
    "image_url": "https://pbs.twimg.com/profile_images/2031216467127975936/W6n-UzLk_normal.jpg"
  },
  "core": {
    "created_at": "Fri Nov 21 18:02:58 +0000 2014",
    "name": "Lila 🌸",
    "screen_name": "LilaGlowUp1"
  },
  "dm_permissions": {
    "can_dm": true
  },
  "has_graduated_access": true,
  "id": "VXNlcjoyODg3MTYxNDg0",
  "is_blue_verified": false,
  "legacy": {
    "default_profile": true,
    "default_profile_image": false,
    "description": "Business Inquiries (liladostream@gmail.com)\n🎮 Twitch Affiliate | TikTok @LilaGlowUp | YT @LilaGlowUp\n\n💸 Cash App $LilaBrown",
    "entities": {
      "description": {
        "urls": []
      }
    },
    "fast_followers_count": 0,
    "favourites_count": 166,
    "follow_request_sent": false,
    "followers_count": 112,
    "friends_count": 148,
    "has_custom_timelines": false,
    "is_translator": false,
    "listed_count": 0,
    "media_count": 24,
    "normal_followers_count": 112,
    "notifications": false,
    "pinned_tweet_ids_str": [],
    "possibly_sensitive": false,
    "profile_banner_url": "https://pbs.twimg.com/profile_banners/2887161484/1771900177",
    "profile_interstitial_type": "",
    "statuses_count": 3530,
    "translator_type": "none",
    "want_retweets": false,
    "withheld_in_countries": []
  },
  "location": {
    "location": "North America "
  },
  "media_permissions": {
    "can_media_tag": true
  },
  "parody_commentary_fan_label": "None",
  "privacy": {
    "protected": false
  },
  "profile_image_shape": "Circle",
  "relationship_perspectives": {
    "blocked_by": false,
    "blocking": false,
    "followed_by": false,
    "following": false,
    "muting": false
  },
  "rest_id": "2887161484",
  "super_follow_eligible": false,
  "super_followed_by": false,
  "super_following": false,
  "tipjar_settings": {},
  "verification": {
    "verified": false
  },
  "requestedTweetId": "1552735248026411010",
  "scrapedAt": "2026-03-26T02:15:34.929Z"
}
```

### Good to know

- **Private or deleted posts**, or posts with hidden engagement, may return few or no rows.
- Respect X’s rules and applicable laws when using exported data.

# Actor input Schema

## `tweetId` (type: `string`):

The numeric id of the post whose reposts you want to list (the same id that appears in the post’s link).

## `maxResults` (type: `integer`):

How many account rows to save in total.

## Actor input object example

```json
{
  "tweetId": "1552735248026411010",
  "maxResults": 15
}
```

# 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 = {
    "tweetId": "1552735248026411010",
    "maxResults": 15
};

// Run the Actor and wait for it to finish
const run = await client.actor("powerai/twitter-retweets-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 = {
    "tweetId": "1552735248026411010",
    "maxResults": 15,
}

# Run the Actor and wait for it to finish
run = client.actor("powerai/twitter-retweets-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 '{
  "tweetId": "1552735248026411010",
  "maxResults": 15
}' |
apify call powerai/twitter-retweets-scraper --silent --output-dataset

```

## MCP server setup

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