# Threads Scraper — Posts, Replies & Profiles, No Login (`memo23/threads-scraper`) Actor

Threads Scraper — extract posts, replies and profiles from threads.com with no login or cookies. Paste usernames or post URLs and get flat rows: text, like/reply/repost/quote counts, media, timestamps and author. Bulk-ready. JSON, CSV or Excel.

- **URL**: https://apify.com/memo23/threads-scraper.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (community)
- **Categories:** Social media, Lead generation, AI
- **Stats:** 4 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $4.00 / 1,000 post scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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/docs.md):

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

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.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/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 Scraper

<p align="center">
  <img src="https://raw.githubusercontent.com/muhamed-didovic/muhamed-didovic.github.io/main/assets/threads/logo.png" width="130" alt="Threads Scraper">
</p>

Scrape **Threads** (threads.com) — profiles, user posts, replies and single post threads — **without a login, cookies, or an account**. Give it usernames and/or post URLs and get back clean, flat rows: post text, like and reply counts, media, timestamps and author info. JSON, CSV or Excel.

### Why use this scraper

- **No login, no cookies.** Pure HTTP against Threads' public guest API — nothing to configure, no session to babysit.
- **Whole-account in one run.** Point it at any set of usernames and pull their posts or replies together.
- **Structured output.** One row per post with a stable schema — ready for analysis, monitoring, or feeding an AI agent.
- **Post-level detail.** Paste a Threads post URL to pull the post and its reply thread.

### What it does

| Input | Mode | You get |
|---|---|---|
| Usernames | **Posts** | Each user's Threads posts |
| Usernames | **Replies** | Each user's replies |
| Usernames | **Profile info** | Full name, follower count, bio, verification, profile picture |
| Post URLs | (automatic) | The post plus its reply thread (optionally the users who liked it) |

### How it works

<p align="center">
  <img src="https://raw.githubusercontent.com/muhamed-didovic/muhamed-didovic.github.io/main/assets/threads/how-it-works.png" width="820" alt="How the Threads Scraper works">
</p>

You give it Threads usernames or post URLs. The actor bootstraps a public **guest token** from Threads' own web app (no account, no cookies) and calls Threads' public GraphQL API directly over plain HTTP — the same endpoint the website uses. Each target is fetched, normalized to a flat schema, and streamed to your dataset. No browser, no third-party unblock service.

### Input

| Field | Type | Description |
|---|---|---|
| `usernames` | array | Threads handles, `@handles`, or profile URLs. Each is scraped per **mode**. |
| `mode` | select | `posts` (default), `replies`, or `profile`. |
| `postUrls` | array | Threads post URLs (`https://www.threads.com/@user/post/CODE`). |
| `includeLikers` | boolean | For post URLs, also scrape who liked the post. |
| `maxItems` | integer | Max total rows across all targets. |
| `proxy` | object | Datacenter (default) works and is fast; switch to Residential for very high volume. |

#### Example input

```json
{
  "usernames": ["zuck", "mosseri"],
  "mode": "posts",
  "maxItems": 100
}
````

### Output

Each post row includes:

| Field | Description |
|---|---|
| `postId`, `code`, `url` | Post identifiers + canonical Threads URL |
| `username`, `userId`, `userFullName`, `userIsVerified` | Author |
| `text` | Post text |
| `publishedAt`, `takenAtTimestamp` | ISO timestamp + unix |
| `likeCount`, `replyCount`, `repostCount`, `quoteCount` | Engagement |
| `isReply`, `replyToAuthor` | Reply context |
| `mediaCount`, `mediaUrls` | Attached images/videos |
| `linkPreviewUrl` | Link preview target, if any |

#### Sample output

```json
{
  "postId": "3937491905269768921",
  "code": "DakyAavlKLZ",
  "url": "https://www.threads.com/@zuck/post/DakyAavlKLZ",
  "username": "zuck",
  "userIsVerified": true,
  "text": "Today we're releasing Muse Spark 1.1 ...",
  "publishedAt": "2026-07-09T14:00:34.000Z",
  "likeCount": 2767,
  "isReply": false,
  "mediaCount": 0,
  "scrapedFromMode": "posts"
}
```

### Pricing

Pay-per-result — you only pay for what you get. See the **Pricing** tab on the actor page for current rates.

| Event | When you're charged |
|---|---|
| Actor start | Once per run (platform floor) |
| Post scraped | Per row returned in the output |

### FAQ

**Do I need a Threads or Instagram account?** No. It uses the public guest API — no login, no cookies.

**Can I scrape a single post and its replies?** Yes — put its URL in `postUrls`.

**Which pricing model?** Pay per result — you only pay for rows returned. See the **Pricing** tab.

### Support

Found a bug or want a new field/mode? Open an issue on the actor's **Issues** tab.

### ⚠️ Disclaimer

This scraper only collects data that is **publicly available** on Threads without logging in. Use it in compliance with Threads' terms and applicable law (including data-protection rules such as GDPR). You are responsible for how you use the data.

### Keywords

threads scraper, threads.com scraper, threads api, scrape threads posts, threads profile scraper, threads replies, social media scraper, threads data export, no-login threads scraper

# Actor input Schema

## `usernames` (type: `array`):

Threads usernames — a handle (zuck), @handle, or full profile URL. Each is scraped according to the Mode below.

## `mode` (type: `string`):

What to pull for each username: their posts, their replies, or just profile info.

## `postUrls` (type: `array`):

Threads post URLs (https://www.threads.com/@user/post/CODE) — pulls the post plus its reply thread.

## `includeLikers` (type: `boolean`):

For each post URL, also scrape the list of users who liked it.

## `searchQueries` (type: `array`):

Keywords/phrases to search Threads for — returns posts mentioning each term, from any author. e.g. "climate change", "your brand name".

## `hashtags` (type: `array`):

Hashtag feeds to pull (with or without the leading #), e.g. "coffee" or "#coffee". Returns recent/top posts under each tag.

## `searchSortType` (type: `string`):

For keyword searches: 'Top' (most relevant/engaged) or 'Recent' (newest first). Hashtag feeds are unaffected.

## `maxItems` (type: `integer`):

Maximum total rows across all targets.

## `proxy` (type: `object`):

Datacenter (default) works well and is fast. Switch to RESIDENTIAL if you hit rate limits at high volume.

## Actor input object example

```json
{
  "usernames": [
    "zuck"
  ],
  "mode": "posts",
  "includeLikers": false,
  "searchSortType": "top",
  "maxItems": 100,
  "proxy": {
    "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 = {
    "usernames": [
        "zuck"
    ],
    "maxItems": 100,
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/threads-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 = {
    "usernames": ["zuck"],
    "maxItems": 100,
    "proxy": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("memo23/threads-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 '{
  "usernames": [
    "zuck"
  ],
  "maxItems": 100,
  "proxy": {
    "useApifyProxy": true
  }
}' |
apify call memo23/threads-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Threads Scraper — Posts, Replies & Profiles, No Login",
        "description": "Threads Scraper — extract posts, replies and profiles from threads.com with no login or cookies. Paste usernames or post URLs and get flat rows: text, like/reply/repost/quote counts, media, timestamps and author. Bulk-ready. JSON, CSV or Excel.",
        "version": "0.0",
        "x-build-id": "K5UpGAIGmLjlAwWve"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/memo23~threads-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-memo23-threads-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/memo23~threads-scraper/runs": {
            "post": {
                "operationId": "runs-sync-memo23-threads-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/memo23~threads-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-memo23-threads-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",
                "properties": {
                    "usernames": {
                        "title": "Usernames",
                        "type": "array",
                        "description": "Threads usernames — a handle (zuck), @handle, or full profile URL. Each is scraped according to the Mode below.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "mode": {
                        "title": "Mode (for usernames)",
                        "enum": [
                            "posts",
                            "replies",
                            "profile"
                        ],
                        "type": "string",
                        "description": "What to pull for each username: their posts, their replies, or just profile info.",
                        "default": "posts"
                    },
                    "postUrls": {
                        "title": "Post URLs",
                        "type": "array",
                        "description": "Threads post URLs (https://www.threads.com/@user/post/CODE) — pulls the post plus its reply thread.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "includeLikers": {
                        "title": "Include likers (for post URLs)",
                        "type": "boolean",
                        "description": "For each post URL, also scrape the list of users who liked it.",
                        "default": false
                    },
                    "searchQueries": {
                        "title": "Search keywords",
                        "type": "array",
                        "description": "Keywords/phrases to search Threads for — returns posts mentioning each term, from any author. e.g. \"climate change\", \"your brand name\".",
                        "items": {
                            "type": "string"
                        }
                    },
                    "hashtags": {
                        "title": "Hashtags",
                        "type": "array",
                        "description": "Hashtag feeds to pull (with or without the leading #), e.g. \"coffee\" or \"#coffee\". Returns recent/top posts under each tag.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "searchSortType": {
                        "title": "Search ranking",
                        "enum": [
                            "top",
                            "recent"
                        ],
                        "type": "string",
                        "description": "For keyword searches: 'Top' (most relevant/engaged) or 'Recent' (newest first). Hashtag feeds are unaffected.",
                        "default": "top"
                    },
                    "maxItems": {
                        "title": "Max results",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum total rows across all targets.",
                        "default": 100
                    },
                    "proxy": {
                        "title": "Proxy",
                        "type": "object",
                        "description": "Datacenter (default) works well and is fast. Switch to RESIDENTIAL if you hit rate limits at high volume.",
                        "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
