# Twitter Replies Scraper - X.com Reply & Thread API | $0.10/1K (`kaitoeasyapi/twitter-replies-scraper`) Actor

Twitter Replies Scraper & X.com Thread API — From $0.10/1K ($0.10/1K Gold+, $0.14/1K Free–Silver · $0 Platform Compute Fee, zero extra CU cost). Extract full tweet replies, comments, nested conversation threads & author profiles from any X URL.

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

## Pricing

from $0.10 / 1,000 x (twitter) reply 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) Replies 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)** — Paste any public **X (Twitter) post URL** or numeric tweet ID to extract complete **reply threads, nested reply depth, parent-child conversation links, engagement metrics, media URLs, and author profiles** with zero login or cookies required.

### Why Choose X (Twitter) Replies Scraper?

- **True Conversation Tree & Reply Depth Reconstruction**: Automatically maps `inReplyToId` chains to compute `replyDepth` (`1` = direct reply to root tweet, `2+` = nested sub-thread reply), `isDirectReply`, and `isAuthorReply`.
- **Plain URL or Tweet ID Input**: Drop in standard `https://x.com/username/status/...` or `https://twitter.com/.../status/...` links alongside raw numeric tweet or conversation IDs.
- **Built-In Signal Filtering**: Sort by `Relevance`, `Latest`, or `Likes`, optionally exclude original author self-replies (`excludeAuthorReplies`), filter out low-engagement noise (`minLikes`), or include the original root tweet at depth `0` for complete sentiment context.
- **Pay Only for Delivered Replies ($0 Compute Fee)**: Empty inputs, invalid IDs, and zero-reply posts exit cleanly with **$0.00** billed and zero platform compute surcharges.

### Transparent Pay-Per-Result Pricing

| Apify Plan Tier | Price per 1,000 Replies | 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 |
| :--- | :--- | :--- | :--- |
| `tweetUrls` | `array` | `["https://x.com/OpenAI/status/2125635627341561995"]` | Public X/Twitter post URLs (raw numeric tweet IDs are also accepted). |
| `tweetIds` | `array` | `[]` | Optional numeric tweet IDs or conversation IDs merged with `tweetUrls`. |
| `maxItems` | `integer` | `50` | Maximum total replies to collect across all target tweets (`1–50,000`). |
| `sortBy` | `string` | `"Relevance"` | Sort order for reply retrieval: `Relevance`, `Latest`, or `Likes`. |
| `includeRootTweet` | `boolean` | `false` | Include the original root tweet as `itemType: "root_tweet"` with `replyDepth: 0`. |
| `excludeAuthorReplies` | `boolean` | `false` | Filter out self-replies written by the original post author. |
| `minLikes` | `integer` | `0` | Minimum like count required to include a reply in the dataset. |

#### Quick-Start Input Example

```json
{
  "tweetUrls": [
    "https://x.com/OpenAI/status/2125635627341561995"
  ],
  "maxItems": 50,
  "sortBy": "Relevance",
  "includeRootTweet": false,
  "excludeAuthorReplies": false,
  "minLikes": 0
}
```

### Output Fields

Each reply record delivers structured thread and author intelligence:

- **Thread Structure**: `itemType`, `replyId`, `conversationId`, `sourceTweetId`, `sourceTweetUrl`, `inReplyToId`, `inReplyToUsername`, `replyDepth`, `isDirectReply`, `isAuthorReply`
- **Reply Content & Media**: `url`, `text`, `lang`, `createdAt`, `mediaUrls`, `hashtags`, `mentions`
- **Engagement Metrics**: `likeCount`, `replyCount`, `retweetCount`, `quoteCount`, `viewCount`, `bookmarkCount`
- **Author Metadata**: `authorHandle`, `authorName`, `authorFollowers`, plus nested `author` object (`id`, `userName`, `name`, `isBlueVerified`, `verifiedType`, `followers`, `following`, `location`, `description`, `profilePicture`)

### Common Use Cases

- **Product Feedback & Sentiment Mining**: Pull thousands of customer replies under launch announcements and run LLM sentiment analysis with thread context preserved.
- **Brand Crisis & Community Monitoring**: Track high-like critical replies and nested discussions around viral posts in real time.
- **Giveaway & Campaign Comment Auditing**: Export every qualifying reply into CSV, JSON, Excel, or webhook automations (n8n, Make, Zapier, Clay).

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

## `tweetUrls` (type: `array`):

One or more public X/Twitter post URLs (e.g. https://x.com/OpenAI/status/2125635627341561995). Raw numeric tweet IDs are also accepted here.

## `tweetIds` (type: `array`):

Optional list of numeric X/Twitter tweet IDs or conversation IDs (e.g. \["2125635627341561995"]). Merged automatically with Tweet URLs.

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

Maximum total number of replies to collect across all supplied tweets (default 50).

## `sortBy` (type: `string`):

Order in which to retrieve replies from X/Twitter.

## `includeRootTweet` (type: `boolean`):

When enabled, outputs the original root post at replyDepth 0 before its replies so you can analyze full thread context.

## `excludeAuthorReplies` (type: `boolean`):

Skip replies posted by the same account that authored the root tweet.

## `minLikes` (type: `integer`):

Only keep replies with at least this many likes (0 returns all replies).

## Actor input object example

```json
{
  "tweetUrls": [
    "https://x.com/OpenAI/status/2125635627341561995"
  ],
  "maxItems": 50,
  "sortBy": "Relevance",
  "includeRootTweet": false,
  "excludeAuthorReplies": false,
  "minLikes": 0
}
```

# 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 = {
    "tweetUrls": [
        "https://x.com/OpenAI/status/2125635627341561995"
    ],
    "maxItems": 50,
    "sortBy": "Relevance"
};

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

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

```

## MCP server setup

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