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

🧵 Threads Replies Scraper helps you extract replies, threads, and engagement data from Threads fast. 🚀 Perfect for social media research, brand monitoring, and lead insights—save time and turn conversations into actionable data. 📈✨

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

## Pricing

from $4.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 web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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("scraper-engine/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("scraper-engine/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 scraper-engine/threads-replies-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/JPIZbOTi1gjQDGDs9/builds/leSqlDgO8cTKVQp0n/openapi.json
