Go to example tasks

Export Nested X Replies with Parent Post IDs

Export up to 20 visible X replies with the author, parent post ID, and direct-reply flag. Use the Thread context view to follow the conversation, export CSV for review, or select JSON for original post details.

Try for free
X (Twitter) Replies Scraper — Comments & Authors
X (Twitter) Replies Scraper — Comments & Authorsarjun_code/x-twitter-replies-scraper
Status
Reply display text
Author username
Replied-to username
+6 fields
Text
Number
Boolean
List
Object

Input

X post IDs or URLs(required):https://x.com/alexandr_wang/status/2100256876072210517
Maximum replies per post:20
Include source post details:true

Output fields

Status
Reply display text
Author username
Replied-to username
Parent post ID
Direct reply
Reply URL
Source post URL
Replied at (UTC)
Message

How it works

Sign up on Apify or log in

The X (Twitter) Replies Scraper — Comments & Authors Actor is ready to run with the inputs already set for "Export Nested X Replies with Parent Post IDs". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Export Nested X Replies with Parent Post IDs" task

The X (Twitter) Replies Scraper — Comments & Authors Actor will start running based on the input automatically. You can also change all the input fields, like x post ids or urls, maximum replies per post, and more, to match your specific use case.

Receive the "Export Nested X Replies with Parent Post IDs" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as status, reply display text, author username, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Export Nested X Replies with Parent Post IDs" task via API.

Image

Integrate "Export Nested X Replies with Parent Post IDs" into your workflow

Connect "Export Nested X Replies with Parent Post IDs" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay

Frequently asked questions

The Thread context view shows the immediate Parent post ID, author, and Direct reply flag. Use the parent ID to connect replies or open the reply link on X.

It adds a source_post object with the original post and author context to reply records. JSON keeps this nested structure; leave it off if you need a smaller export.

Not necessarily. Deleted, private, hidden or otherwise unavailable replies may not be exposed. The export includes replies X currently returns, and does not guarantee the displayed total.

On Apify's Free tier, 20 saved replies and one start event cost $0.00705 at the current rate. The result fee depends on how many replies are saved.