# Threads Scraper: Posts, Replies, Profiles & Search (`wyle/threads-all-in-one-scraper`) Actor

Fetch public Meta Threads posts, nested replies, user profiles, and keyword search feeds by URL or username. Collect engagement counts and media assets cleanly with no login required.

- **URL**: https://apify.com/wyle/threads-all-in-one-scraper.md
- **Developed by:** [Willy Lengkong](https://apify.com/wyle) (community)
- **Categories:** Social media, Lead generation, News
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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: Posts, Replies, Profiles & Search

Extract structured public data from Meta Threads (`threads.com` and `threads.net`) without a browser or Threads login. Collect post captions, engagement metrics, direct conversation replies, creator profiles with follower counts, HD images, MP4 videos, and keyword or topic search feeds in seconds.

### Modes

| Mode | Input | What you get |
|---|---|---|
| **Post Details & Replies** | `targets` (post URLs, `/t/<code>` links, or post shortcodes) | Full post caption, engagement counts, media assets, author details, and direct replies (`recordType: "post"`) |
| **Creator Profiles** | `targets` (`@username` or profile URLs) + optional `includeProfileReplies` | Creator profile metadata (followers, verification, bio, links) and published posts (`recordType: "profile_post"` / `"profile_reply"`) |
| **Keyword & Topic Search** | `searchQueries` + `searchSort` (`top`, `recent`, `both`), or `/tag/...` URLs in `targets` | Public Threads posts matching your keywords or topic tags (`recordType: "search_post"`) |

### Supported Coverage

- **Input Formats**: Full post URLs (`https://www.threads.com/@zuck/post/DfaNgswkQPG`), short links (`/t/DfaNgswkQPG`), bare post codes (`DfaNgswkQPG`), profile URLs (`https://www.threads.com/@zuck`), `@usernames`, `/@user/replies` URLs, `/tag/...` topic URLs, and keyword `searchQueries`.
- **Content Types**: Text threads, single-image posts, multi-slide image/video carousels, `.mp4` videos, voice posts (`audioUrl`), and link preview cards (`linkPreview`).
- **Engagement & Entities**: `likeCount`, `directReplyCount`, `repostCount`, `quoteCount`, `reshareCount`, `hashtags`, `mentions`, `tagHeader`, `detectedLanguage`, `replyControl`, and `author` profile intelligence.

### Output Options & Proxy Tips

- **Search Sorting**: Choose `"top"` (default), `"recent"`, or `"both"` (combines and deduplicates top and recent feeds) via `searchSort`.
- **Nested vs. Flattened Replies**: Direct replies on post pages are nested under `replies` by default. Enable `flattenReplies` to also emit each reply as its own top-level dataset row (`recordType: "reply"`). Enable `includeRelatedPosts` to capture additional recommended posts shown on post pages.
- **Result Limits**: `maxItemsPerTarget` caps items emitted per profile, search query, or target URL (`1`–`500`, default `50`). Public post pages include the direct replies visible on the loaded thread page.
- **Proxy Recommendations**: Standard runs work without a proxy or login. For large batch runs across many profiles or queries, configure Apify Proxy via `proxyConfiguration`.

### Use Cases

1. **Brand Listening & Topic Monitoring**: Track brand mentions, product launches, and trending conversations across `top` and `recent` search feeds.
2. **Creator & Influencer Analytics**: Benchmark creator `followerCount`, verification status, posting cadence, and engagement across lists of `@usernames`.
3. **Audience & Reply Sentiment Analysis**: Extract direct conversation replies (`includeReplies`, `flattenReplies`) for NLP and AI sentiment pipelines.
4. **Social Media Archiving**: Capture full-resolution carousel images, video URLs, and link previews from Threads posts into automated content workflows.

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `targets` | `array` | `["https://www.threads.com/@zuck/post/DfaNgswkQPG", "https://www.threads.com/@zuck"]` | Threads post URLs, post shortcodes, profile URLs, `@usernames`, or topic/search URLs. |
| `searchQueries` | `array` | `[]` | Optional keywords or topics to search on Threads. |
| `searchSort` | `string` | `"top"` | Sort order for keyword search queries: `"top"`, `"recent"`, or `"both"`. |
| `includeReplies` | `boolean` | `true` | Extract direct conversation replies when scraping a post URL or shortcode. |
| `flattenReplies` | `boolean` | `false` | Also emit each direct reply as its own top-level dataset row (`recordType: "reply"`). |
| `includeProfileReplies` | `boolean` | `false` | Also scrape a creator's `/replies` tab when scraping their profile. |
| `includeRelatedPosts` | `boolean` | `false` | Also extract related Threads posts recommended on post detail pages. |
| `maxItemsPerTarget` | `integer` | `50` | Maximum number of posts to emit per profile, search query, or target URL (`1`–`500`). |
| `proxyConfiguration` | `object` | `{"useApifyProxy": false}` | Optional Apify Proxy configuration. Standard runs work without a proxy. |

### Sample Output

```json
{
  "recordType": "post",
  "postId": "4024588638696309702_63055343223",
  "pk": "4024588638696309702",
  "code": "DfaNgswkQPG",
  "url": "https://www.threads.com/@zuck/post/DfaNgswkQPG",
  "authorUsername": "zuck",
  "authorFullName": "Mark Zuckerberg",
  "authorVerified": true,
  "caption": "Using our new spaces feature on Muse to build a tool for my smoker. Give Muse a prompt and it can help build whatever you want to keep track of.\n\nThe Pit Viper's vent controller has Bluetooth now, so Muse tracks the temp for me throughout the day.",
  "isEdited": false,
  "detectedLanguage": "en",
  "likeCount": 1655,
  "directReplyCount": 436,
  "repostCount": 68,
  "quoteCount": 23,
  "reshareCount": 97,
  "mediaType": "carousel",
  "images": [
    "https://instagram.fcgk4-6.fna.fbcdn.net/v/t51.82787-15/885671063_17996255874103224_4387771183586852277_n.webp?_nc_cat=1&ig_cache_key=NDAyNDU4ODE5NDc1Nzg2NjY4MQ%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNBUk9VU0VMX0lURU0ueHBpZHMuMTYzOS5zZHIucmVndWxhcl9waG90by5DMyJ9&_nc_ohc=WzQAyQvO7U0Q7kNvwHcmFMi&_nc_oc=Adpystx9LpIYS7VC2pYKUA8NhFOTihpXU-BwpJapN_1TBincOMvQZTgebxHbiJ-No08jnuK8hypgB4qHsu4WJGv_&_nc_zt=23&_nc_ht=instagram.fcgk4-6.fna&_nc_gid=O8PYIych0QZnROaroWJNxg&_nc_ss=79289&oh=00_AQRmu4HIhALfoqsfBlgMBjKoMAjWJmj0_zRzEhS_DUsYLQ&oe=6AF537E0"
  ],
  "videos": [
    "https://instagram.fbdo6-3.fna.fbcdn.net/o1/v/t16/f2/m84/AQNSqsRJ_lsT8oJHCaTlZHIaksG19beD-59EBfSVWMK9vHYgnqkikjqiwzuM-MA7rlgdKqq9JjAD2uU0OAY6pu-HmjoSllcdJGT9b70.mp4?_nc_cat=100&_nc_oc=AdoYg5kK9mQ5NLonWDe8HvFPU8bqD9Zi3PLM7hq4t6H77orzBXOfL9SgAOLUFiYo-GmlWUYa8LwNPLtsqf3wrjpG&_nc_sid=5e9851&_nc_ht=instagram.fbdo6-3.fna.fbcdn.net&_nc_ohc=HvsdDK8YNS4Q7kNvwGZ-KOD&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uQ0FST1VTRUxfSVRFTS5DMy43MjAuZGFzaF9iYXNlbGluZV8xX3YxIiwieHB2X2Fzc2V0X2lkIjoxNzk5NjI1NTkxMzEwMzIyNCwiYXNzZXRfYWdlX2RheXMiOjAsInZpX3VzZWNhc2VfaWQiOjEwMTY0LCJkdXJhdGlvbl9zIjoxNSwidXJsZ2VuX3NvdXJjZSI6Ind3dyJ9&ccb=17-1&vs=9dbfb81ea5587a0c&_nc_vs=HBksFQIYTGlnX2JhY2tmaWxsX3RpbWVsaW5lX3ZvZC9CN0MxQzI2RTQ5RjA0NDlEQjNFOEQ3MUI1MDRGQjY5Rl92aWRlb19kYXNoaW5pdC5tcDQVAALIARIAFQIYUWlnX3hwdl9wbGFjZW1lbnRfcGVybWFuZW50X3YyLzAwOTgzMEZBQzM3QjQ4NzA4NjA0QTE5QjQwREUxQzYwX2F1ZGlvX2Rhc2hpbml0Lm1wNBUCAsgBEgAoABgAGwKIB3VzZV9vaWwBMRJwcm9ncmVzc2l2ZV9yZWNpcGUBMRUAACbwveaP-9_3PxUCKAJDMywXQC-dsi0OVgQYEmRhc2hfYmFzZWxpbmVfMV92MREAde4HZeieAQA&_nc_gid=O8PYIych0QZnROaroWJNxg&_nc_ss=79289&_nc_map=urlgen_bucketless&_nc_zt=28&oh=00_AQT-6nwaeWjF5FX1mIegE_dq5VU4mMeviBKo7_wy21I5aw&oe=6AF14334"
  ],
  "isReply": false,
  "isPinned": false,
  "isPaidPartnership": false,
  "replyControl": "everyone",
  "tagHeader": "techthreads",
  "hashtags": [
    "techthreads"
  ],
  "mentions": [],
  "author": {
    "userId": "63055343223",
    "pk": "63055343223",
    "username": "zuck",
    "fullName": "Mark Zuckerberg",
    "profileUrl": "https://www.threads.com/@zuck",
    "isVerified": true,
    "isPrivate": false,
    "biography": "Mostly superintelligence and MMA takes",
    "profilePicUrl": "https://scontent.cdninstagram.com/v/t51.82787-19/825322135_17989325280103224_1252773933700107438_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ig_cache_key=GJdqMTE4yxEvMuk-AK5MEFZBv2IRbmNDAQAB1501500j-ccb7-5&ccb=7-5&_nc_sid=43db74&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=51_VR3CSY00Q7kNvwFcG1FY&_nc_oc=AdouA_V1MtPXH39BmMI1IAhVM3QgTIEapFnVCSrMMegbk17HmLK7NJ6CvplHrJ1l2Dyy5xUDOR9mCJIWYxgNt-Qi&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_gid=O8PYIych0QZnROaroWJNxg&_nc_ss=79289&oh=00_AQQGI7WQUUD2gvPxDL89NIP_z1Ee74CaIkhtssDyideLHw&oe=6AF50BEB",
    "bioLinks": []
  },
  "replies": [
    {
      "postId": "4024589071296744180_63099115131",
      "pk": "4024589071296744180",
      "code": "DfaNm_pj8r0",
      "url": "https://www.threads.com/@joshhennytech/post/DfaNm_pj8r0",
      "authorUsername": "joshhennytech",
      "authorFullName": "Joshua Hendrix",
      "authorVerified": false,
      "authorProfilePicUrl": "https://scontent.cdninstagram.com/v/t51.82787-19/844544833_17989443588099132_8876914475242441912_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=100&ig_cache_key=GEG7VjI8jMa6Tek-ALhMWe6uIjF7bmNDAQAB1501500j-ccb7-5&ccb=7-5&_nc_sid=43db74&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=wlct703SW74Q7kNvwEOjwpL&_nc_oc=AdrfQ9ti_4pzEiH73lnDGZr_K17lVr-N_ODQC8J-4f3cDso7inNQYJRJvPqcuVEioExsbJUWJn_ru4yW_uloFKoT&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_gid=VprCxmymSosOtKq104QZYA&_nc_ss=79289&oh=00_AQRQYIOY7idm0omQra8Ey63ESdbQMu1gdBfQicYIHQlRxw&oe=6AF52EB5",
      "caption": "Nice!",
      "likeCount": 0,
      "directReplyCount": 0,
      "repostCount": 0,
      "quoteCount": 0,
      "mediaType": "text",
      "images": [],
      "videos": [],
      "createdAt": "2026-11-06T18:07:05+00:00"
    },
    {
      "postId": "4024590470113830012_63103073085",
      "pk": "4024590470113830012",
      "code": "DfaN7WZjqR8",
      "url": "https://www.threads.com/@ronmartinez/post/DfaN7WZjqR8",
      "authorUsername": "ronmartinez",
      "authorFullName": "Ron Martinez",
      "authorVerified": false,
      "authorProfilePicUrl": "https://scontent.cdninstagram.com/v/t51.2885-19/357736518_819575896403623_2100127387050613242_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=107&ig_cache_key=GEagUhWn7itiZukCAPqZOEi7JiUdbkULAAAB1501500j-ccb7-5&ccb=7-5&_nc_sid=43db74&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=i2zU15VmO7cQ7kNvwFkILuz&_nc_oc=AdruncxDWNhZZ0wVYT0EzzdmIlAwl98g9Yb2Q5C2tT3WimRMNKiQG3Ri5_-YvxaHzEsziRb1d9HdGNrcO01aE41d&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_ss=79289&oh=00_AQR8cFrfmNtw__tKBZSfYMeC8uvdCFfa48TD3gYOH-r9uA&oe=6AF52EA0",
      "caption": "Taking “Meat Proxy” to the next level. 😎",
      "likeCount": 21,
      "directReplyCount": 0,
      "repostCount": 0,
      "quoteCount": 0,
      "mediaType": "text",
      "images": [],
      "videos": [],
      "createdAt": "2026-11-06T18:09:52+00:00"
    }
  ],
  "createdAt": "2026-11-06T18:06:14+00:00",
  "scrapedAt": "2026-11-07T16:00:52.441681+00:00"
}
```

# Actor input Schema

## `targets` (type: `array`):

Enter any combination of Threads Post URLs (e.g. 'https://www.threads.com/@zuck/post/DfaNgswkQPG'), Profile URLs ('https://www.threads.com/@zuck'), handles ('@zuck'), Post Shortcodes ('DfaNgswkQPG'), or Topic/Search URLs ('https://www.threads.com/tag/openai').

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

Optional list of keywords or topics to search on Threads (e.g. \['openai', 'artificial intelligence']).

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

Sort order for keyword search queries: 'top' (Top posts), 'recent' (Most recent posts), or 'both' (combines Top and Recent feeds).

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

When scraping a Threads post URL or shortcode, extract its direct conversation replies.

## `flattenReplies` (type: `boolean`):

When enabled, each direct reply on a post page is also emitted as its own top-level dataset row (`recordType: 'reply'`). When disabled (default), replies are nested inside the post's `replies` array.

## `includeProfileReplies` (type: `boolean`):

When scraping a creator profile, also scrape their '/replies' tab in addition to their main Threads tab.

## `includeRelatedPosts` (type: `boolean`):

When scraping a specific post URL, also extract related Threads posts recommended on that page.

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

Maximum number of posts to emit per profile, search query, or target URL.

## `proxyConfiguration` (type: `object`):

Optional Apify Proxy configuration. Works out-of-the-box without a proxy for standard runs; enable Apify Proxy for high-volume batches.

## Actor input object example

```json
{
  "targets": [
    "https://www.threads.com/@zuck/post/DfaNgswkQPG",
    "https://www.threads.com/@zuck"
  ],
  "searchQueries": [],
  "searchSort": "top",
  "includeReplies": true,
  "flattenReplies": false,
  "includeProfileReplies": false,
  "includeRelatedPosts": false,
  "maxItemsPerTarget": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (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 = {
    "targets": [
        "https://www.threads.com/@zuck/post/DfaNgswkQPG",
        "https://www.threads.com/@zuck"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("wyle/threads-all-in-one-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 = { "targets": [
        "https://www.threads.com/@zuck/post/DfaNgswkQPG",
        "https://www.threads.com/@zuck",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("wyle/threads-all-in-one-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 '{
  "targets": [
    "https://www.threads.com/@zuck/post/DfaNgswkQPG",
    "https://www.threads.com/@zuck"
  ]
}' |
apify call wyle/threads-all-in-one-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,wyle/threads-all-in-one-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/hLYmJieUbWzDYXkbq/builds/sL6WlgbfqtrSfsYaA/openapi.json
