# Threads Search Scraper (`burbn/threads-search-scraper`) Actor

Threads Keyword Search Scraper helps you search Threads by any keyword or phrase, Get post text, post links, timestamps, user details, and engagement metrics (likes, replies, reposts, quotes, reshares). Choose Top or Recent sorting and scrape up to your desired limit.

- **URL**: https://apify.com/burbn/threads-search-scraper.md
- **Developed by:** [Kevin](https://apify.com/burbn) (community)
- **Categories:** Social media, Automation, Developer tools
- **Stats:** 935 total users, 91 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Threads Search Scraper 🔍

Search and scrape **Threads posts** by keyword and export clean, structured data (post text, engagement metrics, user info, media URLs, timestamps).

This actor is built for:

- Trend & keyword research 📈
- Brand monitoring 🏷️
- Competitor analysis 🧠
- Social listening 🔊

***

### 📌 Table of Contents

- [✨ Features](#-features)
- [🎯 Use Cases](#-use-cases)
- [⚡ Quick Start](#-quick-start)
- [🧾 Input Parameters](#-input-parameters)
- [📤 Output](#-output)
- [🧩 Dataset Views (Table View)](#-dataset-views-table-view)
- [❓ FAQ](#-faq)
- [🔎 SEO Keywords](#-seo-keywords)

***

### ✨ Features

- **🔍 Keyword search on Threads**
  - Search by words, phrases, or hashtags
- **📊 Sort results**
  - `top` (popular) or `recent` (newest)
- **📦 Pagination support**
  - Automatically collects multiple pages until it reaches your limit
- **📈 Engagement metrics**
  - Likes, replies, reposts, quotes, reshares
- **🖼️ Media extraction**
  - Image URLs and video URLs (when available)
- **🧼 Clean structured dataset**
  - Ready for analysis, dashboards, or automation

***

### 🎯 Use Cases

| Use Case | What you can do | Why it helps |
|---|---|---|
| 📈 Trend analysis | Track what’s trending for a topic | Find viral content & themes |
| 🏷️ Brand monitoring | Search brand/product keywords | Identify mentions and sentiment |
| 🧠 Competitor research | Compare competitors’ content topics | Discover winning strategies |
| 🎥 Content ideation | Search prompts like “prompt ideas” | Generate new post ideas |
| 🔊 Social listening | Monitor keywords continuously | Stay updated on conversations |

***

### ⚡ Quick Start

#### 1️⃣ Basic run

Use this input:

```json
{
  "searchQuery": "prompt ideas",
  "sort": "top",
  "maxResults": 100
}
```

#### 2️⃣ Tips for better results

- Use specific phrases, e.g. `"ai prompts"`, `"startup marketing"`
- Try both `top` and `recent`
- Start with a smaller `maxResults` (e.g. 50–200) and increase if needed

***

### 🧾 Input Parameters

| Parameter | Type | Required | Default | Description |
|---|---:|:---:|---:|---|
| `searchQuery` | String | ✅ | - | Keyword / phrase to search on Threads |
| `sort` | String | ❌ | `top` | Sort results: `top` or `recent` |
| `maxResults` | Number | ❌ | `100` | Maximum number of posts to scrape |

***

### 📤 Output

Each dataset item represents **one Threads post**.

#### 🧾 Output fields (high-level)

| Category | Fields |
|---|---|
| 🧵 Post | `postId`, `postCode`, `postUrl`, `text`, `postedAt` |
| 📈 Engagement | `likeCount`, `replyCount`, `repostCount`, `quoteCount`, `reshareCount` |
| 👤 User | `username`, `fullName`, `userId`, `profilePicUrl`, `isVerified`, `isPrivate` |
| 🖼️ Media | `mediaType`, `mediaUrls`, `videoUrls`, `hasAudio` |

***

### 🧩 Dataset Views (Table View)

This actor includes a clean, organized dataset table view:

- **📊 Posts Overview**
  - Username, post text, likes, replies, reposts, posted time, post URL
- **📈 Engagement Metrics**
  - All engagement numbers in one place
- **👥 User Information**
  - Author details + verification/private flags
- **🖼️ Media Content**
  - Images/videos (when available)

***

### ❓ FAQ

#### **Q1: Why do I get fewer results than `maxResults`?**

Sometimes the search may return fewer posts for a given query, or pagination may end early. Try:

- A broader keyword
- Switching `sort` from `top` to `recent`

#### **Q2: Are media URLs always available?**

Not always. Some posts have no media, and some may include multiple images/videos.

#### **Q3: Can I run this actor for multiple queries?**

Run the actor multiple times—one run per query gives cleaner datasets and easier analysis.

#### **Q4: Is this actor meant for analytics & automation?**

Yes. The output is structured to be used in dashboards, spreadsheets, pipelines, or monitoring workflows.

***

### 🔎 SEO Keywords

Threads scraper, Threads search scraper, Threads keyword scraper, scrape Threads posts, Threads data extractor, Threads post search, Threads engagement scraper, Threads social listening, trend analysis Threads, brand monitoring Threads, keyword monitoring Threads, Apify Threads scraper

# Actor input Schema

## `searchQuery` (type: `string`):

Enter keywords, hashtags, or phrases to search for on Threads. Examples: 'AI', 'tech news', 'fitness tips'.

## `sort` (type: `string`):

Choose how to sort the search results. 'Top' shows most popular posts first, 'Recent' shows newest posts first.

## `from` (type: `string`):

Filter results to show only posts from a specific username. Example: 'foxnews', 'meta', etc. Leave empty to search all users.

## `before` (type: `string`):

Show posts created before this date. Select a date using the picker. Leave empty for no date limit.

## `after` (type: `string`):

Show posts created after this date. Select a date using the picker. Leave empty for no date limit.

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

Maximum number of posts to scrape from search results.

## Actor input object example

```json
{
  "searchQuery": "prompt ideas",
  "sort": "top",
  "maxPosts": 20
}
```

# Actor output Schema

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

Open the dataset view with an overview of scraped Threads posts including text, engagement stats, and timestamps.

## `engagement` (type: `string`):

Open the dataset view focused on engagement metrics including likes, replies, reposts, quotes, and reshares.

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

Open the dataset view with media information including image URLs, video URLs, and media type.

# 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 = {
    "searchQuery": "prompt ideas",
    "sort": "top",
    "maxPosts": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("burbn/threads-search-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 = {
    "searchQuery": "prompt ideas",
    "sort": "top",
    "maxPosts": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("burbn/threads-search-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 '{
  "searchQuery": "prompt ideas",
  "sort": "top",
  "maxPosts": 20
}' |
apify call burbn/threads-search-scraper --silent --output-dataset

```

## MCP server setup

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