X (Twitter) Replies Scraper — Comments & Authors avatar

X (Twitter) Replies Scraper — Comments & Authors

Pricing

from $0.20 / 1,000 reply results

Go to Apify Store
X (Twitter) Replies Scraper — Comments & Authors

X (Twitter) Replies Scraper — Comments & Authors

Collect visible replies and comments from public X (Twitter) posts by URL or ID. Export reply text, nested conversation context, author profiles, engagement, media, and optional original post details for audience and feedback analysis. Download JSON or CSV. No X login required.

Pricing

from $0.20 / 1,000 reply results

Rating

5.0

(1)

Developer

ArjunAI Data

ArjunAI Data

Maintained by Community

Actor stats

2

Bookmarked

31

Total users

6

Monthly active users

4 days ago

Last modified

Features

Limited permissions

Share

Collect visible replies and comments from public X (Twitter) posts for feedback analysis and audience research. Export reply text, author profiles, engagement, media, and nested conversation context, with an option to include the original post. Enter post URLs or IDs and download the results in JSON or CSV.

Export a conversation with parent post IDs. Open the X reply thread example to see reply text, authors, parent post IDs, and the original post. At the Free rate and default memory, 20 saved replies and the start event cost $0.00705.

🚀 Quick start

  1. Paste Tweet URLs or numeric IDs into X post IDs or URLs.
  2. Set Maximum replies per post, or use 0 for all new visible replies X makes available.
  3. Optionally enable Include source post details, then click Start.
  4. Review comments, author profiles, and conversation relationships before exporting.
{
"tweets": [
"https://x.com/alexandr_wang/status/2100256876072210517"
],
"maxRepliesPerTweet": 20,
"includeSourcePost": true
}

🔗 Ready-to-run examples

Open an example, review its input and spending limit, then run it in your Apify account.

📊 Results

Each successful row represents one reply. Use reply_text for the complete text and reply_display_text for the text shown in Overview.

FieldWhat it contains
authorThe reply author's profile, bio, audience counts, verification, and public profile details. favourites_count counts likes given by the account.
metricsThe replies, retweets, quotes, likes, bookmarks, and views this reply received. A missing count is null. A count of 0 means X reported zero.
in_reply_toThe immediate parent post ID and the account being replied to. The display name is populated when available in the conversation.
entitiesHashtags, mentioned usernames, and expanded links from the reply text.
reply_mediaImages, alt text, and video metadata when available.
quoted_postThe quoted post's ID, link, text, timestamp, language, and author when available. For a reply without a quote, the value is null.

Overview puts the reply, its author, the parent account, and key metrics in separate columns. Use Thread context to see each reply's parent post ID and whether it directly answers the source post. Open Detailed for the full objects or export JSON for API and AI Agent workflows.

Optional source-post context

  • Source post ID, URL, text, timestamp, language, posting client, content type, and sensitivity status.
  • Native engagement counters, entities, media metadata, quote context, and compact X Article metadata.
  • A nested source-author profile with identity, bio, audience, verification, professional, affiliation, website, avatar, and banner fields.

With includeSourcePost enabled, source_post.author describes the author of the requested post. A quote inside the reply has its own quoted_post.author.

Input and optional context

FieldDescriptionDefault
tweetsUp to 50 unique numeric post IDs or full x.com / twitter.com status URLs. Duplicate IDs are requested once, and invalid values do not stop other valid posts.Required
maxRepliesPerTweetMaximum unique visible replies per source post. Use 0 to continue until X provides no more new visible replies.100
includeSourcePostAdds a normalized source_post object to every reply with source-post content, engagement, media, quote or Article context, and author details.false
includeRawReplyAdds the native Tweet object as raw_reply, including its embedded reply-author object.false

Posts are processed sequentially. A run accepts up to 50 unique valid source posts; split larger batches across multiple runs. More posts and larger reply limits increase runtime and the number of billable results.

When should optional context be enabled?

It contains normalized source-post data grouped into engagement metrics, entities, media, quoted-post or Article context, and an author profile. Because the same object is attached to every reply, enable it only when each exported row needs self-contained source context.

raw_reply contains X's native Tweet object and already embeds the reply-author object. Keep it disabled for normal exports, and enable it only for debugging or when an unnormalized X field is required. Authentication cookies, tokens, passwords, and proxy details are never included.

💰 Pricing

This Actor uses pay-per-event pricing. One successfully stored reply produces one reply-result event.

Apify planPrice per successful replyExample: 1,000 replies
Free$0.00035$0.35
Bronze$0.00030$0.30
Silver$0.00025$0.25
Gold, Platinum, and Diamond$0.00020$0.20

An apify-actor-start event costs $0.00005 per run. On the Free tier, 100 successful replies cost approximately $0.03505, and 1,000 cost approximately $0.35005, including one start event. Platform usage is included in the configured event prices.

Diagnostic rows with invalid_input, not_found, no_results, partial, request_failed, or charge_limit_reached do not create a reply-result charge. Use maxRepliesPerTweet and Apify's Maximum cost per run setting to control spending. The Actor page's Pricing tab is authoritative if prices change.

Availability and status rows

Replies and nested replies are included when X makes them available. Hidden, deleted, protected, spam-filtered, or otherwise restricted replies can be missing. The number exported may differ from the counter displayed on X.

The Actor saves results as it runs and removes duplicate reply IDs within each source post. Collection ends at the requested result or spending limit, or when no further new visible replies are available. Saved replies remain accessible if a later request fails. Results are not guaranteed to be in strict chronological order.

StatusMeaningReply-result charge
invalid_inputThe submitted value is not a numeric post ID or supported X / Twitter status URL; other valid inputs continue normally.No
not_foundThe source post was deleted, unavailable, or does not exist.No
no_resultsThe source post exists, but X returned no visible replies.No
partialEarlier pages were stored before a later page failed.No charge for the diagnostic row; stored replies remain billable
request_failedThe first page failed before a reply was stored.No
charge_limit_reachedThe run stopped at the configured maximum cost.No

FAQ

Do I need an X account, cookies, or an API key?

No. Users provide only public post URLs or IDs. No X login, cookies, or X API key is needed.

Can it scrape replies from several X posts in one run?

Yes. Add multiple URLs or IDs to tweets. Every source post has its own pagination state, reply-ID deduplication set, and result limit.

Does it collect direct comments and replies to other comments?

Yes, when X returns them in the same conversation timeline. source_tweet_id identifies the requested post. in_reply_to.tweet_id identifies the immediate parent, and is_direct_reply is true when those IDs match.

Can I scrape every reply to a post?

Set maxRepliesPerTweet to 0 to continue through the available visible replies. However, no scraper can return replies that X does not expose. See the result-limit explanation above.

Can I export X comments to CSV or Excel?

Yes. Use Overview for selected columns in CSV or Excel. Export the full dataset as JSON or JSONL to keep the author and thread objects. You can also retrieve complete records through the Dataset API.

This Actor processes publicly exposed post and profile data. Whether a particular use is lawful depends on the data, jurisdiction, and purpose. Do not collect or use personal data unlawfully, and follow X, Apify, and applicable privacy requirements.

Result examples

The examples below were captured from successful runs on November 10, 2026. Counts and availability can change. They correspond to the Quick start or separately labeled input above.

Reply with optional original-post context

{
"status": "success",
"requested_input": "https://x.com/alexandr_wang/status/2100256876072210517",
"source_tweet_id": "2100256876072210517",
"source_tweet_url": "https://x.com/alexandr_wang/status/2100256876072210517",
"reply_tweet_id": "2100256890559308197",
"reply_tweet_url": "https://x.com/alexandr_wang/status/2100256890559308197",
"reply_text": "to find your invite code, just go to the top right corner of your Muse app, and press “Invite”\n\nthere you’ll see your invite code and can start sending to your friends! https://t.co/2qHELHupW3",
"reply_display_text": "to find your invite code, just go to the top right corner of your Muse app, and press “Invite”\n\nthere you’ll see your invite code and can start sending to your friends!",
"reply_created_at": "2026-09-16T16:13:58Z",
"reply_language": "en",
"reply_source": "Twitter for iPhone",
"reply_source_url": "http://twitter.com/download/iphone",
"conversation_id": "2100256876072210517",
"is_direct_reply": true,
"reply_possibly_sensitive": false,
"reply_media": [
{
"media_id": "2100256882904731648",
"type": "photo",
"url": "https://pbs.twimg.com/media/HSWcgeKbEAAm6vg.jpg",
"post_url": "https://x.com/alexandr_wang/status/2100256890559308197/photo/1",
"width": 944,
"height": 2048,
"alt_text": "",
"duration_millis": null,
"video_variants": []
},
{
"media_id": "2100256883026300928",
"type": "photo",
"url": "https://pbs.twimg.com/media/HSWcgenaEAAz2nd.jpg",
"post_url": "https://x.com/alexandr_wang/status/2100256890559308197/photo/1",
"width": 1260,
"height": 1121,
"alt_text": "",
"duration_millis": null,
"video_variants": []
}
],
"reply_is_quote": false,
"in_reply_to": {
"tweet_id": "2100256876072210517",
"user_id": "615818451",
"username": "alexandr_wang",
"name": "Alexandr Wang"
},
"author": {
"id": "615818451",
"username": "alexandr_wang",
"profile_url": "https://x.com/alexandr_wang",
"name": "Alexandr Wang",
"description": "chief ai officer @meta, founder meta superintelligence labs, founder @scale_ai. give everyone the adulthood they dreamed of in childhood",
"description_entities": {
"description": {},
"url": {
"urls": [
{
"display_url": "scale.com",
"expanded_url": "https://scale.com",
"indices": [
0,
23
],
"url": "https://t.co/5m610IL18X"
}
]
}
},
"description_language": "en",
"location": "San Francisco, CA",
"created_at": "2012-06-23T02:46:22Z",
"followers_count": 845922,
"following_count": 951,
"tweets_count": 3731,
"media_count": 545,
"favourites_count": 7608,
"verified": false,
"blue_verified": true,
"protected": false,
"possibly_sensitive": false,
"profile_interstitial_type": "",
"can_media_tag": true,
"professional_type": "",
"professional_categories": [],
"affiliation_name": "Meta",
"affiliation_url": "https://twitter.com/Meta",
"affiliation_badge_url": "https://pbs.twimg.com/profile_images/2103588575358963713/6V4Fahim_bigger.jpg",
"pinned_tweet_ids": [
"2103551714536439951"
],
"account_label": null,
"profile_image_shape": "Circle",
"subscription_eligible": false,
"bio_urls": [],
"bio_mentions": [],
"bio_hashtags": [],
"website_url": "https://scale.com",
"profile_image_url": "https://pbs.twimg.com/profile_images/1631421210205749248/uohbT_40_normal.jpg",
"profile_banner_url": "https://pbs.twimg.com/profile_banners/615818451/1791055220"
},
"metrics": {
"reply_count": 65,
"retweet_count": 8,
"quote_count": 4,
"like_count": 118,
"bookmark_count": 43,
"view_count": 34976
},
"entities": {
"hashtags": [],
"mentions": [],
"urls": []
},
"quoted_post": null,
"source_post": {
"tweet_id": "2100256876072210517",
"tweet_url": "https://x.com/alexandr_wang/status/2100256876072210517",
"conversation_id": "2100256876072210517",
"created_at": "2026-09-16T16:13:54Z",
"text": "we just launched invite codes in @Muse !\n\nif your friends use your invite code when signing up, both of you get 🎉1 BILLION TOKENS EACH🎉 for up to 20 friends!\n\nand if you invite all 20 friends, you’ll get early access to our newest features (like 📞☎️🤫 and more!) https://t.co/MzDWwLy0ux",
"language": "en",
"source_name": "",
"is_reply": false,
"is_quote": false,
"is_longform": false,
"is_article": false,
"possibly_sensitive": false,
"in_reply_to": null,
"metrics": {
"reply_count": 1220,
"retweet_count": 204,
"quote_count": 235,
"like_count": 3954,
"bookmark_count": 1004,
"view_count": 1016627
},
"entities": {
"hashtags": [],
"cashtags": [],
"mentions": [
{
"id": "2052434492263178240",
"username": "Muse",
"name": "Muse"
}
],
"urls": []
},
"media": [
{
"media_id": "2100256854496710657",
"type": "video",
"url": "https://pbs.twimg.com/amplify_video_thumb/2100256854496710657/img/B5GGc0OADjA2AI8N.jpg",
"post_url": "https://x.com/alexandr_wang/status/2100256876072210517/video/1",
"width": 960,
"height": 960,
"alt_text": "",
"duration_millis": 5041,
"video_variants": [
{
"bitrate": null,
"content_type": "application/x-mpegURL",
"url": "https://video.twimg.com/amplify_video/2100256854496710657/pl/wkpwZhs6mdk42zxu.m3u8?tag=29"
},
{
"bitrate": 432000,
"content_type": "video/mp4",
"url": "https://video.twimg.com/amplify_video/2100256854496710657/vid/avc1/320x320/VZrD9fORoBD04Zdk.mp4?tag=29"
},
{
"bitrate": 832000,
"content_type": "video/mp4",
"url": "https://video.twimg.com/amplify_video/2100256854496710657/vid/avc1/540x540/cMLQo08p9IVJXrXl.mp4?tag=29"
},
{
"bitrate": 1280000,
"content_type": "video/mp4",
"url": "https://video.twimg.com/amplify_video/2100256854496710657/vid/avc1/720x720/iCD4lcTbqTEbf_ZJ.mp4?tag=29"
},
{
"bitrate": 8768000,
"content_type": "video/mp4",
"url": "https://video.twimg.com/amplify_video/2100256854496710657/vid/avc1/960x960/EVNAEQoYd_EhbvuN.mp4?tag=29"
}
]
}
],
"quoted_post": null,
"article": null,
"author": {
"id": "615818451",
"username": "alexandr_wang",
"name": "Alexandr Wang",
"profile_url": "https://x.com/alexandr_wang",
"description": "chief ai officer @meta, founder meta superintelligence labs, founder @scale_ai. give everyone the adulthood they dreamed of in childhood",
"location": "San Francisco, CA",
"created_at": "2012-06-23T02:46:22Z",
"followers_count": 845922,
"following_count": 951,
"tweets_count": 3731,
"media_count": 545,
"favourites_count": 7608,
"verified": false,
"blue_verified": true,
"protected": false,
"account_label": null,
"professional_type": "",
"professional_categories": [],
"affiliation_name": "Meta",
"affiliation_url": "https://twitter.com/Meta",
"affiliation_badge_url": "https://pbs.twimg.com/profile_images/2103588575358963713/6V4Fahim_bigger.jpg",
"website_url": "https://scale.com",
"profile_image_url": "https://pbs.twimg.com/profile_images/1631421210205749248/uohbT_40_normal.jpg",
"profile_banner_url": "https://pbs.twimg.com/profile_banners/615818451/1791055220"
}
}
}

🤖 Use this Actor with AI agents via MCP

  1. Add a remote server in your agent's MCP settings. Select Streamable HTTP and use the URL below. If your client supports an mcpServers configuration, copy this JSON.

    {
    "mcpServers": {
    "apify-replies": {
    "type": "http",
    "url": "https://mcp.apify.com/?tools=call-actor"
    }
    }
    }
  2. Sign in with Apify OAuth. If your client uses authentication headers, set Authorization: Bearer <APIFY_TOKEN> in its credential settings. Use an Apify account with permission to run the Actor and read its results. Apify MCP setup

  3. Enable the connector in your chat and try this prompt.

    Run arjun_code/x-twitter-replies-scraper for https://x.com/alexandr_wang/status/2100256876072210517 to collect up to five replies. Set the maximum run cost to $0.01 and include the original post. Wait for the run to finish and read its Dataset. Show each reply's author, text, link, and parent post ID. Flag incomplete results and include the Apify run link.

Call the Actor and read its results

Pass these arguments to call-actor. Set the spending limit in callOptions.

{
"actor": "arjun_code/x-twitter-replies-scraper",
"input": {
"tweets": ["https://x.com/alexandr_wang/status/2100256876072210517"],
"maxRepliesPerTweet": 5,
"includeSourcePost": true
},
"callOptions": {
"maxTotalChargeUsd": 0.01
},
"waitSecs": 0
}
  • Pass the returned runId to get-actor-run with waitSecs: 30. If the run is still in progress, check the same run again. Use https://console.apify.com/view/runs/<runId> to link to it.
  • Pass storages.datasets.default.id as datasetId to get-dataset-items. Use limit and offset for larger exports. Check each row's status for missing posts, no available replies, or partial output before summarizing.
  • For each successful row, read author.username, reply_text, and reply_tweet_url. Use in_reply_to.tweet_id for the parent post, is_direct_reply for direct replies, and metrics for engagement. With includeSourcePost enabled, source_post contains the original post and its author.

MCP runs use the Actor's Store pricing. Actor pricing · Apify MCP tool reference

API and integrations

Use your Apify API token in the request header.

curl -X POST \
"https://api.apify.com/v2/actors/arjun_code~x-twitter-replies-scraper/runs" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"tweets":["https://x.com/alexandr_wang/status/2100256876072210517"],"maxRepliesPerTweet":20,"includeSourcePost":true}'

This starts a run and returns its ID. After the run finishes, use its defaultDatasetId to download the results. You can also save the input as a Task, schedule it, or use Apify integrations.

Updated field paths

If an existing integration reads the previous flat output, update its selectors to the nested paths below. The same paths apply to JSON exported from the full Dataset.

Previous fieldCurrent field
author_username, author_followers_countauthor.username, author.followers_count. The other author_* fields follow the same pattern.
reply_like_count, reply_view_countmetrics.like_count, metrics.view_count. The six engagement counters now live under metrics.
reply_to_tweet_id, reply_to_user_id, reply_to_username, reply_to_namein_reply_to.tweet_id, in_reply_to.user_id, in_reply_to.username, in_reply_to.name.
reply_quoted_tweet_id, reply_quoted_author_usernamequoted_post.tweet_id, quoted_post.author.username. The rest of the quote details are in quoted_post.
reply_hashtags, reply_mentions, reply_urlsentities.hashtags, entities.mentions, entities.urls.
reply_display_text_rangeraw_reply.legacy.display_text_range when includeRawReply is enabled and X provides the range.

Continue your research

Privacy and support

Internal cookies, proxy details, and authentication data are never written to the result Dataset. This independent Actor is not affiliated with, endorsed by, or sponsored by X Corp.

If a run fails or X changes its response format, open the Actor's Issues tab and include the Apify run ID, input, and expected behavior. Never include passwords, cookies, tokens, or other secrets.