# 🧵 Threads Replies Scraper (`scrapier/threads-replies-scraper`) Actor

🧵 Threads Replies Scraper extracts replies from Threads posts fast and reliably. 📩 Great for social listening, competitor research, and influencer insights. 🚀 Automate data collection with a clean, professional workflow—start analyzing conversations today!

- **URL**: https://apify.com/scrapier/threads-replies-scraper.md
- **Developed by:** [Scrapier](https://apify.com/scrapier) (community)
- **Categories:** Social media, Automation, Lead generation
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## 🧵 Threads Replies Scraper

Extract the **original post plus all its replies** — including **nested sub-replies** — from any public [Threads](https://www.threads.com) post, as clean, structured JSON/CSV/Excel. Perfect for social listening, sentiment analysis, audience research, and building Threads datasets.

### ✨ Why Choose This Actor?

- 🧵 **Full conversation capture** — original post **and** its reply tree, not just top-level comments.
- 💬 **Nested replies** — optionally follow replies-to-replies inside the same thread.
- 🛡️ **Self-healing proxy ladder** — starts direct, auto-escalates to datacenter, then residential if Threads pushes back. No manual tuning.
- 💾 **Live results** — records stream into your dataset as they are scraped; a stopped run still keeps everything collected so far.
- 📊 **Rich output** — likes, replies, reposts, quotes, views, media URLs, mentions, hashtags, verification, and more.
- 🗂️ **Tidy views** — Overview, Original Posts, and Replies tables out of the box.

### 🔑 Key Features

| Feature | Description |
|---|---|
| Bulk input | Scrape many post URLs in one run |
| Reply cap | Collect 10–50 replies per post |
| Nested sub-replies | Toggle replies-to-commenters on/off |
| Media | Image / video / carousel / GIF URLs |
| Entities | Mentions, hashtags, and links parsed out |
| Engagement | Likes, replies, reposts, quotes, shares, views |
| Proxy fallback | Direct → Datacenter → Residential (sticky) |

### 📥 Input

| Field | Type | Required | Description |
|---|---|---|---|
| `post_urls` | array | ✅ | One or more Threads post URLs (bulk supported). |
| `sessionid` | string | ✅ | A logged-in Threads/Instagram `sessionid` cookie. Threads returns no replies without it. |
| `max_replies` | integer | — | Replies per post, 10–50 (default 50). |
| `include_nested_replies` | boolean | — | Also collect replies-to-commenters (default `false`). |
| `proxyConfiguration` | object | — | Apify Proxy preferences. Starts direct, escalates automatically. |

#### Example input

```json
{
  "post_urls": [
    { "url": "https://www.threads.com/@zuck/post/DTa3-B1EbTp" }
  ],
  "sessionid": "PASTE_YOUR_SESSIONID_COOKIE_HERE",
  "max_replies": 50,
  "include_nested_replies": false,
  "proxyConfiguration": { "useApifyProxy": true }
}
````

#### 🍪 How to get your `sessionid`

1. Log in to [threads.com](https://www.threads.com) in your browser.
2. Open DevTools → **Application** (Chrome) / **Storage** (Firefox) → **Cookies** → `https://www.threads.com`.
3. Copy the **value** of the `sessionid` cookie and paste it into the input.

### 📤 Output

Each run produces two record types in the dataset.

**Original post** (`item_type: "original_post"`):

```json
{
  "post_code": "DTa3-B1EbTp",
  "post_url": "https://www.threads.com/@zuck/post/DTa3-B1EbTp",
  "author_username": "zuck",
  "author_display_name": "Mark Zuckerberg",
  "author_is_verified": true,
  "text_content": "Today we're establishing a new top-level initiative…",
  "like_count": 2926,
  "reply_count": 995,
  "repost_count": 150,
  "quote_count": 40,
  "share_count": 241,
  "view_count": 505453,
  "has_media": false,
  "created_at": "2026-01-12T18:00:30.000Z",
  "item_type": "original_post"
}
```

**Reply** (`item_type: "reply"`):

```json
{
  "reply_id": "DTa4RWwDy3-",
  "author_username": "jasondwalters",
  "author_display_name": "Jason Walters",
  "text_content": "Oh wow. How many elections can you interfere with now simultaneously?",
  "reply_to_username": "zuck",
  "like_count": 181,
  "created_at": "2026-01-12T18:03:08.000Z",
  "reply_url": "https://www.threads.com/@jasondwalters/post/DTa4RWwDy3-",
  "item_type": "reply"
}
```

### 🚀 How to Use (Apify Console)

1. Log in at [console.apify.com](https://console.apify.com) → **Actors**.
2. Open **Threads Replies Scraper**.
3. Paste your post URLs and your `sessionid` cookie, set `max_replies`, choose proxy preferences.
4. Click **Start**.
5. Watch the live log as posts and replies stream in.
6. Open the **Output / Storage** tab to view the Overview, Original Posts, and Replies tables.
7. Export to JSON / CSV / Excel.

### 🤖 Use via API

```bash
curl -X POST "https://api.apify.com/v2/acts/<ACTOR_ID>/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "post_urls": [{ "url": "https://www.threads.com/@zuck/post/DTa3-B1EbTp" }],
    "sessionid": "PASTE_YOUR_SESSIONID_COOKIE_HERE",
    "max_replies": 50
  }'
```

### 💡 Best Use Cases

- Social listening & brand monitoring on Threads
- Sentiment and community analysis on viral posts
- Researching how conversations and sub-threads evolve
- Building Threads reply datasets for ML / analytics

### 💳 Pricing

This Actor uses the **pay-per-event** model: you are billed per record collected (the original post and each reply). Lowering `max_replies` reduces cost. Platform compute and proxy usage follow standard Apify rules.

### ❓ FAQ

**Why is a `sessionid` required?** Threads only returns the reply tree to authenticated sessions. Without a valid `sessionid` the API responds with an execution error and no replies.

**How many replies can I get?** Up to 50 per post in one run, controlled by `max_replies`. Threads paginates the reply tree; the Actor follows it until the cap or the end is reached.

**What if Threads blocks me?** The Actor automatically escalates from direct connection to a datacenter proxy, then to a residential proxy, and sticks with the working tier for the rest of the run.

**Do I get sub-replies?** Only if you enable `include_nested_replies`. By default just first-level replies are collected.

### ⚖️ Notes & Compliance

- Data is collected only from **publicly available** Threads posts.
- You are responsible for complying with Threads' Terms of Service and applicable laws (GDPR, CCPA, etc.).
- Use your own account's `sessionid` and respect reasonable rate limits.

### 🛟 Support & Feedback

Found a bug or want a new field? Open an issue on the Actor's **Issues** tab in the Apify Console.

# Actor input Schema

## `post_urls` (type: `array`):

Paste one or more Threads post URLs to scrape replies from (bulk supported). Example: https://www.threads.com/@zuck/post/DTa3-B1EbTp

## `sessionid` (type: `string`):

A logged-in Threads/Instagram `sessionid` cookie. REQUIRED — Threads returns no replies without a valid session. Copy it from your browser's cookies for threads.com while logged in.

## `max_replies` (type: `integer`):

Cap on how many replies to collect per post (10–50). Lower values are faster and cheaper when you only need the top replies.

## `include_nested_replies` (type: `boolean`):

By default only first-level replies (directly replying to the original post) are collected. Enable this to also capture nested sub-replies (replies to other commenters in the same conversation).

## `proxyConfiguration` (type: `object`):

The Actor starts with NO proxy (direct). If Threads blocks the request it automatically escalates to a datacenter proxy, then to a residential proxy (sticky). Configure your Apify Proxy preferences here.

## Actor input object example

```json
{
  "post_urls": [
    "https://www.threads.com/@zuck/post/DTa3-B1EbTp"
  ],
  "max_replies": 10,
  "include_nested_replies": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "post_urls": [
        "https://www.threads.com/@zuck/post/DTa3-B1EbTp"
    ],
    "sessionid": "",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapier/threads-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 = {
    "post_urls": ["https://www.threads.com/@zuck/post/DTa3-B1EbTp"],
    "sessionid": "",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("scrapier/threads-replies-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "post_urls": [
    "https://www.threads.com/@zuck/post/DTa3-B1EbTp"
  ],
  "sessionid": "",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call scrapier/threads-replies-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapier/threads-replies-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "🧵 Threads Replies Scraper",
        "description": "🧵 Threads Replies Scraper extracts replies from Threads posts fast and reliably. 📩 Great for social listening, competitor research, and influencer insights. 🚀 Automate data collection with a clean, professional workflow—start analyzing conversations today!",
        "version": "0.1",
        "x-build-id": "s4bxwRk1hcU4Q8f5Q"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scrapier~threads-replies-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scrapier-threads-replies-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/scrapier~threads-replies-scraper/runs": {
            "post": {
                "operationId": "runs-sync-scrapier-threads-replies-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/scrapier~threads-replies-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-scrapier-threads-replies-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "post_urls",
                    "sessionid"
                ],
                "properties": {
                    "post_urls": {
                        "title": "🧵 Threads Post URLs",
                        "type": "array",
                        "description": "Paste one or more Threads post URLs to scrape replies from (bulk supported). Example: https://www.threads.com/@zuck/post/DTa3-B1EbTp",
                        "items": {
                            "type": "string"
                        }
                    },
                    "sessionid": {
                        "title": "🔐 Threads sessionid cookie",
                        "type": "string",
                        "description": "A logged-in Threads/Instagram `sessionid` cookie. REQUIRED — Threads returns no replies without a valid session. Copy it from your browser's cookies for threads.com while logged in."
                    },
                    "max_replies": {
                        "title": "📊 Max Replies Per Post",
                        "minimum": 10,
                        "maximum": 10,
                        "type": "integer",
                        "description": "Cap on how many replies to collect per post (10–50). Lower values are faster and cheaper when you only need the top replies.",
                        "default": 10
                    },
                    "include_nested_replies": {
                        "title": "💬 Include Nested Sub-Replies",
                        "type": "boolean",
                        "description": "By default only first-level replies (directly replying to the original post) are collected. Enable this to also capture nested sub-replies (replies to other commenters in the same conversation).",
                        "default": false
                    },
                    "proxyConfiguration": {
                        "title": "🛡️ Proxy Configuration",
                        "type": "object",
                        "description": "The Actor starts with NO proxy (direct). If Threads blocks the request it automatically escalates to a datacenter proxy, then to a residential proxy (sticky). Configure your Apify Proxy preferences here.",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
