# X (Twitter) Post Replies Insights

**Use case:** 

Gather detailed replies from specific X (Twitter) posts, extracting comment text, author information, timestamps, and engagement metrics. This tool focuses on the top 30 replies for each provided URL, making it perfect for analyzing social media interactions without retrieving the original post or nested replies.

## Input

```json
{
  "postUrls": [
    "https://x.com/ZippoJeje/status/1905584213761351970",
    "https://x.com/EurovisionNewZ/status/1965115832926917077"
  ],
  "resultsLimit": 30,
  "includeOriginalPost": false
}
```

## Output

```json
{
  "inputUrl": {
    "label": "Original input URL",
    "format": "string"
  },
  "postUrl": {
    "label": "Post URL",
    "format": "link"
  },
  "postId": {
    "label": "Post ID",
    "format": "text"
  },
  "replyId": {
    "label": "Reply ID",
    "format": "text"
  },
  "replyUrl": {
    "label": "Reply URL",
    "format": "link"
  },
  "replyText": {
    "label": "Reply Text",
    "format": "text"
  },
  "inReplyTo": {
    "label": "In reply to ID",
    "format": "text"
  },
  "timestamp": {
    "label": "Timestamp",
    "format": "number"
  },
  "conversationId": {
    "label": "Conversation ID",
    "format": "text"
  },
  "media": {
    "label": "Media",
    "format": "object"
  },
  "author": {
    "label": "Author",
    "format": "object"
  },
  "replyCount": {
    "label": "Reply Count",
    "format": "number"
  },
  "quoteCount": {
    "label": "Quote Count",
    "format": "number"
  },
  "repostCount": {
    "label": "Repost Count",
    "format": "number"
  },
  "favouriteCount": {
    "label": "Favourite Count",
    "format": "number"
  },
  "viewsCount": {
    "label": "Views Count",
    "format": "number"
  },
  "error": {
    "label": "URL error",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The X (Twitter) Post Replies Scraper Actor is ready to run with the inputs already set for "X (Twitter) Post Replies Insights". [Sign up or log in](https://console.apify.com/create-task-from-example/G7qC2DNOOiWOh4xtT) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "X (Twitter) Post Replies Insights" task

The X (Twitter) Post Replies Scraper Actor will start running based on the input automatically. You can also change all the input fields, like post urls, results limit, and more, to match your specific use case.

### 3. Receive the "X (Twitter) Post Replies Insights" 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 original input url, post url, post id, and more.

### 4. 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 "X (Twitter) Post Replies Insights" task via API](https://apify.com/scraper_one/x-post-replies-scraper.md).

## FAQ

### What data does the X (Twitter) Post Replies Insights task return?

The X (Twitter) Post Replies Insights task returns reply text, author information, timestamps, and engagement metrics from replies to specified Twitter posts.

### How many replies can I retrieve with this task?

The X (Twitter) Post Replies Insights task can retrieve up to 30 replies for each specified post URL.

### What input do I need to provide for this task?

The X (Twitter) Post Replies Insights task requires an array of Twitter post URLs to extract replies from.

### Does this task include the original post in its output?

The X (Twitter) Post Replies Insights task does not include the original post by default; this can be adjusted in the task settings.

## About this Actor

This example demonstrates how to use [X (Twitter) Post Replies Scraper](https://apify.com/scraper_one/x-post-replies-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/scraper_one/x-post-replies-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/scraper_one/x-post-replies-scraper.md

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`).
