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

Threads profiles, posts, replies and search results with no login: followers and follower growth, post text, likes, replies, reposts, quotes, media links, mentions and hashtags. Paste usernames, profile or post links, words or #tags. Only-new memory.

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

## Pricing

from $1.38 / 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.
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, Search)

Read public Threads profiles, posts, replies and search results without logging in. Paste usernames, profile links, post links, search words or #tags, and get one clean row per profile and per post: followers and follower growth, post text, likes, replies, reposts, quotes, media links, mentions, hashtags and links.

### What can I put in the input?

- **Usernames or Threads links**: `zuck`, `@zuck`, `https://www.threads.com/@zuck`, a post link such as `https://www.threads.com/@zuck/post/DfaNgswkQPG`, the short `https://www.threads.com/t/DfaNgswkQPG` form, threads.net links, or a Threads search link.
- **Search words or #tags**: `baking` searches posts, `#baking` opens the tag page.
- **Posts per profile**: how many of each profile's newest posts to check. 0 returns only the profile row.
- **Include replies**: the replies under each post link, and each profile's own replies to other people.
- **Posted after**: a date (`2026-11-01`) or a span (`7 days`, `24 hours`). Paging stops once posts get older than this.
- **Only new posts**: skip posts an earlier run of the same task already returned.

Advanced (optional): replies per post, posts per search, top or recent search results, posted before, the profile row on or off, and a minimum number of likes.

```json
{
    "usernames": ["zuck", "https://www.threads.com/@instagram"],
    "searchQueries": ["#baking"],
    "maxPostsPerProfile": 50,
    "includeReplies": false,
    "postedAfter": "30 days",
    "onlyNew": true
}
```

### What does each row contain?

Every row has a `type`: `profile`, `post` or `summary`. Fields that do not apply to a row type are left out of that row.

| Field | What it holds |
|---|---|
| `type` | Row type: profile, post or summary. |
| `source` | The input this row came from: @username, a post link, a search term or #tag. |
| `username` | Threads username (the profile on a profile row, the author on a post row). |
| `fullName` | Display name on the profile. |
| `userId` | Threads user id of the profile. |
| `url` | Link to the profile or the post on threads.com. |
| `biography` | Profile bio. Email addresses and phone numbers are replaced with \[contact removed]. |
| `followerCount` | Followers when this run read the profile. |
| `followerCountPrevious` | Followers when an earlier run in your account last read this profile. |
| `followerChange` | Change in followers since that earlier run. |
| `followerChangeSince` | When that earlier run read the profile (ISO time). |
| `isVerified` | The profile has a verified badge. |
| `isPrivate` | The profile is private, so only this row is public. |
| `profilePicUrl` | Largest profile picture. |
| `bioLinks` | Links in the bio (mail, call and chat links are left out). |
| `topics` | Topics Threads shows on the profile. |
| `postId` | Threads post id. |
| `code` | Post code, the last part of the post link. |
| `text` | Post text. Email addresses and phone numbers are replaced with \[contact removed]. |
| `createdAt` | When the post was published (ISO time, UTC). |
| `likeCount` | Likes. |
| `replyCount` | Direct replies. |
| `repostCount` | Reposts. |
| `quoteCount` | Quotes. |
| `shareCount` | Shares. |
| `mediaType` | text, image, video or carousel. |
| `imageUrls` | Image links (largest size), one per image or carousel item. |
| `videoUrls` | Video links. |
| `authorFullName` | Display name of the post author. |
| `authorId` | Threads user id of the post author. |
| `authorVerified` | The post author has a verified badge. |
| `isReply` | The post answers another post (including the next parts of a multi-part thread). |
| `replyToUsername` | Username of the post it answers. |
| `replyToCode` | Code of the post it answers, when Threads shows it. |
| `threadRootCode` | Code of the first post of the conversation, for replies and later parts of a thread. |
| `isQuote` | The post quotes another post. |
| `quotedPostUrl` | Link to the quoted post. |
| `isPinned` | Pinned to the top of the profile. |
| `isEdited` | The post text was edited after publishing. |
| `isPaidPartnership` | Marked as a paid partnership. |
| `replyControl` | Who may reply, as Threads states it (for example everyone, accounts_you_follow, mentioned_only). |
| `language` | Language Threads detected for the post. |
| `topic` | Topic tag shown on the post. |
| `mentions` | Usernames mentioned in the post. |
| `links` | Links in the post text. |
| `hashtags` | Hashtags in the post text, lower case. |
| `linkPreviewUrl` | Link of the preview card under the post. |
| `linkPreviewTitle` | Title of the preview card. |
| `message` | Summary rows: what was read for this input. |
| `profiles` | Summary rows: profile rows returned for this input. |
| `posts` | Summary rows: post rows returned for this input. |
| `replies` | Summary rows: reply rows returned for this input. |
| `skippedKnown` | Summary rows: posts skipped because an earlier run returned them (onlyNew). |
| `filteredOut` | Summary rows: posts outside the dates or likes filters. |
| `scrapedAt` | When this run read the data (ISO time). |

### How much does it cost?

You pay per row, with no start fee beyond Apify's tiny run start charge:

- **Post row** (posts, replies and search results): $2.50 per 1,000 rows.
- **Profile row**: $4.00 per 1,000 rows.
- **Summary rows** are free.

Scale and Business plans pay less per row. On Apify's free plan a run stops at 100 rows; any paid plan removes the cap. Set a maximum charge on the run and it stops cleanly before going over.

### How does follower growth work?

Each time a run reads a profile, the follower count is remembered in your own Apify account. The next run that reads the same profile fills in `followerCountPrevious`, `followerChange` and `followerChangeSince`. Schedule a daily run on a list of usernames and you have a follower history.

### How does "Only new posts" work?

The run remembers the codes of the posts it returned for this task and these inputs. The next run skips them, so a scheduled run returns only what was posted since. Posts skipped this way are counted in the free summary row and are not charged. Profile rows are always returned.

### What can it not do?

- It reads only what Threads shows to a logged-out visitor. Private profiles return the profile row only.
- Logged out, a search shows about 30 top posts and about 10 recent posts, so searches are not endless.
- The Reposts tab is not available logged out.
- View counts are not public on Threads posts.

### How is personal data handled?

Email addresses and phone numbers in bios and posts are replaced with `[contact removed]`, and bio links that open a mail, call, text or chat are left out. The Actor never logs in, never uses cookies from an account, and returns only what any visitor can see without an account.

### Is it legal to use this data?

Public posts can still contain personal data. You are responsible for using the results lawfully: follow the privacy and data protection laws that apply to you (such as GDPR), Threads' own terms where they bind you, and do not use the data to harass, profile or contact people who did not agree to it. If you are unsure, ask a lawyer.

### What do people often ask?

#### Why did a profile return fewer posts than I asked for?

Either the profile has fewer posts, the date filter stopped the walk, or Threads stopped answering for a moment. The free summary row for that input says which.

#### Why is a username reported as not found?

Threads sends logged-out visitors of a profile that does not exist (or was renamed) to its log-in page. Check the spelling.

#### Can I call it from the API or an agent?

Yes. Call it from the Apify API, the Apify MCP server or any integration, with the same input.

#### Do I need a Threads account or cookies?

No. Nothing in the input asks for an account, and the Actor never logs in.

# Changelog

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

# Actor input Schema

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

Threads usernames (with or without @), profile links, post links (threads.com, threads.net or the short /t/ form) or search links. One per line.

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

Words to search Threads for, or a #tag for the tag page. Logged out, Threads shows about 30 top posts and about 10 recent posts per search.

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

How many of each profile's newest posts to check (the parts of a multi-part thread count one each). 0 returns the profile row only.

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

For post links: the replies under the post. For profiles: also the profile's own replies to other people (up to the same number per profile).

## `postedAfter` (type: `string`):

Only posts published after this date (2026-11-01) or within this span ("7 days", "24 hours").

## `onlyNew` (type: `boolean`):

Skip posts an earlier run of this task already returned. Profile rows are always returned, with the follower change since the last run.

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

With replies on: how many replies to return under each post link.

## `maxPostsPerSearch` (type: `integer`):

Most posts to return for each search word or #tag.

## `searchSort` (type: `string`):

Top posts, recent posts, or both.

## `postedBefore` (type: `string`):

Only posts published before this date (2026-11-01) or before this span ago ("30 days").

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

One row per profile with followers, follower change, bio and links.

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

Only posts with at least this many likes.

## Actor input object example

```json
{
  "usernames": [
    "zuck",
    "https://www.threads.com/@instagram"
  ],
  "maxPostsPerProfile": 5,
  "includeReplies": false,
  "onlyNew": false,
  "maxRepliesPerPost": 20,
  "maxPostsPerSearch": 30,
  "searchSort": "top",
  "includeProfile": true,
  "minLikes": 0
}
```

# Actor output Schema

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

Profiles and posts together: username, text, date, likes, replies, reposts, quotes, media, followers and follower change.

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

Post rows: text, date, counts, media links, reply and quote details.

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

Profile rows: name, followers, follower change since the last run, verified badge, bio, bio links and topics.

## `summaries` (type: `string`):

One free row per input: what was read, how many rows, and what was skipped.

## `summary` (type: `string`):

Rows by type, each input's result, requests and cost.

# 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",
        "https://www.threads.com/@instagram"
    ],
    "maxPostsPerProfile": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("locaihost/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",
        "https://www.threads.com/@instagram",
    ],
    "maxPostsPerProfile": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("locaihost/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",
    "https://www.threads.com/@instagram"
  ],
  "maxPostsPerProfile": 5
}' |
apify call locaihost/threads-scraper --silent --output-dataset

```

## MCP server setup

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