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

All-in-one Threads scraper without login: profiles with their latest posts, any post with its replies, and keyword or hashtag search. One row per profile, post or reply with text, date, likes, replies, reposts, quotes and media. New-item alerts on scheduled runs. $0.002 per row.

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

## Pricing

from $2.00 / 1,000 row scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

Scrape Threads (Meta) without logging in, without API keys and without cookies. One Actor covers the three things people need from Threads: **profiles** with their latest posts, **posts** with their replies, and **search** by keyword or hashtag. Every result comes in the same row format, so you can mix usernames, post URLs and search queries in a single run and export one clean table. Schedule it and the Actor flags what is new since the previous run.

The Actor reads exactly what Threads shows to a logged-out visitor, so the numbers are the public ones you see in the browser. You pay $0.002 per row returned; targets that cannot be read and searches without results are free.

### What you get

Each row has a `kind`:

- **profile** (one per username): `author` (username), `fullName`, `bio`, `followers`, `threadsCount`, `verified`, `private`, `avatar`, `externalUrl`, `topics`, `url`.
- **post** (profile posts, the post of a post URL, or search results): `author`, `text`, `takenAt`, `type` (`text`, `image`, `video`, `carousel`), `likes`, `replies`, `reposts`, `quotes`, `reshares`, `image`, `videoUrl`, `mediaCount`, `linkUrl`, `isPinned`, `quotedPostCode`, `repostedPostCode`, `topic`, `url`.
- **reply** (replies of a post URL): the same fields plus `replyTo`, `depth` (1 = direct reply to the post, 2 = reply to another reply) and `isAuthorPost` (continuation written by the author of the thread).

Every row also carries `mode` (`profile`, `post` or `search`), `source` (the URL that was read), `query` (for searches), `position`, `itemsFound` and `isNew` (true when the post or reply was not in the previous run; null on the first run).

### How to use it

1. Open the **Input** tab.
2. Fill in any combination of:
   - **Profiles**: `zuck`, `@nasa` or `https://www.threads.com/@mosseri`.
   - **Post URLs**: `https://www.threads.com/@zuck/post/DeZtp-TkQHh`.
   - **Search queries**: `ai agents`, `#buildinpublic` (a leading `#` searches the tag).
3. Optionally switch **Search: most recent first** and set **Max posts per profile, post or search**.
4. Click **Start** and export the rows as JSON, CSV or Excel, or call the Actor from the API.
5. Schedule it (for example hourly) to monitor a brand, a topic or a set of creators.

### Input

```json
{
  "usernames": ["zuck"],
  "postUrls": ["https://www.threads.com/@zuck/post/DeZtp-TkQHh"],
  "searchQueries": ["ai agents"],
  "searchRecent": false,
  "maxItemsPerTarget": 30
}
```

| Field | Description |
|-------|-------------|
| `usernames` | Threads usernames, `@usernames` or profile URLs (threads.com or threads.net). |
| `postUrls` | Post URLs. Returns the post and its replies. |
| `searchQueries` | Keywords or `#hashtags`. |
| `searchRecent` | `false` = top posts, `true` = newest posts. |
| `maxItemsPerTarget` | Maximum posts or replies per profile, post or search (1-100, default 30). |

### Output example

```json
{
  "mode": "search",
  "source": "https://www.threads.com/search?q=ai%20agents&serp_type=default",
  "query": "ai agents",
  "kind": "post",
  "position": 1,
  "author": "zuck",
  "text": "Introducing Muse Wonder, our new family of frontier models...",
  "takenAt": "2026-10-12T16:56:29.000Z",
  "type": "image",
  "likes": 1899,
  "replies": 296,
  "reposts": 135,
  "quotes": 53,
  "image": "https://scontent.cdninstagram.com/v/...",
  "url": "https://www.threads.com/@zuck/post/DeZtp-TkQHh",
  "isNew": null
}
```

### Pricing

Pay per event, no subscription:

- **Row scraped**: $0.002 per profile, post or reply returned.
- **New post or reply**: $0.001 per post or reply that was not in the previous run of the same target (scheduled runs only).

A search that returns 20 posts costs $0.04. A profile with its 10 latest posts costs $0.022. Nothing is charged for targets that fail or return no results.

### Use cases

- **Brand and topic monitoring**: schedule searches for your brand, competitors or keywords and get only the new posts.
- **Creator research**: followers, bio and recent engagement of any profile.
- **Conversation analysis**: replies of a post with their thread level and likes for sentiment or community work.
- **AI agents and RAG**: one predictable row format for posts, replies and profiles.

### Limitations

- Threads shows logged-out visitors about 10 recent posts per profile, around 20 featured replies per post and 15-25 posts per search; there is no deeper pagination without an account.
- Private profiles and deleted posts return a row with an `error` field and are not charged.
- Media URLs are CDN links that expire after some days.

# Actor input Schema

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

Usernames or profile URLs: zuck, @nasa or https://www.threads.com/@mosseri. Returns the profile and its latest posts.

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

Post links such as https://www.threads.com/@zuck/post/DeZtp-TkQHh. Returns the post and its replies.

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

Keywords or #hashtags, one per line. Returns the posts Threads shows for each search.

## `searchRecent` (type: `boolean`):

Off returns the top posts; on returns the newest ones.

## `maxItemsPerTarget` (type: `integer`):

Caps the rows (and the cost) of each profile, post or search.

## `product` (type: `string`):

Internal. Leave as is.

## Actor input object example

```json
{
  "usernames": [
    "zuck"
  ],
  "postUrls": [
    "https://www.threads.com/@zuck/post/DeZtp-TkQHh"
  ],
  "searchQueries": [
    "ai agents"
  ],
  "searchRecent": false,
  "maxItemsPerTarget": 30,
  "product": "threads-scraper"
}
```

# Actor output Schema

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

Dataset items: url, changed, events, data, timestamp and error (when the target failed).

# 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"
    ],
    "postUrls": [
        "https://www.threads.com/@zuck/post/DeZtp-TkQHh"
    ],
    "searchQueries": [
        "ai agents"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("aolmo/threads-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"],
    "postUrls": ["https://www.threads.com/@zuck/post/DeZtp-TkQHh"],
    "searchQueries": ["ai agents"],
}

# Run the Actor and wait for it to finish
run = client.actor("aolmo/threads-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"
  ],
  "postUrls": [
    "https://www.threads.com/@zuck/post/DeZtp-TkQHh"
  ],
  "searchQueries": [
    "ai agents"
  ]
}' |
apify call aolmo/threads-scraper --silent --output-dataset

```

## MCP server setup

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