# Threads Posts Scraper: Latest Posts and Replies (`avakode/threads-posts`) Actor

Latest public posts of Threads accounts, or one post with its direct replies: text, date, like, reply and repost counts, media and links. No login. On Apify servers Threads shows a visitor about 5 latest posts per account.

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

## Pricing

from $1.39 / 1,000 results

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: Latest Posts and Replies

**Limit first:** about 5 latest posts per account when run on Apify servers (Threads shows no more to a visitor without login); a post link returns the post and its first-level replies. This is not a full-history or bulk scraper.

Get the latest public posts of Threads accounts, or a single post with its first-level replies, as clean rows with text, dates, counts, media and links. It works without login, the way an ordinary visitor sees the pages, so it returns exactly what Threads shows to visitors.

### What it does

- **Accounts:** give usernames or profile links; each account returns the posts Threads shows to a visitor without login, newest first. On Apify servers that is about 5 latest posts (4 threads, 5-6 posts in our checks); from a home network the page shows more, but the Apify run is what you get.
- **Post links:** give links to single posts; the tool returns the post, the author's own continuation of it, and the first-level replies the page shows without login (a handful, not all of them).
- Opens one page per target in a real headless browser (images and video are not downloaded), at most about one page per second. It does not read follower or following lists or profile biographies.

### Use cases

- Keep a feed of what a brand, newsroom or public figure posts and how it performs (likes, replies, reposts, quotes).
- Read the first replies under a post for quick feedback.
- Build a "only new since the last run" monitor over a list of accounts.

### Input

| Field | Type | Description |
|---|---|---|
| `accounts` | array | Usernames (`zuck`, `@zuck`) or profile links. |
| `postLinks` | array | Post links (`https://www.threads.com/@username/post/CODE`). |
| `postedSince` | string | Only account posts from this ISO date or date-time on (a plain date = start of that day, UTC). |
| `postedUntil` | string | Only account posts up to this ISO date or date-time (a plain date includes the whole day, UTC). |
| `excludeReplies` | boolean | Skip account posts that answer another post, including the author continuing their own thread. |
| `maxPostsPerAccount` | integer | Limit per account (default 10, maximum 25). The page shows about 5 without login, so more are not returned. |
| `maxRepliesPerPost` | integer | Limit of first-level replies under each linked post (default 50). |
| `onlyNew` | boolean | Only posts not delivered by an earlier run with the same targets. A repeat run still opens each page once and returns nothing new. If an account posts more than about 5 posts between two runs, the older ones are skipped: the page does not show them. |
| `maxResults` | integer | Total limit of records. |

Example:

```json
{ "accounts": ["zuck"], "postLinks": ["https://www.threads.com/@zuck/post/Dd1MqfcG0aH"], "excludeReplies": true, "maxResults": 100 }
```

### Output

One record per post. Missing values are `null`, dates are ISO 8601 UTC, `url` is the post on threads.com.

| Field | Description |
|---|---|
| `url`, `source_id` | Address of the post and its short code. |
| `author_username`, `author_name`, `author_verified` | The author of the post. |
| `text`, `language` | Post text and the language Threads detected. |
| `hashtags`, `mentions` | Tags and usernames found in the text. |
| `created_at` | When the post was written. |
| `like_count`, `reply_count`, `repost_count`, `quote_count` | Counts at the time of the run. |
| `media_type`, `media_urls` | `text`, `image`, `video` or `carousel`; one address per picture or video (temporary links of Threads' media servers: download them soon). |
| `link_url`, `link_title` | Link card attached to the post. |
| `quoted_url` | The post this one quotes. |
| `is_reply`, `reply_to_username` | Set when the post answers another post. |
| `depth` | 0 for the linked post and the author's own continuation, 1 for a first-level reply; 0 for account posts. |
| `source` | The account or link from the input that produced the record. |

Example record (shortened):

```json
{ "url": "https://www.threads.com/@zuck/post/Dd1MqfcG0aH", "author_username": "zuck", "text": "We believe superintelligence will create...",
  "created_at": "2026-09-28T12:35:32.000Z", "like_count": 2803, "reply_count": 2606, "repost_count": 166, "quote_count": 152,
  "media_type": "text", "is_reply": false, "depth": 0, "source": "zuck" }
```

### Pricing

- **Result:** $1.99 per 1,000, for each record written to the dataset.
- **Account or post checked:** $3.99 per 1,000, for each account or post whose page was read, with or without posts.
- A small start fee is charged once per run.
- These are the prices without a plan discount. Paid Apify plans pay less: the Pricing tab shows the price for each plan.

A target is charged once per run when its page is read, even if the budget has no room left for results; a target the site refuses on the first request is not charged (an account that does not exist or is hidden behind a login prompt, a refusal, an unavailable or changed site). The same account written as `@Zuck`, `zuck` or a profile link is one target and one check. `maxResults` limits the number of records only; the one limit shared by records and checks is the maximum cost per run, so set it to cap the total spending.

Two "only new" runs with the same targets cannot work at the same time: the second one stops with a message before it reads anything.

### Errors

- **Wrong input:** a username or link that does not look right, or an account or post for which Threads shows nothing (it does not exist, is private, or the page asks for a login; Threads shows all three the same way). The run names the target in the log and goes on with the next one. If every target is skipped this way, the run still ends successfully with no records, and the status line names the target and the reason.
- **Site changed:** Threads returned a page the tool does not know. Please report it.
- **Login prompt:** one account or post for which Threads shows only a login prompt, or sends the visitor to its login page, is reported as not found or hidden from visitors without login, and the run goes on (on Apify servers Threads answers this way for an account that does not exist). Two such pages in a row are treated as access closed: the run stops and says so; nothing is counted as "not found".
- **Access blocked / site unavailable:** Threads answered 401/403/429, sent the visitor to a verification page, or did not open (HTTP 5xx is "temporarily unavailable"). One page that does not open in time closes the site for the rest of the run. The tool does not try to get around it: the run stops at that target and does not try the rest. If records were already written, the run ends normally and the status line gives the reason; if there are none, it fails with that message.

### Limitations

- Without login Threads shows only about the 5 latest posts of an account (on Apify servers) and a few first-level replies of a post. Older posts, full reply trees, search by keyword or hashtag, and follower lists are not available and not collected.
- Counts are a snapshot. Private, deleted or restricted accounts and posts return nothing.
- Threads' terms and robots.txt restrict automated access; you are responsible for using the data in line with them.
- The page layout can change without notice, which then needs a tool update.
- At most one batch may be written again if a write was still on its way when the run was stopped.
- If a run is killed while it writes a batch and is not resurrected, the next "only new" run may skip that batch.

### Support

Open an issue from the tool's page in the Apify Store with the input you used and the log line that failed.

# Actor input Schema

## `accounts` (type: `array`):

Usernames (zuck, @zuck) or profile links (https://www.threads.com/@zuck). About 5 latest posts per account when run on Apify servers (Threads shows no more to a visitor without login). A name that is not a username, or an account that does not exist or is hidden, is skipped.

## `postLinks` (type: `array`):

Post links (https://www.threads.com/@username/post/CODE). Each link returns the post, the author's own continuation and the first-level replies Threads shows without login. A link that is not a post link, or a post that does not exist or is hidden, is skipped.

## `postedSince` (type: `string`):

Only account posts from this date on, for example 2026-11-01 or 2026-11-01T12:00:00Z. A plain date counts from the start of that day (UTC). Applies to accounts, not to post links.

## `postedUntil` (type: `string`):

Only account posts up to this date, for example 2026-11-09. A plain date includes the whole day (UTC). Applies to accounts, not to post links.

## `excludeReplies` (type: `boolean`):

Skip account posts that answer another post, including the author continuing their own thread.

## `maxPostsPerAccount` (type: `integer`):

Limit per account. The page shows about 5 recent posts to a visitor without login, so more are not returned even if you ask for more.

## `maxRepliesPerPost` (type: `integer`):

Limit of first-level replies returned under each linked post. Without login Threads shows only the first few.

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

Return only posts not delivered by an earlier run with the same accounts and links. A repeat run still opens each page once. If an account posts more than about 5 posts between two runs, the older ones are missed: the page does not show them.

## `maxResults` (type: `integer`):

Stop after this many records in total.

## Actor input object example

```json
{
  "accounts": [
    "zuck"
  ],
  "postLinks": [
    "https://www.threads.com/@zuck/post/Dd1MqfcG0aH"
  ],
  "postedSince": "2026-11-01",
  "postedUntil": "2026-11-09",
  "excludeReplies": false,
  "maxPostsPerAccount": 10,
  "maxRepliesPerPost": 50,
  "onlyNew": false,
  "maxResults": 100
}
```

# Actor output Schema

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

All records written by the run (the default dataset).

# 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 = {
    "accounts": [
        "zuck"
    ],
    "postLinks": [],
    "excludeReplies": false,
    "maxPostsPerAccount": 10,
    "maxRepliesPerPost": 50,
    "onlyNew": false,
    "maxResults": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("avakode/threads-posts").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 = {
    "accounts": ["zuck"],
    "postLinks": [],
    "excludeReplies": False,
    "maxPostsPerAccount": 10,
    "maxRepliesPerPost": 50,
    "onlyNew": False,
    "maxResults": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("avakode/threads-posts").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 '{
  "accounts": [
    "zuck"
  ],
  "postLinks": [],
  "excludeReplies": false,
  "maxPostsPerAccount": 10,
  "maxRepliesPerPost": 50,
  "onlyNew": false,
  "maxResults": 100
}' |
apify call avakode/threads-posts --silent --output-dataset

```

## MCP server setup

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

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/nofGmgxifiHprNvFy/builds/mT0TzFaRQa5c8gL1H/openapi.json
