# Threads  Ultimate Scraper (`khnaami/actor-threads-scraper`) Actor

Scrape Threads by Meta profiles, follower stats, full posts, direct MP4 videos, replies, and keyword searches with no Instagram or Threads login required.

- **URL**: https://apify.com/khnaami/actor-threads-scraper.md
- **Developed by:** [khalid naami](https://apify.com/khnaami) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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 (Meta) Ultimate Scraper (Profiles, Posts, Replies, Likes & Search)

High-speed, all-in-one Threads by Meta (`threads.net`) data extraction and sentiment intelligence engine on Apify. Extract **Creator Profiles & Leads** (bio, follower counts, verified blue badges, emails/phones), **Posts & Microblogs** (text, like counts, reply counts, reposts), **Media Attachments** (HD images, direct MP4 videos), and **Keyword Search** without requiring a login or account.

***

### ⚡ Key Features

- 👤 **Creator Profile Intelligence**: Extract Full Name, Handle (`@username`), Bio, Follower Counts, Blue Verified Badge, Profile Pictures, and external bio links.
- 💬 **Posts & Microblogs Extraction**: Scrape thread posts with full text, publication timestamp, like count, reply count, repost count, and shortcodes.
- 🎬 **Media Attachments (Images & MP4 Videos)**: High-resolution photos, carousels, and direct MP4 video streaming links.
- 🔍 **Keyword & Hashtag Search**: Search across Threads for any topic or hashtag to discover trending discussions and monitor brand sentiment.
- 📧 **Direct Lead Generation**: Automatically extracts business contact emails and phone numbers found in creator bios and thread text.
- 🌐 **Zero Login Required**: Operates completely without needing an Instagram or Threads account, session token, or login credentials.
- 🛡️ **Dual-Engine Speed & Reliability**: Fast HTTP requests via `got-scraping` paired with an intelligent Playwright browser fallback.

***

### 📥 Input Configuration

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `mode` | String | `AUTO_DETECT` | Extraction mode: `AUTO_DETECT`, `PROFILES`, `POSTS`, `SEARCH`. |
| `targetUrls` | Array | `[...]` | List of Threads URLs (`threads.net/@username` or `threads.net/@username/post/...`). |
| `searchKeywords` | Array | `[]` | Keywords or hashtags to search across Threads. |
| `maxPosts` | Integer | `30` | Maximum posts to extract per creator or search query. |
| `maxReplies` | Integer | `20` | Maximum replies to extract per post. |
| `proxyConfiguration` | Object | `{ useApifyProxy: true }` | Apify Residential proxy configuration (recommended). |

***

### 📤 Output Data Format

#### 1. Threads Creator Profile Record

```json
{
  "type": "PROFILE",
  "id": "zuck",
  "username": "@zuck",
  "displayName": "Mark Zuckerberg",
  "url": "https://www.threads.net/@zuck",
  "bio": "Building the future of human connection. Contact: team@meta.com",
  "followersCount": "6.8M",
  "followersCountRaw": 6800000,
  "isVerified": true,
  "profilePictureUrl": "https://scontent.cdninstagram.com/...",
  "externalLink": "https://about.meta.com",
  "email": "team@meta.com",
  "emails": [
    "team@meta.com"
  ],
  "scrapedAt": "2026-10-09T23:25:00.000Z"
}
```

#### 2. Threads Post Record with Media & Metrics

```json
{
  "type": "POST",
  "id": "C9x123abc456",
  "postCode": "C9x123abc456",
  "url": "https://www.threads.net/@zuck/post/C9x123abc456",
  "username": "@zuck",
  "text": "Llama 3.3 is rolling out today. Open-source AI continues to accelerate.",
  "likesCount": 42000,
  "replyCount": 3800,
  "repostCount": 2100,
  "mediaType": "image",
  "imageUrls": [
    "https://scontent.cdninstagram.com/..."
  ],
  "publishedAt": "2026-10-08T16:00:00.000Z",
  "scrapedAt": "2026-10-09T23:25:00.000Z"
}
```

***

### 💼 Business & Creator Use Cases

- **Real-Time Social Listening & PR**: Track what industry influencers and journalists are posting on Threads.
- **Competitor Tracking**: Compare follower growth, posting frequency, and engagement metrics against competitors.
- **Influencer Sourcing**: Build targeted lists of creators on Threads with direct contact emails.

***

### 📄 License

Apache-2.0

# Actor input Schema

## `mode` (type: `string`):

Select Threads data extraction mode, or use AUTO_DETECT.

## `targetUrls` (type: `array`):

List of Threads profile URLs (threads.com/@username or threads.net/@username) or post URLs.

## `searchKeywords` (type: `array`):

Keywords or hashtags to search across Threads.

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

Maximum number of posts to extract per creator profile or search keyword.

## `maxReplies` (type: `integer`):

Maximum number of replies to extract per thread post.

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

Select Apify Proxy or No proxy (RESIDENTIAL recommended if datacenter IPs hit Meta rate limits).

## Actor input object example

```json
{
  "mode": "AUTO_DETECT",
  "targetUrls": [
    "https://www.threads.com/@zuck"
  ],
  "searchKeywords": [
    "artificial intelligence"
  ],
  "maxPosts": 30,
  "maxReplies": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Scraped Threads records (Profiles, Posts, Replies, Search Results)

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

High-level summary report and execution metrics stored in Key-Value store

# 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 = {
    "targetUrls": [
        "https://www.threads.com/@zuck"
    ],
    "searchKeywords": [
        "artificial intelligence"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("khnaami/actor-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 = {
    "targetUrls": ["https://www.threads.com/@zuck"],
    "searchKeywords": ["artificial intelligence"],
}

# Run the Actor and wait for it to finish
run = client.actor("khnaami/actor-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 '{
  "targetUrls": [
    "https://www.threads.com/@zuck"
  ],
  "searchKeywords": [
    "artificial intelligence"
  ]
}' |
apify call khnaami/actor-threads-scraper --silent --output-dataset

```

## MCP server setup

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