# Threads Posts Scraper & Keyword Search, No Login (`firsthand/threads-posts-scraper`) Actor

Threads posts scraper and keyword search: export posts of public accounts, paging back through their history, and search by keyword or hashtag, Top and Recent, to CSV, Excel or JSON. Likes, replies, reposts, date, language, media, author. Free filters, $0.15 per 1,000 posts, no start fee.

- **URL**: https://apify.com/firsthand/threads-posts-scraper.md
- **Developed by:** [Firsthand](https://apify.com/firsthand) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 5 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.12 / 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 Posts Scraper & Keyword Search, No Login

Export public Threads posts to CSV, Excel or JSON: the latest posts of any public account, and keyword or hashtag search with Top and Recent results. One row per post with the text, likes, replies, reposts, quotes, shares, date, language, media links and author.

No Threads login, no Instagram account, no cookies. The Actor reads what Threads shows to a visitor who is not logged in. $0.15 per 1,000 posts, no start fee.

### What you get

One row per post (`type: "post"`):

- `id`, `code`, `url`, `text`, `createdAt`: the post, its link and when it was posted (ISO, UTC)
- `likeCount`, `replyCount`, `repostCount`, `quoteCount`, `shareCount`: engagement at the moment of the run; `likeCountHidden` is true when the author hides likes
- `language`: two-letter code (`en`, `es`, `zh`). `languageSource` says where it came from: `threads` (Threads' own label) or `text` (read from the text by the Actor); empty when neither is clear
- `mediaType` (`text`, `image`, `video`, `carousel`), `imageUrls`, `videoUrls`: media links as Threads serves them (they expire after some days, download them if you need them later)
- `links`, `mentions`, `topic`: outgoing links, tagged accounts and the topic tag
- `isReply`, `replyToUsername`, `isRepost`, `repostedFromUsername`, `quotedPostUrl`, `isPinned`. Reposts of other people's posts are left out unless you turn on **Include reposts** (then `mediaType` is `repost`)
- `authorUsername`, `authorId`, `authorFullName`, `authorVerified`, `authorProfilePicUrl`
- `source` (`profile`, `search-top`, `search-recent`), `sourceUsername`, `query`, `searchVariant`: which of your inputs the row came from
- `containsKeyword`: every word of your keyword starts a word in the post text (`agent` also matches `agents`, `ai` does not match `said`); search returns related posts too
- `scrapedAt`

Each post appears once per run and is charged once, even when several wordings or both search tabs find it.

A username or keyword that gives nothing gets a free row with `type: "error"`, an `errorCode` and the reason in words, so an empty result never looks like a finished one. Codes: `PROFILE_NOT_FOUND`, `PRIVATE_PROFILE`, `NO_POSTS` (Threads showed nothing, asked twice on two sessions), `LOGIN_WALL` (Threads asked the run's address to log in), `REFUSED` (Threads answered with a page instead of data), `THREADS_QUERY_FAILED`, `NETWORK`, `PROXY_UNAVAILABLE`, `INTERNAL`.

### How to use the Threads scraper

1. **Threads usernames**: `zuck`, `@zuck` or `https://www.threads.com/@zuck`, one per line.
2. **Search keywords or hashtags**: `ai agents`, `#running`, or a Threads search link. Leave **Search results** empty to read both Top and Recent.
3. Set **Max posts for the whole run**. This is your cost cap: 1,000 posts cost $0.15. Add **Max posts per username or keyword** so one source does not use up the run.
4. Optional filters: **Posted after / before** (`2026-10-01`, `7 days`, `24 hours`, `30m` for minutes, `3 mo` for months, `yesterday`; a value the Actor cannot read stops the run before any charge instead of turning the filter off), **Min likes**, **Min replies**, **Min reposts**, **Languages**, **Only posts that contain the keyword**. Filtered posts are not charged.
5. Run the Actor and download the dataset from the **Output** tab.

### Threads keyword search with more results

Threads search returns a few dozen posts per tab. With **Search several wordings** on (the default), each keyword is also searched as a hashtag (`ai agents` and `#aiagents`), a hashtag also without the `#`, and a singular last word also in the plural (`ai agent` and `ai agents`), on both tabs. If all wordings of a phrase give nothing, it is searched word by word. Duplicates are removed before you are charged. In a test on 11.11.2026, `ai agents` gave 49 different posts this way and 21 with the plain phrase on the same two tabs; `coffee` gave 78 and 28.

Search also returns posts that are related to the keyword without containing it. `containsKeyword` marks them; turn on **Only posts that contain the keyword** to drop them (they are not charged then).

### Threads profile posts without an account

For a username the Actor pages back through the account's posts from the newest, about 25 threads per page, as far as Threads shows them to a visitor who is not logged in: until your limit, the **Posted after** date or the end of the list. In a test on 11.11.2026 it read 200 posts of each of seven large accounts in 6-8 pages (back to September 2023 for zuck) and the whole list of nike (163 posts, back to July 2023, the month Threads started). We have not tested accounts deeper than about 250 threads. Set **Max posts per username or keyword** to decide how deep to go. Posts outside your dates are never charged; with **Posted after** set, paging also stops at the first page older than the date, so the run is faster. Replies an author posts inside their own thread count as posts, so a limit can cut a thread.

### Export Threads posts to Excel or CSV

Open the run's **Output** tab and choose **Export**. The **Posts** view shows the main columns (date, author, text, likes, replies, reposts, link); the **Errors** view shows the free error rows. To keep only posts in the file, filter `type` to `post`.

### Example output

```json
{
  "type": "post",
  "id": "3945059134421046367",
  "code": "Da_qmGFE5Rf",
  "url": "https://www.threads.com/@power.ai/post/Da_qmGFE5Rf",
  "text": "A 21-year-old in China built a system running around 300 AI agents in parallel...",
  "createdAt": "2026-07-20T00:35:34Z",
  "likeCount": 188,
  "replyCount": 25,
  "repostCount": 6,
  "quoteCount": 2,
  "shareCount": 37,
  "language": "en",
  "languageSource": "threads",
  "mediaType": "video",
  "imageUrls": ["https://scontent-iad3-2.cdninstagram.com/..."],
  "videoUrls": ["https://scontent-iad6-1.cdninstagram.com/...mp4"],
  "links": [],
  "mentions": [],
  "topic": null,
  "isReply": false,
  "replyToUsername": null,
  "isRepost": false,
  "repostedFromUsername": null,
  "quotedPostUrl": null,
  "isPinned": false,
  "likeCountHidden": false,
  "authorUsername": "power.ai",
  "authorId": "63432024962",
  "authorFullName": "Artificial Intelligence",
  "authorVerified": true,
  "authorProfilePicUrl": "https://scontent-iad6-1.cdninstagram.com/...",
  "source": "search-top",
  "sourceUsername": null,
  "query": "ai agents",
  "searchVariant": "ai agents",
  "containsKeyword": true,
  "scrapedAt": "2026-11-11T09:21:48Z"
}
```

Error row:

```json
{
  "type": "error",
  "source": "profile",
  "input": "bbcnews",
  "errorCode": "PROFILE_NOT_FOUND",
  "error": "Threads returned no public profile for this username: it does not exist, was renamed or is not on Threads.",
  "postsDelivered": 0,
  "scrapedAt": "2026-11-11T09:21:47Z"
}
```

### Pricing

| Apify plan | Per post | Per 1,000 posts |
|---|---|---|
| Free, Bronze | $0.00015 | $0.15 |
| Silver | $0.00014 | $0.14 |
| Gold, Platinum, Diamond | $0.00012 | $0.12 |

No start fee and no extra charges for filters: error rows, duplicates and posts removed by your filters are free, and proxy and compute are included. Set a spending limit on the run and the Actor stops before going over it.

### Threads API for developers

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("firsthand/threads-posts-scraper").call(run_input={
    "usernames": ["zuck"],
    "searchQueries": ["ai agents", "#running"],
    "maxItems": 500,
    "postedAfter": "30 days",
    "minLikes": 1,
})
for row in client.dataset(run.default_dataset_id).iterate_items():
    if row["type"] == "post":
        print(row["createdAt"], row["likeCount"], row["url"])
```

Input names from other Threads Actors are read too: `profiles`, `profileUsernames`, `handles`, `fromUsers`, `startUrls`, `keywords`, `queries`, `searchTerms`, `hashtags`, `maxPostsPerProfile`, `maxItemsPerKeyword`, `max_posts`, `searchTypes`, `resultType`, `search_filter`, `languages`, `minLikes`, `onlyPostsNewerThan`, `strictKeywordMatch`. Where their meaning differs, the Actor takes the reading that costs you less: `maxPosts` is a limit for the whole run; `mode: "search"` reads only the search queries and `mode: "user"` only the usernames; `search_language` is not used as a filter. Their filters this Actor does not have (`excludeKeywords`, `verifiedOnly`, `onlyNew` and similar) are named in the log and not applied, so check the log when you reuse an input. With no limit at all, a run stops at 100 posts.

### Good to know

- **Strict filters on big accounts.** If 40 pages in a row (about 1,000 threads) give no post that passes your filters, the Actor stops reading that profile and says so in the error row. With **Posted before** far in the past on a very active account, combine it with **Posted after** or expect it to stop there.
- **Single posts and replies.** Threads post links (`/post/...`) and replies under a post are not supported yet; such inputs are reported in the log and skipped.
- **Search is Threads' own.** The Actor reads Threads search; it does not find posts that Threads search does not show. Recent results are the newest posts, Top results follow Threads' own ranking.
- **Login wall.** Threads sometimes answers an address with "Please wait a few minutes before you try again" and asks it to log in. The Actor never logs in. It then moves the rest of the run once to Apify residential proxy addresses (at no extra cost to you, also away from your own `proxyUrls` if you gave them) and continues; if Threads asks to log in there too, or the run was already on residential proxy, the sources left get a free `LOGIN_WALL` row and the run ends with a message. Try again later.
- **Numbers change.** Likes and replies are read at the moment of the run.
- **Use of the data.** Posts are public, but they are written by people and include usernames: personal data under GDPR and similar laws. You are responsible for how you store and use them and for the Threads terms of use. Nothing here is legal advice.
- **Not affiliated with Meta or Threads.** Threads is a trademark of Meta Platforms, Inc.
- **Problems.** Open an issue on the Issues tab with the input of the run and what you expected.

# Actor input Schema

## `usernames` (type: `array`):

Public Threads accounts: zuck, @zuck or https://www.threads.com/@zuck, one per line. Each account gives its latest posts.

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

Words, phrases or #hashtags to search on Threads, one per line (for example: ai agents, #running). A Threads search link also works.

## `searchSort` (type: `string`):

Which Threads search tab to read for each wording. Empty means both: Top and Recent together give more unique posts.

## `expandQueries` (type: `boolean`):

Also search the hashtag form (#aiagents), the word without # and the singular or plural. A phrase that Threads leaves empty is searched word by word. Empty means on. Duplicates are removed and never charged.

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

Stop after this many posts in total. This is your cost cap: you pay only for delivered posts.

## `maxPostsPerSource` (type: `integer`):

Optional cap for each username and each search keyword, so one source does not use up the whole run.

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

Only posts newer than this: a date (2026-10-01) or a period (7 days, 3 months).

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

Only posts older than this: a date (2026-11-01) or a period (1 day).

## `minLikes` (type: `integer`):

Skip posts with fewer likes. 1 removes the zero-engagement posts that keyword search often returns.

## `minReplies` (type: `integer`):

Skip posts with fewer replies.

## `minReposts` (type: `integer`):

Skip posts with fewer reposts.

## `languages` (type: `array`):

Keep only posts in these languages, two-letter codes (en, es, ja). Threads labels many posts; for the rest the language is read from the text, and a post with no clear language is skipped when this filter is on.

## `strictKeywordMatch` (type: `boolean`):

Search: keep only posts whose text contains every word of the keyword. Threads search also returns related posts without it.

## `includeReposts` (type: `boolean`):

Account posts: also deliver reposts of other people's posts (marked isRepost). Off by default.

## Actor input object example

```json
{
  "usernames": [
    "zuck"
  ],
  "searchQueries": [
    "ai agents"
  ],
  "maxItems": 100
}
```

# Actor output Schema

## `results` (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 = {
    "usernames": [
        "zuck"
    ],
    "searchQueries": [
        "ai agents"
    ],
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("firsthand/threads-posts-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 = {
    "usernames": ["zuck"],
    "searchQueries": ["ai agents"],
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("firsthand/threads-posts-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 '{
  "usernames": [
    "zuck"
  ],
  "searchQueries": [
    "ai agents"
  ],
  "maxItems": 100
}' |
apify call firsthand/threads-posts-scraper --silent --output-dataset

```

## MCP server setup

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