# X (Twitter) Replies Scraper: Comments, Likes, Views & Authors (`memo23/x-twitter-replies-scraper`) Actor

Export the replies under any X (Twitter) post: reply text, author handle and name, likes, retweets, views, bookmarks, language, media and links. Paste post links, filter by likes, language or verified authors, and sort by likes or date. No login needed. $0.20 per 1,000 replies.

- **URL**: https://apify.com/memo23/x-twitter-replies-scraper.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (community)
- **Categories:** Social media, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.20 / 1,000 replies

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

## X (Twitter) Replies Scraper: Comments, Likes, Views & Authors

Export the **replies under any X (Twitter) post** without an account or API key. Paste post links and get one row per reply: the **reply text, author handle and name, likes, retweets, replies, views, bookmarks, language, media, links and post time**, with the post it answers on every row. Keep only replies with enough likes, in one language or from verified accounts, and sort by likes or date. **$0.20 per 1,000 replies.**

```json
{
  "postUrls": ["https://x.com/NASA/status/2119083432835764635"],
  "maxRepliesPerPost": 200,
  "sortBy": "likes"
}
```

| Input | Rows |
|---|---|
| Post link (x.com or twitter.com) or post id | One row per reply, up to your limit |
| "Include the original post" on | The post itself as the first row |
| A deleted, protected or unknown post | Skipped with a note in the log (not charged) |

### Why Use This Scraper?

- **No X account.** Nothing to log in to and no API keys; your own account is never at risk.
- **Clean reply text.** X puts the @handles of everyone in the thread in front of a reply. `text` gives the words the person wrote, `fullText` keeps the original.
- **Engagement on every reply.** Likes, retweets, replies, quotes, bookmarks and views, ready to rank.
- **Filters that cost nothing.** Minimum likes, one language, verified authors only, or leave out the post author's own replies. Replies left out are not charged.
- **Sorted the way you want.** X's own order, most liked first, or newest first.
- **Many posts in one run.** Every row names its post, so a run across many posts stays easy to split.

### Use Cases

- **Sentiment analysis:** collect the reactions to a launch, an announcement or a campaign.
- **Customer feedback:** read what people ask and complain about under a brand's posts.
- **Top comments:** pull the most liked replies under a viral post.
- **Lead finding:** spot people asking for a product or a service in the replies.
- **Moderation and research:** archive conversations for review, studies or AI datasets.

### How It Works

1. Put one or more post links or ids in **postUrls**.
2. The actor reads the replies under each post, page by page, up to **maxRepliesPerPost**.
3. Your filters are applied, the replies are sorted if you asked for it, and each reply is saved as one row.
4. Download the dataset as JSON, CSV, Excel or HTML, or read it from the API.

About 36 replies arrive every 2 to 3 seconds; 1,000 replies take about a minute. X shows outsiders only part of a very large thread (a post showing 845 replies gave about 310), so the count on a post is an upper bound.

### Input Configuration

| Field | Type | Default | What it does |
|---|---|---|---|
| `postUrls` | array | — | Post links (x.com or twitter.com) or bare post ids. |
| `maxRepliesPerPost` | integer | 100 | Replies saved from each post. |
| `maxItems` | integer | 1000 | Cap on rows across all posts. Free-plan runs return up to 100. |
| `includeOriginalPost` | boolean | false | Add the post itself as a row before its replies (one row). |
| `sortBy` | string | `relevance` | `relevance` (X order), `likes` or `latest`. |
| `minLikes` | integer | 0 | Keep only replies with at least this many likes. |
| `verifiedOnly` | boolean | false | Keep only replies from verified accounts. |
| `language` | string | — | Keep only replies in one language, e.g. `en`, `es`, `de`, `ja`. |
| `excludePostAuthor` | boolean | false | Leave out the post author's own replies. |

#### Example input

The 50 most liked English replies under two posts, without the authors' own replies:

```json
{
  "postUrls": [
    "https://x.com/NASA/status/2119083432835764635",
    "https://twitter.com/SpaceX/status/1234567890123456789"
  ],
  "maxRepliesPerPost": 50,
  "sortBy": "likes",
  "language": "en",
  "excludePostAuthor": true
}
```

### Output Samples

The values below are made up; the fields are what you get.

```json
{
  "type": "reply",
  "tweetId": "2119095941429182710",
  "url": "https://x.com/example_user/status/2119095941429182710",
  "text": "This is the best launch footage I have seen all year.",
  "fullText": "@NASA This is the best launch footage I have seen all year.",
  "createdAt": "2026-11-07T15:53:37.000Z",
  "lang": "en",
  "likes": 320,
  "retweets": 16,
  "replies": 7,
  "quotes": 0,
  "bookmarks": 2,
  "views": 6283,
  "isReply": true,
  "conversationId": "2119083432835764635",
  "hashtags": [],
  "mentions": ["NASA"],
  "links": [],
  "photos": [],
  "videos": [],
  "authorHandle": "example_user",
  "authorName": "Example User",
  "authorId": "1652403752383533058",
  "authorUrl": "https://x.com/example_user",
  "authorFollowers": null,
  "authorVerified": true,
  "authorAvatar": "https://pbs.twimg.com/profile_images/example_normal.jpg",
  "postId": "2119083432835764635",
  "postUrl": "https://x.com/NASA/status/2119083432835764635",
  "postAuthor": "NASA",
  "position": 1,
  "input": "https://x.com/NASA/status/2119083432835764635",
  "scrapedAt": "2026-11-12T23:30:00.000Z"
}
```

### Key Output Fields

| Field | Meaning |
|---|---|
| `text` | The reply as the person wrote it, without the @handles X adds in front. |
| `fullText` | The reply including those @handles. |
| `likes`, `retweets`, `replies`, `quotes`, `bookmarks`, `views` | Engagement on the reply. |
| `authorHandle`, `authorName`, `authorId`, `authorVerified` | Who wrote it. `authorFollowers` is filled when X shows it in the thread. |
| `postId`, `postUrl`, `postAuthor` | The post the reply sits under. |
| `position` | Place of the reply in X's order for that post. |
| `photos`, `videos`, `links`, `hashtags`, `mentions` | Media and entities in the reply. |
| `type` | `reply`, or `post` for the original post row. |

### FAQ

**Do I need an X account or API keys?**
No. Paste post links and run it.

**Why did I get fewer replies than the post shows?**
X shows outsiders only part of a large thread, and hides some replies it ranks low. The run log shows both numbers for each post.

**Does sorting by likes read the whole thread?**
It sorts the replies collected for each post, up to your `maxRepliesPerPost`. Raise that number to rank more replies.

**Are filtered-out replies charged?**
No. You pay only for the rows saved to your dataset.

**Can I get the replies of a whole account?**
This actor works per post. For an account's own posts and replies, see the X Search Scraper below.

### Pricing

- **$0.20 per 1,000 replies** saved ($0.0002 a row); the original post, when you ask for it, counts as one row.
- No start fee beyond Apify's own $0.00005 a run.
- Filtered-out replies, missing posts and skipped links are free.
- Free-plan accounts get up to 100 replies a run to try it.

### Support

Found a post whose replies do not come through, or need a field we do not return? Open an issue on the Issues tab with the post link. We read every issue.

### Explore More Scrapers

- [X (Twitter) Search Scraper](https://apify.com/memo23/x-twitter-search-scraper): tweets by keyword, profiles, followers, trends, communities and lists.
- [Twitter (X) Profile & Tweets Scraper](https://apify.com/memo23/twitter-x-scraper): an account's profile and tweets.
- [X Ads Transparency Scraper](https://apify.com/memo23/x-ads-transparency-scraper): ads from the X ads archive.

### 🤖 For AI Agents & LLM Apps

Call it with `{"postUrls": ["<post link>"], "maxRepliesPerPost": 100}` and read the default dataset. Each row is one reply with stable keys; `tweetId` is the reply's id and `postId` the post it answers. Use `minLikes`, `language` and `sortBy: "likes"` to keep results small and relevant.

### ⚠️ Disclaimer

This actor collects only replies that X shows publicly to anyone viewing a post. It does not log in or read private or protected accounts. Replies contain personal data: you are responsible for having a lawful basis to process it under the laws that apply to you (for example the GDPR) and for following X's Terms of Service. This actor is not affiliated with or endorsed by X Corp.

### SEO Keywords

twitter replies scraper, x replies scraper, twitter comments scraper, x comments scraper, scrape tweet replies, export twitter replies, tweet replies to csv, twitter reply export, x post replies, twitter conversation scraper, twitter sentiment analysis, top comments twitter, x reply extractor

# Actor input Schema

## `postUrls` (type: `array`):

Posts to collect replies from: links like https://x.com/NASA/status/2119083432835764635 (twitter.com links work too) or bare post ids, one per line.

## `maxRepliesPerPost` (type: `integer`):

Most replies to save from each post.

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

Cap on rows across all posts. Free-plan runs return up to 100 replies.

## `includeOriginalPost` (type: `boolean`):

Add the post itself as a row (type "post") before its replies. It counts as one row.

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

"relevance" keeps X's own order. "likes" and "latest" sort the replies collected for each post before they are saved.

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

Keep only replies with at least this many likes. Replies left out are not charged.

## `verifiedOnly` (type: `boolean`):

Keep only replies from verified accounts. Replies left out are not charged.

## `language` (type: `string`):

Keep only replies in this language, as a two-letter code such as en, es, de or ja. Empty keeps every language.

## `excludePostAuthor` (type: `boolean`):

Skip replies the post's author wrote under their own post.

## Actor input object example

```json
{
  "postUrls": [
    "https://x.com/NASA/status/2119083432835764635"
  ],
  "maxRepliesPerPost": 100,
  "maxItems": 1000,
  "includeOriginalPost": false,
  "sortBy": "relevance",
  "minLikes": 0,
  "verifiedOnly": false,
  "excludePostAuthor": false
}
```

# Actor output Schema

## `results` (type: `string`):

Replies under the posts given, with text, author, likes, retweets, views and media.

# 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 = {
    "postUrls": [
        "https://x.com/NASA/status/2119083432835764635"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/x-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 = { "postUrls": ["https://x.com/NASA/status/2119083432835764635"] }

# Run the Actor and wait for it to finish
run = client.actor("memo23/x-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 '{
  "postUrls": [
    "https://x.com/NASA/status/2119083432835764635"
  ]
}' |
apify call memo23/x-twitter-replies-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,memo23/x-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/krG0dWMLp77Dtvyzc/builds/WLchxhn9ND11aMYWS/openapi.json
