# Export X Reply Threads with Parent Context

**Use case:** 

Collect visible direct and nested replies from a public X post, including parent post IDs, replied-to users, engagement, and author details.

## Input

```json
{
  "tweets": [
    "https://x.com/alexandr_wang/status/2100256876072210517"
  ],
  "maxRepliesPerTweet": 20,
  "includeRawUser": false,
  "includeRawReply": false
}
```

## Output

```json
{
  "status": {
    "label": "Status",
    "format": "string"
  },
  "reply_display_text": {
    "label": "Reply display text",
    "format": "string"
  },
  "author_profile_image_url": {
    "label": "Author avatar",
    "format": "string"
  },
  "author_username": {
    "label": "Author username",
    "format": "string"
  },
  "author_name": {
    "label": "Author name",
    "format": "string"
  },
  "reply_created_at": {
    "label": "Replied at",
    "format": "string"
  },
  "reply_language": {
    "label": "Reply language",
    "format": "string"
  },
  "is_direct_reply": {
    "label": "Direct reply",
    "format": "boolean"
  },
  "reply_is_quote": {
    "label": "Reply quotes another post",
    "format": "boolean"
  },
  "reply_quoted_tweet_text": {
    "label": "Quoted post text",
    "format": "string"
  },
  "reply_quoted_author_username": {
    "label": "Quoted post author username",
    "format": "string"
  },
  "reply_like_count": {
    "label": "Reply likes",
    "format": "integer"
  },
  "reply_reply_count": {
    "label": "Reply replies",
    "format": "integer"
  },
  "reply_retweet_count": {
    "label": "Reply retweets",
    "format": "integer"
  },
  "reply_view_count": {
    "label": "Reply views",
    "format": "integer"
  },
  "author_followers_count": {
    "label": "Author followers",
    "format": "integer"
  },
  "author_following_count": {
    "label": "Author following",
    "format": "integer"
  },
  "author_verified": {
    "label": "Author verified",
    "format": "boolean"
  },
  "author_blue_verified": {
    "label": "Author blue verified",
    "format": "boolean"
  },
  "author_account_label": {
    "label": "Author account label",
    "format": "string"
  },
  "author_professional_categories": {
    "label": "Author professional categories",
    "format": "array"
  },
  "author_affiliation_name": {
    "label": "Author affiliation",
    "format": "string"
  },
  "reply_to_username": {
    "label": "Replied-to username",
    "format": "string"
  },
  "reply_to_name": {
    "label": "Replied-to name",
    "format": "string"
  },
  "reply_tweet_id": {
    "label": "Reply post ID",
    "format": "string"
  },
  "source_tweet_id": {
    "label": "Source post ID",
    "format": "string"
  },
  "reply_tweet_url": {
    "label": "Reply URL",
    "format": "string"
  },
  "author_profile_url": {
    "label": "Author profile",
    "format": "string"
  },
  "source_tweet_url": {
    "label": "Source post URL",
    "format": "string"
  },
  "message": {
    "label": "Message",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [X (Twitter) Replies Scraper — Thread Context](https://apify.com/arjun_code/x-twitter-replies-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/arjun_code/x-twitter-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/arjun_code/x-twitter-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`).
