# Threads Search — Threads Keyword Search by Day, Likes & Replies (`steadyfetch/threads-keyword-search`) Actor

Threads search by keyword, priced per post, no login: type a phrase and get one row per post — text, author, likes, replies, reposts, quotes, media and date — for Threads' top matches, or day by day over a date range. Re-runs return only posts you do not have yet.

- **URL**: https://apify.com/steadyfetch/threads-keyword-search.md
- **Developed by:** [Steadyfetch Team](https://apify.com/steadyfetch) (community)
- **Categories:** Social media, Automation, AI
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 3 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 posts

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 — Threads Keyword Search by Day, Likes & Replies

**Type a keyword and get one row per Threads post that matches it: text, author, likes, replies, reposts, quotes, media and date — Threads' top matches in one page, or day by day over a date range. No login, no start fee — from $1.40 per 1,000 posts, and a re-run returns only the posts you do not have yet.**

Put one or more search phrases in the list ("sourdough bread", "fall wedding decor", "#sourdough") — or paste a Threads search address — and the actor returns the posts Threads shows for each, in Threads' own order, about 20 at a time. Add a first and last day to read the search one page per calendar day (newest first), the way you would scroll a day's results.

**Using an AI agent?** Pin this actor in Apify's MCP server with one link: `https://mcp.apify.com?tools=steadyfetch/threads-keyword-search`

- **Actor id:** `steadyfetch/threads-keyword-search`
- **Input:** `{ "keywords": ["sourdough bread"], "maxPosts": 50 }` or `{ "keywords": ["sourdough bread"], "startDate": "2026-10-20", "endDate": "2026-10-27" }`
- **Cap the bill:** set `maxTotalChargeUsd` on the run (a run option, not Actor input), e.g. `1.00` — the run stops when it reaches it.
- **Price:** from $0.0014 per post ($0.002 on the Apify free plan); a day (or the last day your limit reaches) that delivers fewer new posts than one day check is worth pays one $0.0055 day check instead. Full table below.
- **How often it changes:** popular searches gain new posts every day. Re-run daily or weekly over the last few days: posts you bought in the last 90 days are skipped and not charged, so each re-run is mostly the new posts.

*Unofficial, not affiliated with Threads or Meta.*

### What you get

One row per post:

| Column | What it holds |
|---|---|
| `postId` · `code` · `url` | the post's id, its short code and its Threads link |
| `handle` · `authorId` · `authorName` · `isVerified` | the author's public handle, account id (a string), display name and verified badge |
| `text` · `topicTag` | the post's text as published, and the topic tag Threads shows on it |
| `createdAt` | when it was posted (ISO, UTC) |
| `mediaType` · `imageUrl` · `videoUrl` · `width` · `height` | text, image, video or carousel, with the first image or video link and the post's original width and height in pixels (`null` on a text-only post) |
| `carousel` · `carouselCount` | every slide of a multi-slide post, in order — each with its `mediaType`, `imageUrl`, `videoUrl`, `width` and `height` — and the slide count; `[]` on a single image, video or text post |
| `isPaidPartnership` | Threads' own paid-partnership label on the post: `true` or `false`, `null` when Threads does not say |
| `likeCount` · `replyCount` · `repostCount` · `quoteCount` · `reshareCount` | the counts Threads shows; `null` with `countsHidden: true` when the account hides them |
| `isReply` · `quotedPostCode` · `repostedPostCode` | whether it is a reply, and the post it quotes or reposts |
| `links` · `mentions` | the web links and @handles in the text |
| `keyword` · `searchDay` · `searchRank` · `searchPage` | what you asked for, the day it was read for, and the post's place in Threads' list |
| `alreadyHad` | `true` when your account bought this post in the last 90 days (only with "Only posts I don't have yet" off) |

Every row also carries `charged`, `chargedEvents`, `status`, `retryable` and `statusReason`, so you can reconcile your bill from the dataset itself. The last row (`run_summary`) is the receipt. **No profile pictures, bios or follower counts** — only what each post carries.

### How to use it

1. Put search phrases in **Keywords**, one per line, exactly as you would type them into Threads — or paste a Threads search address (`https://www.threads.com/search?q=…`). Up to 50 per run.
2. Optionally set **First day to read** and **Last day to read** (a date like `2026-10-20`, `20 Oct 2026` or `October 20, 2026`, or a window like `7 days`, `last 2 weeks`, `yesterday` or `today`) to read day by day, newest day first, up to 60 days. Days are calendar days in UTC; a timestamp counts by the date written in it.
3. Set **Max posts per keyword** and press Start.

Refused before anything is read, and never charged: a profile address or @handle (this actor searches by keyword, not by account), a single post's link, another website, a value with no letters or numbers, and a date that cannot be read or that reads two ways (`03/04/2026`, or a bare number like `3`) — the run stops rather than guess a day or run without your range.

**One keyword is read to at most 1,000 posts (60 days) per run.**

### Pricing

Pay per result, all-inclusive (no platform usage on top), no start fee:

| Event | Apify Free plan | Bronze | Silver | Gold and up |
|---|---|---|---|---|
| Post (one delivered new post) | $0.002 | $0.0018 | $0.0016 | $0.0014 |
| Day check | $0.0055 | $0.0055 | $0.0055 | $0.0055 |

That is $1.40 per 1,000 posts at Gold.

**The day check.** Each page (one undated page, or one day of a date range) is read whole, whatever it returns. A page bills **either** its new posts **or** one check — whichever is more — never both. A page that delivers 20 new posts at $0.0014 is $0.028 and pays no check. A day (or the last day your limit reaches) that delivers fewer new posts than one check is worth — a thin day, a day of posts your account bought in the last 90 days, or a page your **Max posts per keyword** cuts short — pays the check instead: one $0.0055 check on its own row, and its rows say `charged: false`. A day Threads has nothing for is not charged at all.

Examples: 50 posts of one keyword over 3 days at Gold = $0.07. A 30-day range with 20 new posts a day at Gold = $0.84. A re-run of a keyword whose posts you already have stops after 3 days with nothing new = at most 3 × $0.0055 = $0.0165.

### Good to know

- **Without dates, Threads answers one page** of its own best matches (about 20 posts) — there is no "next page" on a plain search. To go deeper, set a date range and the actor reads one page per day.
- **Days are read a little loosely by Threads:** a day's page can include posts from the neighbouring day. Posts outside the range you asked for are left out and not charged; a post that appears in two days' pages is delivered once.
- **A day can bill its check with no new post:** a day whose posts all arrived on a neighbouring day's page, or fell outside your dates, still bills its one $0.0055 check — that day's page was read. Its check row says which.
- **Posts you already have.** This actor remembers, in your own Apify account (a key-value store called `threads-search-account`), which posts of which keyword you bought in the last 90 days. With **Only posts I don't have yet** on (the default) a re-run skips them and does not charge for them, and reads on to new posts. Turn it off to get them again, uncharged and marked `alreadyHad`.
- **A dated re-run with nothing new stops early:** a keyword stops after 3 days in a row with no new post (`maxEmptyDays`, up to 60), so it costs at most 3 day checks ($0.0165).
- **How long it takes:** a page takes 4–6 seconds; a 30-day range is about 2–3 minutes per keyword.
- **A time limit ends the collecting, never the delivering**: rows already read are delivered, and the receipt says which limit stopped the run.
- **Free plan:** on the Apify free plan an account reads up to 25 pages with posts (about 475 posts) per 24 hours, and a day Threads has nothing for normally does not count against it. With several keywords and a date range, the newest day of every keyword is read before the second day of any. The row says when it resets. Paid plans have no daily allowance.
- **Endpoint:** one keyword is also available as one HTTP request (`GET /?keyword=sourdough%20bread`, add `&day=2026-10-27` for one calendar day, in any date form the run takes), up to 38 posts a request (19 on the free plan), at the same prices. The endpoint does not use your account memory. A day Threads answers with nothing is never charged; a day it answers only with posts outside your dates, or with posts already returned for the neighbouring day, bills one $0.0055 day check; each new post it returns is charged as a post, except on a day that delivers fewer new posts than one check is worth, which pays the check instead.
- **A bare Start** (nothing named) reads one sample page of our example search ("sourdough bread") and charges nothing.
- **Looking for a profile's own posts?** That is `steadyfetch/threads-scraper`: paste handles or post links there.

### Support

Questions, a search that returns something odd, or a column you need: open an issue on the Issues tab and it will be looked at.

If it earned its keep, a rating helps other buyers find it, and saving the actor keeps it one click away.

# Changelog

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

# Actor input Schema

## `keywords` (type: `array`):

One search phrase per line, exactly as you would type it into Threads' search box ("sourdough bread", "fall wedding decor", "#sourdough"), or a Threads search address (https://www.threads.com/search?q=…). Threads answers every phrase with its own best matches, in its own order (searchRank). Up to 50 keywords per run. A profile or post address gets its own uncharged row — this actor searches by keyword, not by account.

## `startDate` (type: `string`):

Optional. The earliest day to read: a date (2026-10-20, 2026/10/20, 20 Oct 2026, October 20, 2026, or 20/10/2026 when it reads only one way) or a window back from now (7 days, last 2 weeks, 3 days ago, yesterday). A date that reads two ways (03/04/2026) or a bare number is refused, never guessed. With a date range the search is read one page per calendar day (UTC), newest day first, up to 60 days per run. Leave both dates empty for Threads' own top matches in one page.

## `endDate` (type: `string`):

Optional. The latest day to read, in any form the first day takes (2026-10-27, 27 Oct 2026, today, yesterday). Leave empty with a first day set to read up to today. A timestamp counts by the date written in it. A date that cannot be read, reads two ways or is a bare number stops the run before anything is charged, rather than running without your range.

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

The most posts to return for each keyword. Threads answers about 20 posts per page (one page without dates, one page per day with a date range); one keyword is read to at most 1,000 posts (60 days) per run. A day (or the last day your limit reaches) that delivers fewer new posts than one day check is worth pays the check instead of per post.

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

On (default): posts your account bought for the same keyword in the last 90 days are skipped and not charged, so a scheduled run returns only new posts (a day of nothing new bills one day check). Off: they are delivered again with fresh counts, marked alreadyHad, and not charged for themselves.

## `maxEmptyDays` (type: `integer`):

With a date range, a keyword stops after this many days in a row that bring no new post (posts you bought in the last 90 days, or days Threads has nothing for), so a re-run that finds nothing new costs at most this many day checks. Default 3; up to 60.

## `maxRunSeconds` (type: `integer`):

Stop collecting after this many seconds. Posts already collected are still delivered. Leave empty for no limit beyond the run timeout.

## Actor input object example

```json
{
  "maxPosts": 50,
  "onlyNew": true,
  "maxEmptyDays": 3
}
```

# Actor output Schema

## `rows` (type: `string`):

One row per post of each keyword you named: post id, short code and link, the author's public handle, account id, display name and verified flag, the post text and its topic tag, publish time (ISO, UTC), media type (text, image, video, carousel) with an image or video link, the width and height, and every slide of a multi-slide post (carousel: each slide's type, image or video link and size), Threads' paid-partnership label, like, reply, repost, quote and reshare counts (null when the account hides them, with countsHidden true), whether it is a reply, the links and @mentions in the text, quoted or reposted post codes, the day it was read for (searchDay) and its place in Threads' list (searchRank). Every row carries `charged`, `chargedEvents` and `status`, so the invoice reconciles from the dataset itself. A new post row is charged once, as a `post`. A day (or the last day your limit reaches) that delivers fewer new posts than one day check is worth (a thin day, a day of posts your account bought in the last 90 days, or a page your limit cut short) pays one `day-check` on its own row instead, and its rows say charged: false. A day Threads has nothing for is not charged at all.

## `misses` (type: `string`):

One uncharged row for each keyword that returned less than you asked for, saying why: `no_data` (Threads showed fewer matching posts than your limit on the days asked, or none on this run), `skipped.all_repeat` (several days in a row held nothing new — raise "maxEmptyDays" to look further), `input_error` (the entry is a profile, a post, another website, or a date this actor cannot read — the row names the fix), `feed_unavailable` (Threads did not answer — please re-run), `limit_reached` (this run or this actor reached its collection limit — the row gives the next step), `skipped_max_items` / `skipped_budget` / `skipped_deadline` (your own limit, maximum charge or the run clock stopped it first) and `skipped.free_plan_allowance` (Apify free plan only: the plan's daily allowance on this actor; the row names the reset time).

## `summary` (type: `string`):

The run's receipt: posts delivered, what was asked for, days read, the date range, posts skipped because your account bought them in the last 90 days or because they fell outside your range, the charged events and what stopped the run. Uncharged.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("steadyfetch/threads-keyword-search").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("steadyfetch/threads-keyword-search").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 '{}' |
apify call steadyfetch/threads-keyword-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,steadyfetch/threads-keyword-search"
        }
    }
}
```

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/mGlYSDOF8xQbGds4z/builds/XbhmSTEoBzlP4NyQ5/openapi.json
