# Threads Search Post Scraper (`dacoder/threads-search-post-scraper`) Actor

Enter a search query and get the latest posts from Threads. Perfect for regular media monitoring.

- **URL**: https://apify.com/dacoder/threads-search-post-scraper.md
- **Developed by:** [Da Coder](https://apify.com/dacoder) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 633 total users, 39 monthly users, 100.0% runs succeeded, 21 bookmarks
- **User rating**: 2.82 out of 5 stars

## Pricing

$30.00 / 1,000 searches

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

**Find what people are saying on Threads, by keyword or hashtag.** Type a brand, a name or a topic, press Start, and get a spreadsheet of matching Threads posts: the text, who posted it, likes, replies, reposts and quotes, and a link to each post.

No Threads or Instagram account needed. No copying posts one by one.

### Why people use Threads Search Post Scraper

🔎 **Search by keyword or hashtag.** Look up any word or phrase, or follow a hashtag like `#ai`. Add as many search terms as you like in one run.

🆕 **Only the new posts.** Turn on **Monitor mode** and each run returns just the posts you haven't seen before. Schedule it hourly or daily for a running feed of mentions without duplicates.

⏱️ **Newest first.** Sort by **Recent** to see the latest posts at the top, or by **Top** for Threads' most relevant matches. Hashtags with **Recent** read Threads' live feed of the newest posts under that tag.

📅 **Date filters.** Keep only posts from the last few days, or between two dates.

📊 **Engagement numbers.** Likes, replies, reposts and quotes for every post, plus the author's name, username and verified badge.

⚡ **Fast and cheap.** Most runs finish in under 10 seconds. You pay per search, not per post.

### What can you use Threads data for?

- **Brand monitoring.** Track every mention of your company, product or competitors.
- **PR and crisis alerts.** Run it hourly on your brand name and send new posts to Slack or email.
- **Campaign tracking.** Follow a launch or event hashtag as it happens.
- **Trend and audience research.** See how people talk about a topic and which posts get the most engagement.
- **Finding creators.** Spot active, verified accounts posting about your niche.

### How to scrape Threads in 3 steps

1. **Enter your search terms**, e.g. `OpenAI` or `#ai`. Choose **Hashtag** as the search type for hashtags.
2. **Choose Recent or Top**, and add a date filter or Monitor mode if you like.
3. **Press Start.** Posts appear in the **Output** tab within seconds. Download them as Excel or CSV, or send them to Google Sheets.

For a ready-made setup, try the example tasks: **Monitor brand mentions on Threads** and **Track a hashtag on Threads**.

### What you get

Every post is one row:

| What | Example |
|---|---|
| Search term | `coffee` |
| Post link | threads.com/@cnbc/post/DSPPJWfjhVx |
| Author | CNBC (@cnbc), verified |
| Text | "The average American now holds onto their smartphone for 29 months…" |
| Likes / replies / reposts / quotes | 6 / 29 / 0 / 2 |
| Posted | Unix timestamp (`taken_at`) |
| Media | image and video links, carousel items, link previews |

The **Output** tab opens on an **Overview** table with the main columns. Every other field Threads returns is in the dataset too, and each field is described in the dataset schema.

<details>
<summary>For developers: example input and output (JSON)</summary>

**Input**

```json
{
    "searchQueries": ["OpenAI", "Anthropic"],
    "searchType": "posts",
    "sort": "recent",
    "lastDays": 7,
    "monitorMode": false
}
```

**Output (one row per post, main fields)**

```json
{
    "search_query": "OpenAI",
    "post_url": "https://www.threads.com/@cnbc/post/DSPPJWfjhVx",
    "code": "DSPPJWfjhVx",
    "pk": "3787312424966559089",
    "taken_at": 1765702858,
    "user": {
        "pk": "63466771125",
        "username": "cnbc",
        "full_name": "CNBC",
        "is_verified": true,
        "profile_pic_url": "https://scontent-lhr6-1.cdninstagram.com/..."
    },
    "caption": {
        "text": "The average American now holds onto their smartphone for 29 months..."
    },
    "like_count": 6,
    "text_post_app_info": {
        "direct_reply_count": 29,
        "repost_count": 0,
        "quote_count": 2,
        "link_preview_attachment": {
            "title": "Americans are holding onto devices longer than ever",
            "url": "https://cnb.cx/..."
        }
    },
    "media_type": 19,
    "image_versions2": { "candidates": [] },
    "video_versions": null
}
```

</details>

### How much does it cost to scrape Threads?

You pay **$0.03 per search term**, however many posts it returns. No subscription, no monthly fee.

| You want | Cost |
|---|---|
| One search (about 20 posts) | $0.03 |
| 5 brands checked once a day for a month | 5 × 30 × $0.03 = $4.50 |
| 1 brand checked every hour for a month | 24 × 30 × $0.03 = $21.60 |

You're **not charged** when a search is blocked or Threads returns no data. A search that simply has no matching posts, or a monitor run with no new posts, still counts as a search. You can set a spending limit for each run, and the scraper stops when it reaches it.

### Use it with AI assistants, apps and code

- **AI assistants:** Claude, ChatGPT, Cursor and other AI assistants can use this scraper as a tool through the [Apify MCP server](https://mcp.apify.com). Just ask: *"Find the latest Threads posts about OpenAI."*
- **Other apps:** connect it to Google Sheets, Slack, Zapier, Make or n8n in a few clicks, no coding needed. Combine it with an Apify **Schedule** and Monitor mode for alerts.
- **Developers:** call it from the Apify API or client libraries:

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('dacoder/threads-search-post-scraper').call({
    searchQueries: ['OpenAI'],
    sort: 'recent',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

### FAQ

**How many posts does a search return?**
Usually 15 to 30 per search term, fewer for very niche terms. Threads shows logged-out visitors one page of results, and this scraper returns all of it. To build up more over time, schedule it with Monitor mode on.

**Is "Recent" a full live feed?**
For hashtags, yes: it reads Threads' newest posts under the tag. For keywords, Threads only gives logged-out visitors its most relevant matches, so **Recent** returns those matching posts sorted newest first. For catching every new post on a topic, a hashtag search with **Recent** gets closest.

**Can it search older posts or a date range in the past?**
The date filters keep or drop posts from the page Threads returns. They can't reach further back, because Threads only allows that when logged in.

**Do I need a proxy?**
Usually not. If you see repeated empty results, turn on Apify Proxy under **Advanced**.

**Do I need a Threads account?**
No. Everything works without logging in.

**Can I get a user's profile or all their posts?**
Not with this scraper; it searches posts. Ask on the **Issues** tab if you need it.

### Need help or a new feature?

Tell us on the **Issues** tab. Threads changes its website from time to time, and fixes come quickly. Ideas for new features are welcome too. To catch problems early, errors are automatically reported to our private error tracker (with the search terms you used, never your account details).

**Also by this author:** [Substack Scraper](https://apify.com/dacoder/substack-scraper), which downloads every post from any Substack newsletter, with the full text.

# Changelog

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

# Actor input Schema

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

One or more terms to search. Each term returns its own results, tagged with 'search_query'. Add several to monitor multiple keywords or brands in a single run.

## `searchType` (type: `string`):

'Posts' searches post text by keyword. 'Hashtag' returns posts under a tag (the leading # is optional).

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

'Recent' returns posts newest first. For hashtags this is Threads' live newest-posts feed for the tag. For keyword search, Threads only offers relevance-ranked results to logged-out visitors, so 'Recent' returns those same matching posts sorted newest first. 'Top' keeps Threads' relevance order.

## `monitorMode` (type: `boolean`):

When enabled, each run returns only posts not seen in previous runs (tracked per search term across runs). Ideal for scheduled monitoring — combine with an Apify Schedule to poll for new posts. Warns if a run looks like it exceeded the ~20-post page limit between polls.

## `dateFrom` (type: `string`):

Only keep posts published on or after this date. For a rolling window, use "Last N days" instead.

## `dateTo` (type: `string`):

Only keep posts published on or before this date.

## `lastDays` (type: `integer`):

Only keep posts from the last N days. Shortcut alternative to "Posts published after".

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

Usually not needed: the scraper works without a proxy. Use Apify Proxy only if you see repeated blocked or empty results.

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

Old single-term input, kept so existing tasks and integrations keep working. Use "Search Queries" instead.

## Actor input object example

```json
{
  "searchQueries": [
    "Mark Zuckerberg"
  ],
  "searchType": "posts",
  "sort": "recent",
  "monitorMode": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

One item per post found for your search terms. Opens on the Overview table; every field Threads returns is in the dataset (see the dataset schema for field descriptions).

# 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": [
        "Mark Zuckerberg"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("dacoder/threads-search-post-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": ["Mark Zuckerberg"],
    "proxyConfiguration": { "useApifyProxy": False },
}

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

```

## MCP server setup

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