# Threads Keyword & Hashtag Search Scraper: Posts, Likes, Replies (`neverempty/threads-keyword-hashtag-search-scraper`) Actor

For brand monitoring, keyword monitoring and social listening: Threads posts for any keyword or hashtag, newest or most popular, with text, time, likes, replies, reposts, images and author. Filter to posts containing your exact word. Up to 1,000 posts per term. Watch mode: new posts only. No login.

- **URL**: https://apify.com/neverempty/threads-keyword-hashtag-search-scraper.md
- **Developed by:** [NeverEmpty](https://apify.com/neverempty) (community)
- **Categories:** Social media, Marketing, Agents
- **Features:** Limited permissions
- **Stats:** 4 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.60 / 1,000 post returneds

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 Keyword & Hashtag Search Scraper: Posts, Likes, Replies

**For brand monitoring, keyword monitoring, trend research and social listening:** **Threads posts for any keyword or hashtag** as JSON, CSV or Excel, or through the Apify API: the **post text**, **post time**, **likes, replies, reposts and quotes**, **image and video links**, the **author** (username, display name, verified badge, profile link) and, for replies, **who they reply to**. Type terms the way you would in the Threads search box (`coffee`, `remote work`, `#ai`, a brand name, any language), pick **Latest** or **Popular**, and set a **date range**. Turn on **Watch mode** with a schedule and every run returns **only the posts published since the last run**.

- **Newest first, going back in time.** Latest walks back from now (or from `postedBefore`) to `postedAfter`, up to 1,000 posts per term, each post once.
- **Top posts too.** Popular returns the posts Threads ranks as top for the term: the all-time top posts first, then the top posts of each day going back from today.
- **Engagement in columns.** `likeCount`, `replyCount`, `repostCount`, `quoteCount` as numbers, ready for a spreadsheet or a dashboard.
- **Several terms in one run.** Up to 20 terms; a post that matches two terms is returned (and charged) once.
- **Exact-word results on demand.** Threads search matches by topic, so it also finds posts about your term that do not use the word. Switch on `onlyPostsContainingQuery` to keep only posts whose own text contains every word of the term; every row also has `textContainsQuery` so you can filter later.
- **Watch mode for alerts.** Schedule it hourly or daily and send the new rows to Google Sheets, Slack, a webhook, Make, n8n or Zapier. Every quiet run returns one free status row, so you know the check ran.
- **Gaps are labelled.** Any value Threads leaves blank comes back as `null` and `nullReasons` says why. Follower counts are one such case.

Just type your terms and run: public Threads search results, as a dataset, through the API or on a schedule. Any language works, for example `コーヒー` in Japanese.

### What you get

One row per post. Example (values shortened and made up):

```json
{
  "type": "post",
  "source": "threads",
  "status": "ok",
  "searchQuery": "coffee",
  "sort": "latest",
  "postUrl": "https://www.threads.com/@example_user/post/DQabc123XYZ",
  "postCode": "DQabc123XYZ",
  "postId": "3700000000000000001",
  "text": "Trying a new pour-over recipe this morning ...",
  "textContainsQuery": false,
  "postedAt": "2026-10-28T08:41:07.000Z",
  "likeCount": 12,
  "replyCount": 3,
  "repostCount": 1,
  "quoteCount": 0,
  "shareCount": null,
  "countsHiddenByAuthor": false,
  "mediaType": "image",
  "imageUrls": ["https://scontent.cdninstagram.com/v/t51.example.jpg"],
  "videoUrls": [],
  "linkPreviewUrl": null,
  "topicTag": "Coffee",
  "authorUsername": "example_user",
  "authorFullName": "Example User",
  "authorIsVerified": false,
  "authorId": "63000000000",
  "authorProfileUrl": "https://www.threads.com/@example_user",
  "authorProfilePicUrl": "https://scontent.cdninstagram.com/v/t51.example-profile.jpg",
  "authorFollowerCount": null,
  "isReply": false,
  "replyToUsername": null,
  "replyToPostUrl": null,
  "quotedPostUrl": null,
  "repostedPostUrl": null,
  "changeType": null,
  "scrapedAt": "2026-10-28T09:00:00.000Z",
  "nullReasons": {
    "shareCount": "Threads search did not show a share count for this post.",
    "authorFollowerCount": "Threads search results do not show follower counts."
  }
}
```

| Field | What it is |
|---|---|
| `text` | The post text (`null` for a media-only post) |
| `textContainsQuery` | `true` when the text itself contains every word of the search term |
| `postedAt` | When the post was published, UTC |
| `likeCount`, `replyCount`, `repostCount`, `quoteCount` | Engagement as shown in search. `likeCount` is `null` when the author hides it (`countsHiddenByAuthor: true`) |
| `mediaType`, `imageUrls`, `videoUrls` | `text`, `image`, `video` or `carousel`, and the media links |
| `topicTag` | The topic the author added to the post, if any |
| `authorUsername`, `authorFullName`, `authorIsVerified`, `authorProfileUrl` | Who posted it |
| `isReply`, `replyToUsername`, `replyToPostUrl` | For replies: the account and the post it answers |
| `quotedPostUrl`, `repostedPostUrl` | The post this one quotes or reposts |
| `changeType` | Watch mode only: `new` |
| `nullReasons` | Why a value is empty |
| `status` | `ok` for post rows; other values are free rows that explain a search (`no-results`, `no-new-posts`, `starting-point-saved`, `budget-reached`, `blocked` ...) |

### Input

| Field | Example | Notes |
|---|---|---|
| `searchQueries` | `["coffee", "#ai", "remote work"]` | What you would type into the Threads search box. Up to 20 terms per run. |
| `sort` | `latest` | `latest` (newest first) or `popular` (top posts). |
| `maxPostsPerSearch` | `200` | Posts per term, 1 to 1,000. Empty = 50. |
| `postedAfter`, `postedBefore` | `2026-10-01`, `2026-10-27` or `7 days` | Date range (UTC, both days included). `postedAfter` also takes a span back from now such as `24 hours`. |
| `onlyPostsContainingQuery` | `false` | Keep only posts whose own text contains the term. |
| `onlyNew` | `false` | Watch mode, for schedules. |
| `watchName` | `brand-hourly` | A name per scheduled task, so two watches keep separate memories. |
| `resetMonitoringState` | `false` | Start a watch over. |

An empty input runs an example: the 20 newest Threads posts for `coffee`.

```json
{
  "searchQueries": ["#marathon", "running shoes"],
  "sort": "latest",
  "postedAfter": "7 days",
  "maxPostsPerSearch": 300,
  "onlyPostsContainingQuery": true
}
```

### Watch mode

1. The first run saves the starting point for each term. It returns one free `starting-point-saved` row per term and charges nothing.
2. Every later run returns the posts published since the run before (`changeType: new`), newest first.
3. A post is returned once per watch, even when Threads shows it in search a little late.
4. New posts that did not fit into `maxPostsPerSearch` or your maximum charge are not charged and come in the next run.
5. A run with nothing new returns one free `no-new-posts` row per term.
6. Each run reads back to the run before, up to about 6 days. Schedule it at least every few days so no gap is left.

Schedule it with Apify Schedules (for example every hour) and connect the dataset to Google Sheets, Slack, a webhook, Make, n8n or Zapier.

### Pricing

Pay per event:

- **Run start**: once per run that returns posts, and once per watch run after the first one, even when nothing new was posted (it pays for the check). Not charged when Threads refuses the request or the input is wrong, and not charged on the first watch run.
- **Post returned**: per post row delivered. Free rows (no results, nothing new, starting point saved, blocked and so on) are never charged.

If your maximum total charge has no room for the run start fee plus one post, the run requests nothing and is charged nothing. When a run reaches its maximum charge, the posts it could not deliver are not charged.

Speed: Threads search answers one hour at a time, so a run reads about two requests per hour it goes back. In our production runs, 100 posts for `remote work` took 26 seconds and 400 posts for `#marathon` took 88 seconds, with no duplicates; a term with only a few posts a day takes longer to reach the same count.

### Good to know

- Threads search shows a part of each hour, not every post ever written with the word. For each hour, the rows are the newest posts plus the top posts Threads shows for that hour, so busy terms are sampled. Narrow the dates to go deeper into one period.
- Threads search also matches posts by topic, so some rows do not contain the word itself. Use `onlyPostsContainingQuery` or the `textContainsQuery` column to keep only exact matches.
- Popular follows Threads' own ranking, which can change from one run to the next.
- Follower counts are not part of Threads search results, so `authorFollowerCount` is `null` (the reason is in `nullReasons`).
- In watch mode, a post that Threads adds to search late can arrive with a `postedAt` a little before the previous run. It is still returned once.
- Threads' robots.txt asks automated tools not to crawl the site without written permission from Meta, and Meta's terms for automated data collection apply to how you use the data. Please use the results in line with them and with the privacy laws that apply to you.
- Works without a Threads account, login or cookies.
- Unofficial and not affiliated with Meta.

### Thanks for using this Actor

We build these tools for people who run them every day, and we improve them from what users tell us.

- **Missing a field, or need another filter?** Tell us in the **Issues** tab. If the data is there, we add it.
- **Found a bug or a wrong value?** Post the run ID in the **Issues** tab. Wrong data is the thing we fix first.

If this Actor saved you time, a short review helps other people find it.

# Actor input Schema

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

What you would type into the Threads search box, for example coffee, remote work, #ai or a brand name. Any language works. Each term is one search; up to 20 terms per run. Leave it empty to run the example: the 20 newest Threads posts for coffee.

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

Latest returns the newest posts first, going back in time. Popular returns the posts Threads ranks as top for the term: first the all-time top posts, then the top posts of each day going back from today. Watch mode always uses Latest.

## `maxPostsPerSearch` (type: `integer`):

How many posts to return for each search term (1 to 1,000). You pay only for the posts returned. The same post is returned once per run, even when it matches two terms.

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

Only posts published on or after this date, for example 2026-09-01 (UTC), 2026-09-01T12:00:00Z, or a span back from now such as 7 days or 24 hours.

## `postedBefore` (type: `string`):

Only posts published on or before this date, for example 2026-09-30 (UTC, the whole day included). Not used in watch mode.

## `onlyPostsContainingQuery` (type: `boolean`):

Threads search also returns posts that match the term through the author name, a topic tag or related words. Turn this on to keep only posts whose own text contains every word of the search term (case does not matter). Each row also has textContainsQuery either way.

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

Returns only posts published since the previous run with the same search terms and watch name. The first run only saves the starting point: it returns no posts and charges nothing. Use it with an Apify schedule, for example every hour.

## `watchName` (type: `string`):

Optional name to keep several separate watches with the same search terms (letters, digits, dot, dash and underscore, up to 40). Leave empty for one watch per set of search terms.

## `resetMonitoringState` (type: `boolean`):

Forget what this watch has seen and start over: the run saves a new starting point and returns no posts.

## Actor input object example

```json
{
  "searchQueries": [
    "coffee"
  ],
  "sort": "latest",
  "maxPostsPerSearch": 50,
  "onlyPostsContainingQuery": false,
  "onlyNew": false,
  "resetMonitoringState": false
}
```

# Actor output Schema

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

One row per Threads post found for a search term: text, post time, likes, replies, reposts, quotes, images, videos, link, topic tag, author username, display name and verified badge, and whether it is a reply and to whom. Empty values come with the reason in nullReasons. Watch mode marks new posts. A search with no results, nothing new, a refused request or a run that hit its maximum charge comes back as a free row that says why.

# 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": [
        "coffee"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("neverempty/threads-keyword-hashtag-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": ["coffee"] }

# Run the Actor and wait for it to finish
run = client.actor("neverempty/threads-keyword-hashtag-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": [
    "coffee"
  ]
}' |
apify call neverempty/threads-keyword-hashtag-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neverempty/threads-keyword-hashtag-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/0ondOjmPUgno1AFq3/builds/16SanHvOvExQfOZUt/openapi.json
