# Threads Scraper (`librevlad/threads-scraper`) Actor

Scrapes public posts and profiles from Threads (threads.com) without login. Pay per event: $3.00 per 1,000 posts, $0.002 per profile.

- **URL**: https://apify.com/librevlad/threads-scraper.md
- **Developed by:** [Владислав Новік](https://apify.com/librevlad) (community)
- **Categories:** Social media, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 posts

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/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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

# README

## Threads Scraper

**Pricing:** $3.00 per 1,000 posts and $0.002 per profile. Error rows are free.

Apify actor that collects **public posts and profiles from Threads** (threads.com by Meta) **without logging into any account**. It is for marketers tracking competitor profiles, researchers studying public conversations, and agencies that need a lightweight way to export public Threads content into a dataset.

### What it does

- Opens public **profile pages** and **individual post pages** on `threads.com` with Playwright (headless Chromium).
- Reads exactly the JSON the page itself receives: it intercepts the page's own `/api/graphql` responses and parses the JSON blocks embedded in the HTML. The actor sends no requests of its own to Threads' API.
- Scrolls the profile feed until `maxPostsPerProfile` posts are collected or no more posts load. Threads shows logged-out visitors only the latest few posts of a profile (3–4 in our tests in November 2026), and the actor does not log in, so expect a profile row plus the latest posts a visitor can see.
- Emits one dataset row per post and one `profile` row per processed profile. If Threads shows a login wall or a bot check instead of content, the run produces an error row — the actor never tries to log in, solve captchas, or bypass the check.

### Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `profiles` | array (required) | `["@zuck"]` | Profiles to scrape, as `@username` or full `https://www.threads.com/@username` URLs. |
| `postUrls` | array (optional) | — | Individual post URLs to scrape, e.g. `https://www.threads.com/@zuck/post/CODE`. |
| `maxPostsPerProfile` | integer 1–500 | `50` | Maximum posts collected per profile. |
| `includeReplies` | boolean | `false` | Include the profile's replies in the feed. Replies given directly via `postUrls` are always returned. |
| `maxConcurrency` | integer 1–5 | `2` | How many pages are processed in parallel. |
| `proxyConfiguration` | proxy editor | Apify datacenter proxy | A fresh proxy address is used for every task and every retry. The Apify residential group is replaced with the datacenter proxy to keep the price low; your own proxy URLs are used as given. |

### Output example

Post row (charged as the `post` event):

```json
{
  "type": "post",
  "postId": "3612345678901234567",
  "url": "https://www.threads.com/@zuck/post/C7xAbCdEfGh",
  "username": "@zuck",
  "text": "Hello Threads! This is our first public post.",
  "publishedAt": "2024-11-26T09:20:00Z",
  "likeCount": 1523,
  "replyCount": 214,
  "repostCount": 87,
  "quoteCount": 42,
  "mediaUrls": ["https://scontent.cdninstagram.com/…/photo.jpg"],
  "isReply": false,
  "profileUrl": "https://www.threads.com/@zuck"
}
```

Profile row (charged as the `profile` event):

```json
{
  "type": "profile",
  "username": "@zuck",
  "fullName": "Mark Zuckerberg",
  "bio": "Building the future of social apps.",
  "followerCount": 1234567,
  "isVerified": true,
  "profilePicUrl": "https://scontent.cdninstagram.com/…/zuck_profile.jpg",
  "profileUrl": "https://www.threads.com/@zuck"
}
```

Error row (not charged):

```json
{
  "type": "error",
  "status": "error",
  "errorType": "login_wall",
  "message": "Threads requires login to view this content ('log in to continue').",
  "input": "profile @zuck"
}
```

### Pricing

This actor is pay per event: **$3.00 per 1,000 posts, $0.002 per profile**. Error rows are not charged. If the event charge limit is reached, the actor stops starting new tasks instead of pushing uncharged rows.

### Limitations

- Public data only: private profiles, followers-only threads and anything behind a login wall are out of reach, and the run reports them as error rows (`login_wall`, `bot_check`, `rate_limited`, `no_data`, `navigation_error`).
- Threads may require login for deeper scrolling or in some regions; in those cases the actor returns the posts it managed to read and, if nothing at all is visible, an error row.
- Engagement counts are snapshots of the moment of scraping.
- Both `threads.com` and the older `threads.net` links are accepted; output links use `threads.com`.
- `mediaUrls` holds one link per photo or video (the largest size), not every size variant.
- Up to two retries per task, each with a new proxy address and a 2–5 second pause; a task is retried only while nothing from it has been recorded or charged.

### Responsible use

Use responsibly and check the site's terms for your use case.

### FAQ

**Do I need an Instagram or Threads account?**
No. The actor never logs in and never uses cookies or sessions from any account.

**Why do I get `login_wall` errors?**
Threads shows a login wall to some visitors (region, IP reputation, deep scrolling). Try again later or with your own proxy URLs; if the wall persists, the content is not accessible without login and the actor will not bypass it.

**How fast can I go?**
Keep `maxConcurrency` at 2–3 for long runs. Higher concurrency increases the chance of a bot check.

**Are replies included by default?**
No. Set `includeReplies` to true to include the profile's replies in its feed. A reply URL passed in `postUrls` is always returned.

**What is the maximum number of posts?**
`maxPostsPerProfile` is capped at 500 per profile per run, but logged-out visitors see only the latest few posts of a profile, so in practice you get those. To get a specific older post, pass its link in `postUrls`.

**How are quotes handled?**
Quoted posts are counted in `quoteCount` of the quoting post; the quoted content itself is not emitted as a separate row.

### More actors from the same developer

Pay only for results, no logins:

- [App Store Scraper](https://apify.com/librevlad/app-store-scraper) — app details, keyword search positions and reviews from Apple's public API.
- [Google Trends Scraper](https://apify.com/librevlad/google-trends-scraper-fast-cheap) — interest over time, interest by region and related queries.
- [Website Crawler to Markdown](https://apify.com/librevlad/website-crawler-markdown) — crawl a website or docs section into clean Markdown for RAG and LLMs.
- [Website to Markdown](https://apify.com/librevlad/website-to-markdown) — turn a list of pages and PDFs into clean Markdown or text.
- [Website Screenshot & PDF](https://apify.com/librevlad/page-screenshot-pdf) — full-page and mobile screenshots, URL to PDF.
- [YouTube Transcript Scraper](https://apify.com/librevlad/youtube-transcripts-fast) — transcripts as plain text, timestamped segments or SRT.
- [YouTube Search & Channel Videos](https://apify.com/librevlad/youtube-search-channel-videos) — search results and every video of a channel.
- [YouTube Shorts Scraper](https://apify.com/librevlad/youtube-shorts-scraper-fast) — Shorts from keyword search and from channels' Shorts tab.

# Actor input Schema

## `profiles` (type: `array`):

Public Threads profiles to scrape, one entry per profile. Use @username or a full profile URL such as https://www.threads.com/@username.

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

Optional list of individual Threads post URLs to scrape, e.g. https://www.threads.com/@username/post/CODE.

## `maxPostsPerProfile` (type: `integer`):

Maximum number of posts to collect per profile (1-500). The actor scrolls the public feed until this limit is reached or no more posts load.

## `includeReplies` (type: `boolean`):

If checked, replies made by the profile are included in the profile feed. Replies in posts given via Post URLs are always returned.

## `maxConcurrency` (type: `integer`):

Number of pages (browser tasks) processed in parallel, from 1 to 5. Lower values are gentler on the target site.

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

Apify datacenter proxy (default) works for public Threads pages; a fresh address is used for every task and retry. The residential group is replaced with the datacenter proxy to keep the price low. You can also pass your own proxy URLs.

## Actor input object example

```json
{
  "profiles": [
    "@zuck"
  ],
  "maxPostsPerProfile": 50,
  "includeReplies": false,
  "maxConcurrency": 2,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# 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 = {
    "profiles": [
        "@zuck"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("librevlad/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 = { "profiles": ["@zuck"] }

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

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

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

```

## CLI example

```bash
echo '{
  "profiles": [
    "@zuck"
  ]
}' |
apify call librevlad/threads-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,librevlad/threads-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ieqRwtprdAvhevgdA/builds/NfQS0856rb81wdlYa/openapi.json
