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

Public Threads data without login: full profile post history, replies, reposts, keyword and tag search. Low flat prices, no charge for empty or duplicate results, free filters, monitoring mode and a coverage report for every input.

- **URL**: https://apify.com/abdelrahman12_3/threads-scraper.md
- **Developed by:** [abdelrahman hatem](https://apify.com/abdelrahman12_3) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.40 / 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/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 — Posts, Replies, Profiles & Search

Scrape public Threads data **without logging in**: profiles with their **full post history**, posts, replies, reposts, keyword search and topic tags. Put anything in one box: usernames, profile links, post links, `#tags` or keywords. The scraper works out what each one is.

Three things make it different:

- **Full history, not the latest 20.** Threads shows a profile's whole history to logged-out visitors, page by page, and this scraper reads all of it, back to the very first post.
- **You only pay for real results.** You are never charged for empty results, duplicates, posts your filters removed, or items a monitor already gave you. Filters are free.
- **Every input gets a coverage report.** It says how many items you asked for, how many you got, and exactly why it stopped.

> This Actor is not affiliated with, endorsed by, or sponsored by Threads or Meta. It only reads data that Threads shows publicly to logged-out visitors.

### What you can scrape

| Input | Example | What you get |
|---|---|---|
| Profile | `zuck`, `@zuck`, `https://www.threads.com/@zuck` | Profile details plus the profile's posts, newest first, as far back as you want |
| Profile tab | `https://www.threads.com/@zuck/replies` (also `/reposts`, `/media`) | That tab only: the profile's replies to others (with the post they answer), its reposts (with when it reposted), or its photo and video posts |
| Profile by ID | `id:63055343223` | Same as a profile |
| Post | `https://www.threads.com/@zuck/post/Dd1MqfcG0aH` | Full post details plus its replies (top or newest first), optionally replies to replies |
| Keyword (any language) | `ai agents`, `الذكاء الاصطناعي`, `keyword:zuck` | About 20 matching posts |
| Topic tag | `#UFC318`, `tag:MMA` | About 20 posts with that topic tag |

Paste inputs however you have them: one per line, several on one line separated by commas, with or without `@`, `#` or quotes, `threads.net` or `threads.com` links, post links ending in `/media` or `/embed`, short `/t/` links and search links. Duplicates such as `zuck`, `@Zuck` and the profile link are scraped once.

Profile tabs are chosen in **Profile tabs** (threads, replies, reposts, media). A tab link in the input reads only that tab.

### What Threads shows logged-out visitors

Threads limits what anyone can see without an account, and every logged-out scraper hits the same limits. Here they are up front:

- **Profiles:** the full history of the threads, replies, reposts and media tabs. Threads itself does not cap it; the scraper stops at its own safety limit of 1,000 pages per tab (about 15,000 threads, coverage code `PAGE_LIMIT`). Use **Max posts per input** or the date filters to stop earlier.
- **Replies:** Threads lists most replies, but not all. Hidden, deleted and filtered replies are not listed, so a post that says "2,400 replies" may list fewer. The coverage row says how many were listed against how many Threads counts.
- **Search and tags:** about 20 posts per keyword or tag, with no way to load more. The "newest" sort and the date and author filters of Threads search need a login. Turn on **Search keywords and tags both ways** for about 20 more posts per input, or add more specific keywords.
- **View counts:** Threads does not show them to logged-out visitors, so `viewsCount` is always `null`.
- **Not available without login:** follower and following lists, who liked or quoted a post, people search, private profiles, and the For You and Following feeds.

When an input stops because of one of these limits, its coverage row says `THREADS_LOGGED_OUT_CAP`, so you know nothing went wrong.

### Monitoring mode

1. Set **Monitor name** (for example `competitors`).
2. Save the input as a task and give it a schedule (hourly, daily…).
3. Each run returns only posts and replies this monitor has never delivered before.

Profiles stop paging as soon as they reach a post the monitor already knows, so a check where nothing is new is small and fast. A monitored post link returns only its **new replies**, which makes it easy to follow the conversation under a post.

Each input checked costs one *monitor check* event. That covers the requests even when nothing new was posted. New posts and replies are charged as usual.

### Output

Each record type gets its own table, so every table stays clean: **Posts** (the main dataset), **Replies**, **Profiles** and **Coverage report**. You can open each one from the run's Output tab or through the API. Records in a table always have the same fields; a field that is unknown comes back as `null` instead of disappearing.

#### Post

```json
{
  "recordType": "post",
  "id": "3994109866205639942",
  "code": "Ddt7cL5EfUG",
  "url": "https://www.threads.com/@zuck/post/Ddt7cL5EfUG",
  "type": "carousel",
  "text": "Agrippa said it's time to get back to work 😎",
  "hashtags": [],
  "mentions": [],
  "links": [],
  "topicTag": null,
  "createdAt": "2026-09-25T16:50:21.000Z",
  "isEdited": false,
  "author": { "id": "63055343223", "username": "zuck", "fullName": "Mark Zuckerberg", "isVerified": true },
  "likesCount": 5038,
  "repliesCount": 497,
  "repostsCount": 261,
  "quotesCount": 47,
  "sharesCount": 140,
  "viewsCount": null,
  "imageUrl": "https://…",
  "videoUrl": "https://…",
  "media": [{ "type": "image", "imageUrl": "https://…", "videoUrl": null, "width": 2160, "height": 2700, "altText": null }],
  "linkPreview": null,
  "isReply": false,
  "replyTo": null,
  "quotedPost": null,
  "repost": null,
  "threadId": "3994109866205639942",
  "threadPosition": 1,
  "isPinned": false,
  "isAiLabeled": false,
  "isPaidPartnership": null,
  "metrics": { "engagementRate": 0.001017, "ageHours": 190.13 },
  "source": { "kind": "profile", "value": "zuck", "tab": "threads" },
  "input": "zuck"
}
```

- **`type`** is `text`, `image`, `video` or `carousel`. `media` lists every image or video, with alt text when Threads has it.
- **`threadId` and `threadPosition`** group a multi-part thread: the first post has position 1, and its follow-ups (which Threads stores as the author's replies to themselves) have 2, 3 and so on.
- **`replyTo`** is set on the profile's replies (replies tab): the username and link of the post it answers.
- **`repost`** is set on reposts tab records: the record is the original post, and `repost` says who reposted it and when.
- **`quotedPost`** holds the post a quote post quotes.
- **`links`** are the real targets of links in the text and link previews (Threads' `l.threads.com` wrapper is removed).
- **`metrics.engagementRate`** is (likes + replies + reposts + quotes) ÷ the author's followers, when the author's follower count is known (profile inputs).
- **`isPaidPartnership`** is `null` when Threads does not say (it usually does not to logged-out visitors).

Media links are signed by Threads and stop working after about 4 days. Turn on **Save media files** to keep copies.

#### Reply

Each reply has its text, links, image or video, likes, reply count, date, the post it belongs to (`postId`, `postUrl`), its parent (`parentId`) and its `depth` (1 = reply to the post, 2 = reply to a reply). **Reply authors' usernames are hidden by default** for privacy: each person gets a stable pseudonymous `authorHash` instead (a salted hash of the username, the same in every run). Replies by the post's own author always show the author (`isPostAuthor: true`). Turn on *Include reply author usernames* if you need them and have a lawful reason to process them.

#### Profile

The profile record has the user ID, username, name, bio, bio links, follower count, thread count (when the profile page was read), verified and private flags, topic tags the profile belongs to, and the profile picture.

It also includes computed **metrics** from the first page of posts: average likes, replies and reposts, engagement rate, and posts per week.

#### Coverage report (free)

The **Coverage report** table has one row per input. The same rows are also saved as the `COVERAGE` record in the run's key-value store.

```json
{
  "input": "zuck",
  "detectedType": "profile",
  "requested": 100,
  "delivered": { "posts": 100, "replies": 0, "profiles": 1 },
  "skipped": { "filtered": 0, "duplicate": 0, "seenBefore": 0, "otherAuthors": 0 },
  "pagesFetched": 8,
  "charged": { "profile": 1, "post": 100 },
  "stopCode": "LIMIT_REACHED",
  "message": "Delivered the number of items you asked for."
}
```

The possible stop codes are:

- `LIMIT_REACHED`: delivered the number of items you asked for
- `NO_MORE_DATA`: delivered everything that exists (for example a profile back to its first post)
- `THREADS_LOGGED_OUT_CAP`: delivered everything Threads shows to logged-out visitors (search results, listed replies)
- `DATE_LIMIT`: reached posts older than your date window, so older posts were not fetched
- `CAUGHT_UP`: a monitor reached items it already delivered
- `PAGE_LIMIT`: reached the scraper's safety limit of pages (1,000 per profile tab, 2,000 per post's replies)
- `COMPLETED`: finished (for example a profile with no tabs selected)
- `PRIVATE_ACCOUNT`
- `NOT_FOUND`
- `BLOCKED` (also with "Partial:" when some pages came through before the rest failed)
- `LAYOUT_CHANGED`
- `SPENDING_LIMIT`
- `RUN_LIMIT`
- `INVALID_INPUT`

The `SUMMARY` record has the run totals and every event charged.

### Pricing

Pay per event. No monthly rental, no minimum results per query, and no extra charge for filters or sorting.

| Event | Price per 1,000 |
|---|---|
| Post | $0.40 |
| Reply | $0.15 |
| Profile | $1.00 |
| Monitor check (per input, monitoring mode only) | $0.40 |
| Saved media file | $2.00 |

**Example:** 100 profiles with their last 300 posts each (30,000 posts, with *Max posts per input* set to 300 and *Max items per run* raised to 30,000) cost about **$12.10**. One viral post with 2,000 replies (*Replies per post* set to 2,000) costs about **$0.30**.

**Never charged:**

- empty results
- duplicates within a run (the same post found by two inputs or two tabs, or a thread follow-up that is also a reply)
- filtered posts
- items a monitor already delivered
- requests that failed
- the parent posts shown next to a profile's replies
- coverage rows and the run summary

A repost and the original post are separate records: a profile's reposts tab delivers the original post again, with who reposted it and when, and each is charged as a post. In monitoring mode the *monitor check* is charged once per input per run, after the input was checked, even when nothing new was found; it is not charged for inputs that were not found or failed.

Set *Maximum cost per run* when you start a run, and the scraper will stop cleanly when it reaches it.

### Tips

- **Keep the default proxy.** Apify's datacenter proxy works for logged-out Threads. If Threads starts blocking it, the scraper switches to residential proxies by itself for the rest of the run, and the run summary says so.
- **Use the date filters to stop early.** With *Posts newer than* set, profiles stop paging as soon as they reach older posts.
- **Dates take a date or a relative value.** Use the date picker in the form. Through the API you can send `2026-09-01`, `7 days`, `7d`, `2 weeks ago`, `3 months` or `yesterday`. If a date cannot be read safely, for example `03/04/2026`, the run stops before any request and tells you how to write it. Nothing is charged in that case.
- **Want replies for every post of a profile?** Turn on *Replies for posts from profiles and search*. Each post then adds at least one request, so keep *Replies per post* small.
- **In monitoring tasks, turn off _Profile details_** unless you want a fresh profile record (charged) on every run.
- **Use *Flat output* and snake_case for spreadsheets and databases.**
- **Use *Run tag* to label batches when you run the same task many times.**

### Legal

This scraper only collects data Threads shows publicly to logged-out visitors. It never logs in, never uses accounts or cookies, and never bypasses privacy settings.

Some results, such as names, bios and replies, can still be personal data under laws like the GDPR. You are responsible for having a lawful basis to collect and use it, and for collecting only what you need. If you are unsure, ask a lawyer.

# Changelog

This Actor's version history is a separate document: https://apify.com/abdelrahman12_3/threads-scraper/changelog.md

# Actor input Schema

## `targets` (type: `array`):

One per line (or several separated by commas). Accepts usernames (zuck or @zuck), profile links (threads.com or threads.net, also /replies, /reposts and /media tab links), post links (also /media, /embed and /t/ short links), #tags, and keywords in any language. Prefix with "keyword:" to force a keyword, "tag:" for a topic tag, "post:" for a post code and "id:" for a numeric user ID. Duplicates are scraped once.

## `profileDetails` (type: `boolean`):

Followers, bio, links, verification, topic tags and computed engagement for each profile.

## `profileTabs` (type: `array`):

Which parts of each profile to read. Threads shows the full history of each tab to logged-out visitors. A tab link (like threads.com/@zuck/replies) reads only that tab.

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

How many replies to collect for each post link in "What to scrape" (and for profile and search posts when the option below is on). 0 = no replies. Charged per reply.

## `repliesSort` (type: `string`):

Top replies first (as Threads shows them), or the newest first. Monitoring always reads newest first, so new replies are never missed.

## `nestedReplies` (type: `boolean`):

Also open replies that have their own replies and collect those (one level deeper). They count toward "Replies per post".

## `repliesForFeedPosts` (type: `boolean`):

Also collect replies for every post found on profiles, keywords and tags (not only for post links). Each post adds at least one request.

## `searchBothModes` (type: `boolean`):

Threads shows about 20 search results to logged-out visitors. With this on, each keyword is also searched as a topic tag and each #tag as a keyword, which usually adds 15 to 20 more posts.

## `newerThan` (type: `string`):

Only posts from this date on. Pick a date, or switch to relative for values like 7 days or 3 months. Profiles stop paging once they reach older posts, so this also saves time. Leave empty for no limit. Free.

## `olderThan` (type: `string`):

Only posts before this date. Pick a date, or switch to relative (1 day = skip the last 24 hours). Leave empty for no limit.

## `minLikes` (type: `integer`):

Only posts with at least this many likes.

## `postTypes` (type: `array`):

Leave empty for all types.

## `includeReposts` (type: `boolean`):

Turn off to drop reposts of other people's posts (they only come from the reposts tab).

## `skipPinned` (type: `boolean`):

Drop posts the profile pinned to the top.

## `maxItemsPerTarget` (type: `integer`):

Stop collecting posts for an input after this many (across all chosen tabs). Profiles can go back to their very first post (up to 1,000 pages per tab).

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

Stop the whole run after this many posts and replies together.

## `monitorName` (type: `string`):

Turns on monitoring: the run returns only posts and replies this monitor has not delivered before, and you are never charged twice for the same item. Profiles stop paging as soon as they reach known posts. Use the same name on a scheduled task. Upper or lower case and extra spaces do not matter.

## `includeReplyAuthors` (type: `boolean`):

Off by default for privacy: people who reply get a stable pseudonymous ID (a salted hash of the username) instead of their username. Replies by the post's own author always show the author.

## `fieldCase` (type: `string`):

camelCase or snake_case keys.

## `flatten` (type: `boolean`):

Turn nested objects into dotted keys (author.username). Handy for spreadsheets.

## `runTag` (type: `string`):

Free text copied onto every record, to label batches.

## `saveMedia` (type: `string`):

Copies images (and optionally videos) into this run's storage before Threads' links expire (after about 4 days). Charged per file.

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

Apify's datacenter proxy (the default) works for logged-out Threads and keeps runs cheap. If Threads starts blocking it, the scraper switches to residential proxies by itself for the rest of the run. Pick residential here to use it from the start.

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

How many requests run at the same time. Higher is faster but more likely to be blocked.

## `maxRequestsPerMinute` (type: `integer`):

Upper limit on requests per minute across the whole run.

## Actor input object example

```json
{
  "targets": [
    "zuck"
  ],
  "profileDetails": true,
  "profileTabs": [
    "threads"
  ],
  "maxRepliesPerPost": 20,
  "repliesSort": "top",
  "nestedReplies": false,
  "repliesForFeedPosts": false,
  "searchBothModes": false,
  "postTypes": [],
  "includeReposts": true,
  "skipPinned": false,
  "maxItemsPerTarget": 20,
  "maxItems": 1000,
  "includeReplyAuthors": false,
  "fieldCase": "camel",
  "flatten": false,
  "saveMedia": "none",
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxConcurrency": 8,
  "maxRequestsPerMinute": 120
}
```

# Actor output Schema

## `posts` (type: `string`):

No description

## `replies` (type: `string`):

No description

## `profiles` (type: `string`):

No description

## `coverage` (type: `string`):

No description

## `summary` (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 = {
    "targets": [
        "zuck"
    ],
    "maxItemsPerTarget": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

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

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

```

## MCP server setup

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