# Threads Scraper - Profiles, Posts, Replies, Search (`tortuga/threads-scraper`) Actor

Scrape public Threads profiles, posts, replies and keyword search results without login: text, dates, like, reply, repost and quote counts, media links and author info.

- **URL**: https://apify.com/tortuga/threads-scraper.md
- **Developed by:** [Trevor Ortega](https://apify.com/tortuga) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-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 - Profiles, Posts, Replies and Search

Scrape **public Threads pages** (threads.com / threads.net) without login, cookies or API keys. Give it usernames,
Threads URLs or search keywords and get clean JSON, CSV or Excel: profile details, posts with like / reply / repost /
quote counts, media links, replies shown under a post, and keyword search results.

The Actor reads the public web pages the way a logged-out browser does. It never logs in, never uses account cookies
and does not use the mobile app or its private API.

### What you get

| Input | Output |
| --- | --- |
| Username (`zuck`, `@nasa`) or profile URL | One `profile` item plus the recent posts the public profile page shows (usually 4-10) |
| Post URL (`/@name/post/CODE`) | The post, plus the replies the public post page shows (usually about 5) |
| Search keyword or `/search?q=` URL | The first page of public search results (about 15-17 posts) |
| Tag URL (`/tag/ai`) | The posts the public tag page shows (about 15-18) |

#### Important limit: what logged-out pages contain

Threads only embeds the first handful of items in a public page. Older posts, more replies and further search pages
load through calls that need a login in the app, so this Actor does **not** return full account history, all replies
or deep search pagination. Scheduled runs (see below) are the way to collect more over time.

### Output fields

Post and reply items (`type` = `post` or `reply`):

| Field | Meaning |
| --- | --- |
| `code`, `postId`, `url` | Post short code (used in the URL), numeric id, link |
| `text` | Post text |
| `createdAt` | UTC time, ISO 8601 |
| `likeCount`, `replyCount`, `repostCount`, `quoteCount` | Counts as shown on the page |
| `authorUsername`, `authorName`, `authorVerified`, `authorProfilePicUrl`, `authorId` | Public author info |
| `media` | List of `{type, url, thumbnail, width, height}` (images, videos, every carousel slide) |
| `links` | Links in the post text or link preview |
| `quotedPost`, `repostedPost` | Brief info (code, url, author, text) when the post quotes or reposts another |
| `isReply`, `parentCode` | For replies, the code of the post they answer |
| `language`, `source` | Detected language; which profile, search or tag it came from |

Profile items (`type` = `profile`): `username`, `displayName`, `biography`, `followerCount`, `isVerified`, `isPrivate`,
`profilePicUrl`, `bioLinks`, `userId`, `url`.

### Input

```json
{
  "usernames": ["zuck", "nasa"],
  "startUrls": [{ "url": "https://www.threads.com/@zuck/post/DfNR0zhEdWv" }],
  "searchQueries": ["open source ai"],
  "maxItems": 100,
  "maxPostsPerProfile": 10,
  "includeProfile": true,
  "includeReplies": true,
  "maxRepliesPerPost": 20
}
```

### Example output

```json
{
  "type": "post",
  "code": "DfNR0zhEdWv",
  "url": "https://www.threads.com/@zuck/post/DfNR0zhEdWv",
  "text": "Tried to get the family to dress as burger night, but couldn't corral the littlest burger",
  "createdAt": "2026-11-01T17:33:48Z",
  "likeCount": 4284,
  "replyCount": 783,
  "repostCount": 187,
  "quoteCount": 34,
  "authorUsername": "zuck",
  "authorName": "Mark Zuckerberg",
  "authorVerified": true,
  "media": [{ "type": "image", "url": "https://scontent...", "width": 2279, "height": 2849 }]
}
```

### How to scrape a Threads profile

Put the username in **Profiles**. The Actor returns the profile item (name, bio, followers, verified badge, picture,
links) and the latest posts shown on the public page. Turn off **Include profile item** if you only want posts.

### How to scrape Threads search results

Add keywords under **Search keywords** or paste a `threads.com/search?q=...` URL. You get the first page of public
results with author, text, counts and media. Each keyword costs one page request.

### Does it work without login?

Yes, that is the only mode. Everything comes from public pages that open without an account. Private profiles return
only their profile card; their posts are not public and are never fetched.

### Monitor changes on a schedule

Switch on **Only new posts** and save the run as a Task with a Schedule (for example hourly). The Actor remembers the
posts earlier runs returned and outputs only new ones; posts already seen are not charged. Because a public page shows
only the latest posts, a schedule is also how you build up history. Add **Also report changed counts** to output a
post again when its like, reply, repost or quote count changed; items then carry `changeType` (`new` or `changed`)
and `previousValues`. Give each watch its own **Monitoring key** if several schedules use similar inputs.

### Pricing

Pay per result: **$0.002 per item** (profile, post or reply), no start fee. Platform usage is included. Set
**Max items** to cap spend.

### Proxy note

Threads serves its public pages to Apify datacenter proxies. Pages are about 1 MB each, and sometimes one request is
slow; the Actor retries on a new IP when a page comes back without data.

### Legal and responsible use

The Actor collects only what Threads shows publicly to logged-out visitors, including public usernames and display
names. Meta's terms discourage automated collection; you are responsible for how you use the data and for complying
with the law (GDPR and similar) and with the platform's terms. Do not use it to profile private individuals.

### Related scrapers

- [Quora Scraper](https://apify.com/tortuga/quora-scraper): Questions, Answers & Profiles
- [Medium Scraper](https://apify.com/tortuga/medium-scraper): Articles, Authors & Tags
- [Substack Scraper](https://apify.com/tortuga/substack-scraper): Posts, Newsletters & Comments
- [Telegram Channel Scraper](https://apify.com/tortuga/telegram-channel-scraper): Posts, Views & Media, No Login
- [Instagram Profile & Post Stats Scraper](https://apify.com/tortuga/instagram-profile-scraper)

### Found it useful?

A ★ review on this Actor's Apify Store page helps other users find it and tells us what to improve. Issues and feature requests are welcome in the Actor's **Issues** tab.

# Actor input Schema

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

Public Threads usernames, with or without @. Each gives one profile item plus the recent posts the public profile page shows (usually 4-10).

## `startUrls` (type: `array`):

Any public threads.com or threads.net URL: a profile (/@name), a single post (/@name/post/CODE), a search (/search?q=...) or a tag page (/tag/name).

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

Keywords to search on Threads. Returns the first page of results the public search page shows (about 15 posts per keyword).

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

Overall cap on dataset items (profiles, posts and replies). You are charged per item, so this caps the cost.

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

Recent posts to output per profile. The public page shows only the latest 4-10, so higher values do not return more.

## `includeProfile` (type: `boolean`):

Output one `type: "profile"` item per profile (name, bio, followers, verified, picture, links).

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

For post URLs, also output the replies the public post page shows (usually about 5).

## `maxRepliesPerPost` (type: `integer`):

Replies to output per post URL, when replies are included.

## `onlyNewOrChanged` (type: `boolean`):

Remember which posts earlier runs of these inputs returned and output only new ones. Use with a Schedule; posts already seen are not charged.

## `watchCounts` (type: `boolean`):

With Only new posts on, also output a post again when its like, reply, repost or quote count changed (adds changeType and previousValues). Busy posts change on every run, so this can charge often.

## `monitoringKey` (type: `string`):

Name for this watch, so several schedules on the same input stay separate; defaults to a key derived from the input

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

Apify Proxy (datacenter) is enough: Threads serves its public pages to these IPs. Each page is about 1 MB, so proxy traffic is the main platform cost.

## Actor input object example

```json
{
  "usernames": [
    "zuck",
    "nasa"
  ],
  "maxItems": 100,
  "maxPostsPerProfile": 10,
  "includeProfile": true,
  "includeReplies": true,
  "maxRepliesPerPost": 20,
  "onlyNewOrChanged": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (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 = {
    "usernames": [
        "zuck",
        "nasa"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("tortuga/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",
        "nasa",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tortuga/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/MZjmJGBC3iHtHS5tJ/builds/THoyxEdqVPJhSoImG/openapi.json
