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

Search public Threads posts by keyword and export authors, text, media, timestamps, and visible engagement.

- **URL**: https://apify.com/fetch\_cat/threads-search-scraper.md
- **Developed by:** [Hanna Nosova](https://apify.com/fetch_cat) (community)
- **Categories:** Social media, Marketing
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.20 / 1,000 public threads post saveds

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 Search Scraper

Search public [Threads](https://www.threads.com/) posts by keyword and export clean, query-attributed data for brand monitoring, PR, creator research, trend discovery, and campaign analysis. This Threads scraper collects public post URLs, text, authors, timestamps, media, and visible engagement without asking for a Threads or Instagram login.

### Buyer workflows

- Monitor recent brand or product mentions on Threads.
- Compare campaign phrases in one bounded run.
- Export public Threads posts to JSON, CSV, Excel, or an API integration.
- Track industry conversations with an optional publication-date boundary.
- Distinguish a genuine no-match result from an upstream challenge or login wall.

### Input

The Actor starts with a useful `artificial intelligence` query. Replace it with one or more terms and choose the total post limit and sort order. Less common controls are grouped under **Advanced options**.

```json
{
  "searchQueries": ["climate tech", "renewable energy"],
  "sort": "recent",
  "maxItems": 30,
  "sinceDate": "2026-09-01",
  "includeReplies": false,
  "failOnBlocked": true
}
```

| Field | Purpose |
| --- | --- |
| `searchQueries` | Keywords or phrases to search in public Threads results. |
| `maxItems` | Maximum unique posts saved across all queries. |
| `sort` | `top`, or `recent` to order visible results newest-first. |
| `sinceDate` | Optional ISO date/time lower bound. |
| `includeReplies` | Include posts visibly identified as replies. |
| `failOnBlocked` | Fail instead of returning a misleading empty dataset when access is blocked. |
| `proxyConfiguration` | Optional connection settings under Advanced options. |

### Output

Each dataset row contains the input `query`, stable `id`, canonical `url`, visible `text`, `timestamp`, nested `author`, public `media`, visible engagement counts, and reply context.

```json
{
  "query": "climate tech",
  "id": "example-post-id",
  "url": "https://www.threads.com/@example/post/example-post-id",
  "text": "A public post about climate tech",
  "timestamp": "2026-09-20T12:00:00.000Z",
  "author": {
    "username": "example",
    "displayName": "Example Creator",
    "profileUrl": "https://www.threads.com/@example"
  },
  "media": [],
  "likes": 12,
  "replies": 2,
  "reposts": 1,
  "quotes": 0,
  "views": null,
  "isReply": false,
  "parentPostUrl": null
}
```

Optional values are `null` when Threads does not expose them; engagement counts are never invented. The `OUTPUT` key-value record summarizes every query as `results`, `zero_results`, `blocked`, or `unknown`. A genuine no-match page succeeds with zero rows.

### Input recipes

Use these inputs as starting points in the Actor form or API:

- **Brand mentions:** Search your brand name with `sort: "recent"` and a small `maxItems`.
- **Campaign comparison:** Put two campaign phrases in `searchQueries` to collect both in one dataset.
- **Industry news:** Combine a topic query, `sort: "recent"`, and `sinceDate` to follow recent discussion.

### Related social-media Actors

Pair Threads monitoring with these FetchCat tools when your campaign spans other public networks:

- [Instagram AI Transcript Extractor](https://apify.com/fetch_cat/instagram-ai-transcript-extractor)
- [Instagram Profile Posts Scraper](https://apify.com/fetch_cat/instagram-profile-posts-scraper)
- [Tweet Scraper](https://apify.com/fetch_cat/tweet-scraper)
- [TikTok Sound Scraper](https://apify.com/fetch_cat/tiktok-sound-scraper)
- [LinkedIn Posts Scraper](https://apify.com/fetch_cat/linkedin-posts-scraper)

### Pricing

The Actor uses pay-per-event pricing: one `start` event is charged when a run begins, and one `result` event is charged for each unique public Threads post saved. Genuine no-match runs do not incur a result charge, and blocked status rows are not charged as saved posts. See the live [Pricing tab](https://apify.com/fetch_cat/threads-search-scraper/pricing) for current rates and plan discounts.

### Performance and limits

Use focused terms and a realistic `maxItems` for faster monitoring. `sinceDate` filters posts whose timestamps are publicly visible; it cannot recover hidden timestamps. Threads can change anonymous search pages or show challenges, so the Actor reports blocked access rather than fabricating compatibility rows. Top and recent modes reflect what can be observed on the public search surface.

This Actor reads only anonymous public search pages. It does not accept cookies or credentials and does not collect private profiles, direct messages, full reply trees, Instagram data, or authenticated-only fields.

### API and MCP

#### JavaScript API

```js
const run = await client.actor('fetch_cat/threads-search-scraper').call({
  searchQueries: ['climate tech'],
  sort: 'recent',
  maxItems: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

You can also call `fetch_cat/threads-search-scraper` through the Apify API, schedules, webhooks, or the Apify MCP server using the same input fields.

### FAQ

#### Can I use this as a Threads API for keyword monitoring?

Yes. Run it through the Apify API or MCP server and read the resulting dataset. It covers anonymous public keyword results rather than authenticated publishing or account management.

#### Does it export Threads posts without login?

Yes. The Actor is intentionally limited to content visible in public Threads search without a login.

#### Why can a field be null?

Threads does not show every timestamp, metric, or media attribute on every search card. Missing optional values remain null rather than being guessed.

#### What happens when there are no matches?

A trustworthy no-match page succeeds with zero rows and a `zero_results` summary. A challenge, login wall, or ambiguous empty page is marked as blocked and fails by default.

### Related Threads scrapers

For direct post collection, see [Threads Post Scraper](https://apify.com/fetch_cat/threads-post-scraper).

### Support and changes

If a public search result is parsed incorrectly, open an Actor issue with the query, run ID, and expected public field—never include cookies or credentials. See [CHANGELOG.md](./CHANGELOG.md) for user-visible changes.

# Changelog

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

# Actor input Schema

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

Keywords or phrases to search on public Threads.

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

Maximum number of unique posts saved across all search queries.

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

Return Threads top results or order the visible public results from newest to oldest.

## `sinceDate` (type: `string`):

Optional ISO date/time lower bound; older timestamped posts are skipped.

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

Include posts visibly identified as replies in search results.

## `failOnBlocked` (type: `boolean`):

Fail on a challenge, login wall, or unclassified empty page instead of returning a misleading empty dataset.

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

Use Apify Proxy for reliable public Threads access; direct connection remains available for local testing.

## Actor input object example

```json
{
  "searchQueries": [
    "artificial intelligence"
  ],
  "maxItems": 100,
  "sort": "top",
  "includeReplies": false,
  "failOnBlocked": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (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 = {
    "searchQueries": [
        "artificial intelligence"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("fetch_cat/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 = {
    "searchQueries": ["artificial intelligence"],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("fetch_cat/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 '{
  "searchQueries": [
    "artificial intelligence"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call fetch_cat/threads-search-scraper --silent --output-dataset

```

## MCP server setup

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