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

Scrape Threads posts, profiles and keyword search with no login or cookies: text, date, likes, replies, reposts, quotes, photos and videos, links, hashtags, follower counts and bios. Monitor brands and topics, get only new posts on a schedule. Flat rows for spreadsheets and AI agents.

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

## Pricing

from $1.60 / 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: Posts, Profiles & Keyword Search

**Know what people say on Threads — and who says it — in seconds.** Give it profiles, keywords or post links and get clean rows with text, dates, likes, replies, reposts, media and follower counts. No login, no cookies, no API keys.

Threads Scraper turns Meta Threads into data you can use right away: track a brand or a topic, watch competitors and creators, collect posts for research, or feed fresh conversations to your AI agent. Press **Start** — the example input works as is.

### What you get

- **The latest posts of any public profile** — newest first, with text, date and fresh likes, replies, reposts, quotes and shares on every run.
- **Keyword search across Threads** — the top and the newest posts for every brand, product, person or topic you enter. Replies that only sit next to a found post are left out, so every row is about your keyword.
- **Profile details** — followers, bio, links, verification, avatar and the topics a profile posts about. One row per profile, ready for lead lists and creator research.
- **Exact post by link** — paste a post link and get its fresh numbers, plus the replies under it if you want them.
- **Every new post, on a schedule** — turn on *Only new posts* and each run returns just what appeared since the previous one. You collect every post of a profile or a keyword from day one, with no duplicates to pay for or clean up.
- **Photos, videos and links included** — direct media links, attached link with its title, hashtags, mentions and the topic tag in separate fields.
- **Replies, quotes and reposts made clear** — each row says whether it is a reply, a quote or a repost, and links to the post it answers or quotes.
- **Flat, predictable rows** — the same fields every time, ready for Google Sheets, Excel, BI tools and AI agents. A line that cannot be read gets a short note that says why, and those notes are free.

### How to use

1. Press **Start** — the example profiles return rows in seconds.
2. Replace the example with your own profiles, post links or keywords.
3. Download the results as JSON, CSV or Excel, or pull them through the API.

### Input

| Field | What it does | Example |
|---|---|---|
| `usernames` | Threads profiles or post links, one per line: a username, @username or a link | `["zuck", "@natgeo", "https://www.threads.com/@zuck/post/DfihFPxkaZ1"]` |
| `searchQueries` | Keywords: brands, products, people, topics. Each line is its own search | `["openai", "climate change"]` |
| `maxPosts` | The most posts to return per profile or keyword. `0` returns profile details only | `10` |
| `searchSort` | Keyword results: `all` (top and newest), `top` or `recent` | `"all"` |
| `includeProfile` | Add a row with followers, bio and links for each profile | `true` |
| `includeReplies` | For post links: also return the replies under the post | `false` |
| `postedAfter` | Only posts newer than a date (`2026-11-01`) or a period (`7 days`) | `"7 days"` |
| `onlyNew` | Each run returns only posts the previous runs have not returned | `false` |

Typical inputs:

```json
{ "usernames": ["zuck", "natgeo", "nasa"], "onlyNew": true }
```

```json
{ "searchQueries": ["your brand", "competitor brand"], "onlyNew": true }
```

```json
{ "usernames": ["https://www.threads.com/@zuck/post/DfNR0zhEdWv"], "includeReplies": true }
```

### Output

One row per post:

```json
{
  "type": "post",
  "input": "natgeo",
  "searchQuery": null,
  "postId": "4025189502230276871",
  "code": "DfcWIaiESsH",
  "url": "https://www.threads.com/@natgeo/post/DfcWIaiESsH",
  "username": "natgeo",
  "userId": "63269174602",
  "isVerified": true,
  "text": "Just a bison enjoying the snow for National Bison Day 🦬",
  "date": "2026-11-07T14:00:22.000Z",
  "likes": 10342,
  "replies": 90,
  "reposts": 283,
  "quotes": 31,
  "shares": 34,
  "mediaType": "image",
  "imageUrls": ["https://instagram.fqls3-1.fna.fbcdn.net/v/t51.82787-15/892412786_n.webp"],
  "videoUrls": [],
  "audioUrl": null,
  "linkUrl": null,
  "linkTitle": null,
  "links": [],
  "hashtags": [],
  "mentions": [],
  "topic": null,
  "isReply": false,
  "replyToUsername": null,
  "replyToPostUrl": null,
  "isQuote": false,
  "quotedPostUrl": null,
  "quotedPostText": null,
  "isRepost": false,
  "repostedPostUrl": null,
  "isPinned": false,
  "isEdited": false,
  "language": "en",
  "scrapedAt": "2026-11-10T23:24:41.307Z"
}
```

One row per profile:

```json
{
  "type": "profile",
  "input": "natgeo",
  "username": "natgeo",
  "userId": "63269174602",
  "url": "https://www.threads.com/@natgeo",
  "fullName": "National Geographic",
  "bio": "Step into wonder and find your inner explorer with National Geographic 🌎",
  "bioLinks": ["https://on.natgeo.com/instagram"],
  "followers": 18445783,
  "isVerified": true,
  "isPrivate": false,
  "avatarUrl": "https://scontent-iad3-2.cdninstagram.com/v/t51.82787-19/684235167_n.jpg",
  "topics": [],
  "scrapedAt": "2026-11-10T23:24:41.307Z"
}
```

The dataset has three ready views — **Posts**, **Profiles** and **Media and links** — so you can export exactly the table you need.

### What people use it for

- **Brand monitoring and social listening** — every new post that mentions your brand, product or campaign, delivered on a schedule.
- **Competitor and creator tracking** — what they post, how often, and which posts get the most likes, replies and reposts.
- **Influencer and lead research** — follower counts, bios and links for a list of profiles in one table.
- **Trend and market research** — the top and freshest conversations for any topic, ready for analysis.
- **AI agents and RAG** — fresh, structured Threads posts as context for assistants, summaries and reports.

### Use it with AI agents

Connect the Actor as a tool in Claude, ChatGPT, Cursor or n8n through the Apify MCP server. One short input — `usernames` or `searchQueries` — and compact, flat answers your agent can read without extra parsing.

### Integrations

Google Sheets, Make, Zapier, n8n, Slack, webhooks and the Apify API. Schedule a run every hour or every day and send new posts wherever your team works.

### FAQ

**Do I need a Threads or Instagram account?** No. There is nothing to connect: no login, no cookies, no API keys.

**How fresh is the data?** Every run collects it live from Threads, with the current likes, replies and reposts.

**How many posts do I get from a profile?** Every run brings the latest posts on the profile — usually the newest 4–6. Put the Actor on a schedule with *Only new posts* and you collect every new post from then on.

**How does keyword search work?** For every keyword you get the top posts and the newest posts Threads shows for it — usually 20–40 per run. Schedule the run with *Only new posts* and you build a continuous stream for each keyword.

**Can I get replies?** Yes: paste a post link and turn on *Replies for post links* to get the replies Threads shows under the post, each linked to the post it answers.

**How do I save photos and videos?** Each row carries direct media links. Download the files right after the run to keep them.

**Can I track only new posts?** Yes. Turn on *Only new posts* and put the Actor on a schedule: each run returns only what the previous runs have not returned.

### Need data at scale?

Daily exports for millions of rows, a pipeline straight into your CRM, warehouse or spreadsheets, or a scraper for a site that is not in the Store yet — ask us about a turnkey data feed.

# Actor input Schema

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

One per line: a username (zuck), @zuck or a profile link (https://www.threads.com/@zuck) gives the profile and its latest posts. A post link (https://www.threads.com/@zuck/post/...) gives exactly that post with its fresh likes and reply counts.

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

Optional. Find posts about a brand, product, person or topic across all of Threads. Each line is a separate search and returns the top and the newest posts for it.

## `maxPosts` (type: `integer`):

The most posts to return for each profile (its latest posts, newest first) and for each keyword. Set 0 to get profile details only.

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

Which posts to return for keywords: the most popular, the newest, or both.

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

Add one row per profile with followers, bio, links, verification and avatar.

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

For post links: also return the replies Threads shows under the post, each as its own row.

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

Optional. Only posts newer than this: a date like 2026-11-01 or a period like 7 days.

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

For schedules and monitoring: each run returns only posts that the previous runs for the same profiles and keywords have not returned yet. Run it every hour or every day to collect every new post.

## Actor input object example

```json
{
  "usernames": [
    "zuck",
    "natgeo"
  ],
  "searchQueries": [],
  "maxPosts": 10,
  "searchSort": "all",
  "includeProfile": true,
  "includeReplies": false,
  "onlyNew": false
}
```

# Actor output Schema

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

One row per post: author, text, date, likes, replies, reposts, quotes and media.

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

One row per profile: followers, bio, links and verification.

## `media` (type: `string`):

Photos, videos and links of each post.

# 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",
        "natgeo"
    ],
    "searchQueries": [],
    "maxPosts": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("mastertools/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",
        "natgeo",
    ],
    "searchQueries": [],
    "maxPosts": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("mastertools/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",
    "natgeo"
  ],
  "searchQueries": [],
  "maxPosts": 10
}' |
apify call mastertools/threads-scraper --silent --output-dataset

```

## MCP server setup

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