# Threads Scraper: Search, Posts, Replies & Profiles (`automatic/threads-posts-scraper`) Actor

Collect public Threads Top keyword and hashtag results, profile posts and direct replies. Export author, text, dates, engagement and media; monitor visible search results for new posts. Prefilled input gives a quick sample.

- **URL**: https://apify.com/automatic/threads-posts-scraper.md
- **Developed by:** [Philip Kirkbride](https://apify.com/automatic) (community)
- **Categories:** Social media
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 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 Scraper: Search, Posts, Replies & Profiles

Export public Threads profile posts, individual posts and direct replies with author names, text, dates, engagement and media. Schedule keyword and hashtag searches to track new posts and changes. Built for content teams, social analysts and brand researchers.

Run with `{}` for a quick sample of up to 3 real posts. The prefilled input runs the same small example.

### Use cases

Track public brand discussions, compare engagement, export direct replies, and schedule searches that deliver newly observed posts.

### What it returns

One row per post or direct reply: stable IDs, public links, text, author ID and name, likes, replies, reposts, quotes, media URLs and ISO UTC dates. `type` identifies posts and replies. Opt-in direct replies carry the focal post's ID in `parentId`. Missing public values are null.

### Input

```json
{
  "searchQueries": ["nasa", "#NASA"],
  "includeReplies": false,
  "maxItems": 20
}
```

The Console prefill remains `{"profiles":["nasa"],"maxPostsPerProfile":3,"maxItems":3}`.

| Field | What it controls |
|---|---|
| `profiles` | Public usernames or profile URLs; up to 100 entries. |
| `postUrls` | Direct public post URLs; up to 100 entries. |
| `searchQueries` | Keywords or hashtags, such as `nasa` or `#NASA`; up to 100 entries. |
| `searchSort` | `top`. |
| `includeReplies` | Include direct reply roots visible on each post page; default false. |
| `maxRepliesPerPost` | Reply ceiling per post; default 20, maximum 1,000. Public coverage can be smaller. |
| `maxPostsPerProfile` | Profile ceiling; default 50, maximum 10,000, within public page limits. |
| `maxItems` | Total rows across posts and replies; default 100, maximum 10,000. |
| `monitorMode` | `off`, `new` or `changes`; affects search results and their collected replies. |
| `monitorStoreName` | Named history store required for monitoring, for example `threads-brand-daily`. |

Each input gets a share of the remaining row allowance. Short or unavailable sources can leave the dataset below the total ceiling. Duplicate sources and overlapping posts are delivered once per run. Bad entries are skipped into `OUTPUT.skippedSearches`. The run continues with valid inputs. The sample runs when all source fields are omitted and records `OUTPUT.usedExample: true`. If you supply only empty source lists, the run succeeds with `OUTPUT.status: "no_results"` and zero rows.

### Scheduled search monitoring

```json
{
  "searchQueries": ["nasa"],
  "monitorMode": "new",
  "monitorStoreName": "threads-brand-daily",
  "maxItems": 20
}
```

The first run delivers visible posts as new. Repeating the same query with the same store delivers unseen IDs; `changes` also delivers posts whose text, author, engagement or date changed. Rows include `isNew`, `changed`, `firstSeenAt` and changed prior values in `previous`. A valid zero-change run succeeds with `OUTPUT.status = "no_results"` and no dataset rows.

History is separate for each exact query and order, and holds up to 100,000 IDs per query without silent eviction. Use a new store name to reset. Serialize schedules sharing a store. Delivery precedes history storage, so a crash between the two can repeat a row. Deduplicate downstream by `id`.

### Use it as an API

One public Threads post with text, media and engagement. Get the answer in JSON from one HTTPS call. Call it from an AI agent through an HTTP-capable MCP tool, or add an HTTP request step in n8n, Make, or Zapier.

```bash
curl --get 'https://automatic--threads-posts-scraper.apify.actor/' \
  --header "Authorization: Bearer $APIFY_TOKEN" \
  --data-urlencode post=https://www.threads.com/@zuck/post/DeZtp-TkQHh
```

Send the same fields as a JSON object with `POST /`. Results are in `data`. See `GET /openapi.json` for the request and response definitions.

### Pricing

**$0.0025 per result ($2.50 per 1,000) plus $0.005 per run start.** Each delivered post or direct reply is one result. The start fee is charged per GB of memory, rounded up with a minimum of one. The default 512 MB run is one start event. Failed sources produce no charged rows. A result or charge limit can reduce the number of delivered rows.

| Example at 512 MB | Rows | Cost |
| --- | ---: | ---: |
| Console prefill | 3 | $0.0125 |
| One run delivering 100 rows | 100 | $0.255 |
| One run delivering 1,000 rows | 1,000 | $2.505 |

Example totals include one start event.

### Output example

A complete public post captured by this Actor:

```json
{
  "id": "4025371820235557316",
  "code": "Dfc_lfaAgnE",
  "url": "https://www.threads.com/@nasa/post/Dfc_lfaAgnE",
  "text": "Do you want to be an astronaut?\n\nApplications are now open to join NASA's astronaut corps. Join us as we expand the frontiers of discovery in low Earth orbit, on the Moon, and beyond — apply by Dec. 3",
  "author": "nasa",
  "authorId": "28829152388",
  "authorName": "NASA",
  "likes": 2288,
  "replies": 153,
  "reposts": 200,
  "quotes": 44,
  "mediaUrls": [
    "https://scontent-mia5-2.cdninstagram.com/v/t51.71878-15/857246895_1160978616623478_4435094534512833189_n.jpg?stp=dst-jpg_e15_tt6&_nc_cat=103&_nc_map=urlgen_bucketless&ig_cache_key=NDAyNTM3MTgyMDIzNTU1NzMxNg%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkZFRUQueHBpZHMuNjQwLnNkci52aWRlb19maXJzdF9mcmFtZV90aHVtYm5haWwuQzMifQ%3D%3D&_nc_ohc=mZ156czCcS8Q7kNvwE6rWF_&_nc_oc=AdodiGfjE21T37OyhTVrhi2mz6FRKreXvFdZGmMxWJ2hqQcfnpQRGS669ZqhR-p9m34&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-mia5-2.cdninstagram.com&_nc_gid=Rs0VF6xCBcBBnSc9YWcBWw&_nc_ss=7a20f&_nc_ct=RQosPBUIFQolBAAAAA&oh=00_AQQejxOaD8EIXyauHJzfMWKS985q5F27SpLmxGSwDUKZPw&oe=6B025732",
    "https://scontent-mia3-1.cdninstagram.com/o1/v/t16/f2/m84/AQOTFJma4p5XAdpw0KuqSdiyHCFH5gdyXrZWfPXdKu4b-BzbA09VqBfQPzn-RDCYfUtSdJfWHzooEr5kEYQ3tyzERVpU1M_pis3qWmE.mp4?_nc_cat=102&_nc_sid=5e9851&_nc_ht=scontent-mia3-1.cdninstagram.com&_nc_ohc=37pCoA4fPjEQ7kNvwGSri2s&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uRkVFRC5DMy4xMjgwLmRhc2hfYmFzZWxpbmVfMV92MSIsInhwdl9hc3NldF9pZCI6MTgxMjgxNTgyMTk5NjAzODksImFzc2V0X2FnZV9kYXlzIjo5LCJ2aV91c2VjYXNlX2lkIjoxMDE2NCwiZHVyYXRpb25fcyI6NjQsInVybGdlbl9zb3VyY2UiOiJ3d3cifQ%3D%3D&ccb=17-1&vs=a077fc9e1101fa33&_nc_vs=HBksFQIYTGlnX2JhY2tmaWxsX3RpbWVsaW5lX3ZvZC8zNTFCOTZBMDU1MDk0NjBEQjgwNDI3NTA1OEUwN0I5MF92aWRlb19kYXNoaW5pdC5tcDQVAALIARIAFQIYUWlnX3hwdl9wbGFjZW1lbnRfcGVybWFuZW50X3YyL0YyMUU5NzU4RDFBOTRGNkE5RjdCMkI5RjNENURCQTA3X2F1ZGlvX2Rhc2hpbml0Lm1wNBUCAsgBEgAoABgAGwOIB3VzZV9vaWwBMRJwcm9ncmVzc2l2ZV9yZWNpcGUBMRJjb3B5X3NhbXBsZV9ncm91cHMBMRUAACaKgZDy192zQBUCKAJDMywXQFAEGJN0vGoYEmRhc2hfYmFzZWxpbmVfMV92MREAdeoHZeieAQA&_nc_gid=Rs0VF6xCBcBBnSc9YWcBWw&_nc_map=urlgen_bucketless&_nc_zt=28&_nc_ss=7a20f&oh=00_AQSxYpXJ7IXVf4A2NdxDKVdcBAaZezPBMXFcSfDC4hzW6w&oe=6AFE8422"
  ],
  "imageUrls": [
    "https://scontent-mia5-2.cdninstagram.com/v/t51.71878-15/857246895_1160978616623478_4435094534512833189_n.jpg?stp=dst-jpg_e15_tt6&_nc_cat=103&_nc_map=urlgen_bucketless&ig_cache_key=NDAyNTM3MTgyMDIzNTU1NzMxNg%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkZFRUQueHBpZHMuNjQwLnNkci52aWRlb19maXJzdF9mcmFtZV90aHVtYm5haWwuQzMifQ%3D%3D&_nc_ohc=mZ156czCcS8Q7kNvwE6rWF_&_nc_oc=AdodiGfjE21T37OyhTVrhi2mz6FRKreXvFdZGmMxWJ2hqQcfnpQRGS669ZqhR-p9m34&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-mia5-2.cdninstagram.com&_nc_gid=Rs0VF6xCBcBBnSc9YWcBWw&_nc_ss=7a20f&_nc_ct=RQosPBUIFQolBAAAAA&oh=00_AQQejxOaD8EIXyauHJzfMWKS985q5F27SpLmxGSwDUKZPw&oe=6B025732"
  ],
  "videoUrls": [
    "https://scontent-mia3-1.cdninstagram.com/o1/v/t16/f2/m84/AQOTFJma4p5XAdpw0KuqSdiyHCFH5gdyXrZWfPXdKu4b-BzbA09VqBfQPzn-RDCYfUtSdJfWHzooEr5kEYQ3tyzERVpU1M_pis3qWmE.mp4?_nc_cat=102&_nc_sid=5e9851&_nc_ht=scontent-mia3-1.cdninstagram.com&_nc_ohc=37pCoA4fPjEQ7kNvwGSri2s&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uRkVFRC5DMy4xMjgwLmRhc2hfYmFzZWxpbmVfMV92MSIsInhwdl9hc3NldF9pZCI6MTgxMjgxNTgyMTk5NjAzODksImFzc2V0X2FnZV9kYXlzIjo5LCJ2aV91c2VjYXNlX2lkIjoxMDE2NCwiZHVyYXRpb25fcyI6NjQsInVybGdlbl9zb3VyY2UiOiJ3d3cifQ%3D%3D&ccb=17-1&vs=a077fc9e1101fa33&_nc_vs=HBksFQIYTGlnX2JhY2tmaWxsX3RpbWVsaW5lX3ZvZC8zNTFCOTZBMDU1MDk0NjBEQjgwNDI3NTA1OEUwN0I5MF92aWRlb19kYXNoaW5pdC5tcDQVAALIARIAFQIYUWlnX3hwdl9wbGFjZW1lbnRfcGVybWFuZW50X3YyL0YyMUU5NzU4RDFBOTRGNkE5RjdCMkI5RjNENURCQTA3X2F1ZGlvX2Rhc2hpbml0Lm1wNBUCAsgBEgAoABgAGwOIB3VzZV9vaWwBMRJwcm9ncmVzc2l2ZV9yZWNpcGUBMRJjb3B5X3NhbXBsZV9ncm91cHMBMRUAACaKgZDy192zQBUCKAJDMywXQFAEGJN0vGoYEmRhc2hfYmFzZWxpbmVfMV92MREAdeoHZeieAQA&_nc_gid=Rs0VF6xCBcBBnSc9YWcBWw&_nc_map=urlgen_bucketless&_nc_zt=28&_nc_ss=7a20f&oh=00_AQSxYpXJ7IXVf4A2NdxDKVdcBAaZezPBMXFcSfDC4hzW6w&oe=6AFE8422"
  ],
  "timestamp": "2026-11-07T20:03:13Z",
  "isReply": false,
  "linkUrl": null,
  "quotedPostUrl": null,
  "sourceProfile": "nasa",
  "scrapedAt": "2026-11-17T17:45:20Z",
  "type": "post",
  "parentId": null,
  "searchQuery": null,
  "isNew": null,
  "changed": null,
  "firstSeenAt": null,
  "previous": null
}
```

### Exports

Download the dataset as JSON, CSV or Excel. OUTPUT contains the run summary, skipped inputs, public coverage, source errors and stop reason. Saved rows survive later source failures and the collection deadline.

### Good to know

- Each keyword or hashtag returns about one page of public Top results. Observed pages exposed about 20 posts. Recent order is unavailable. Raising `maxItems` does not extend search depth. OUTPUT reports `source-page-limit` when collection reaches that boundary. Monitoring covers the visible Top results at each run and can miss posts between runs.
- Profile collection follows at most 10 public pages. Full history is not guaranteed. Direct post URLs collect known posts beyond a profile's visible pages.
- Reply collection covers direct reply roots on the first public post page. It excludes recommendations, nested conversations and self-thread continuations whose immediate parent is uncertain. It reports additional replies when the source says more exist.
- Public data only. Missing or private items produce no results; source errors fail only when no valid rows were saved. Working sources survive other input failures.
- Profiles can contain replies and reposts; `isReply` retains the source flag. `parentId` is null unless a direct relationship was verified.
- Media links can expire. Source and charge limits can reduce the delivered rows. The existing run-start fee remains in effect even for a zero-row run.

### Your feedback

Found a bug, or need a field or filter we don't have yet? Open an issue on this Actor's **Issues** tab. We read every issue and use them to decide what to build next.

# Actor input Schema

## `profiles` (type: `array`):

Public profiles, for example nasa. Omit all source fields to run the sample. Explicitly empty source lists return zero rows if there are no other sources. Up to 100 entries; duplicates are collected once. Bad entries are skipped and reported.

## `postUrls` (type: `array`):

Public post links, for example https://www.threads.com/@zuck/post/DeZtp-TkQHh. Up to 100; duplicates are collected once. Bad entries are skipped and reported.

## `maxPostsPerProfile` (type: `integer`):

Maximum posts per profile, for example 50. Default 50; bounded to 10 public pages. A larger cap cannot guarantee full history.

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

Total row ceiling across posts and replies, for example 100. Inputs share the remaining allowance. Public source limits and the charge cap can stop earlier.

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

Collect Top posts for each keyword or hashtag, such as nasa or #NASA. Up to 100 queries. Public search exposes a limited page per query; a higher row cap cannot extend it.

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

Top is qualified for public search. Recent is unavailable to logged-out visitors and is rejected.

## `includeReplies` (type: `boolean`):

Also collect direct reply roots exposed on each public post page. Each delivered reply is one row and counts toward maxItems. Example: true.

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

Maximum direct replies per post, for example 5. Only the initial public reply page is qualified; fewer may be available.

## `monitorMode` (type: `string`):

off collects visible search results; new emits unseen IDs; changes also emits changed posts. Use one named store and serialize schedules. Covers the visible Top search page only.

## `monitorStoreName` (type: `string`):

Persistent store for search history, for example threads-brand-daily. Required when monitorMode is new or changes. Use a new name to reset.

## Actor input object example

```json
{
  "profiles": [
    "nasa"
  ],
  "maxPostsPerProfile": 3,
  "maxItems": 3,
  "searchSort": "top",
  "includeReplies": false,
  "maxRepliesPerPost": 20,
  "monitorMode": "off"
}
```

# 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 = {
    "profiles": [
        "nasa"
    ],
    "maxPostsPerProfile": 3,
    "maxItems": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("automatic/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 = {
    "profiles": ["nasa"],
    "maxPostsPerProfile": 3,
    "maxItems": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("automatic/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 '{
  "profiles": [
    "nasa"
  ],
  "maxPostsPerProfile": 3,
  "maxItems": 3
}' |
apify call automatic/threads-posts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automatic/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/PDgcoqyQvDXQoWaWz/builds/8SKWrgMSGCYQRAK0q/openapi.json
