# Threads Post Engagement Scraper (`andy-ng/threads-post-engagement-scraper`) Actor

- **URL**: https://apify.com/andy-ng/threads-post-engagement-scraper.md
- **Developed by:** [Andy Nguyen](https://apify.com/andy-ng) (community)
- **Categories:**
- **Stats:** 3 total users, 2 monthly users, 92.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 post 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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Threads Post Engagement Scraper

Extract **public Threads post engagement metrics** from `threads.com` and `threads.net` URLs. This Actor returns post text, author details, timestamps, media, likes, replies, reposts, quotes, and a calculated engagement count in a clean Apify dataset.

It uses a fast HTTP/Cheerio pass first and automatically retries incomplete pages in a controlled browser. You do not need a Threads login, cookies, or an API key. Run it manually, schedule it, call it through the Apify API, or connect the dataset to Google Sheets, Make, Zapier, and other integrations.

> **Disclaimer:** This unofficial Actor is not affiliated with or endorsed by Meta Platforms, Inc. Scrape only public information and follow Threads’ Terms of Service and applicable laws.

### What does Threads Post Engagement Scraper do?

Give the Actor one or more public Threads post URLs. It validates and deduplicates them, reads the public page, and returns normalized post records. Both `threads.com` and the legacy `threads.net` host are supported.

The Actor uses Apify features including API access, scheduling, proxy rotation, monitoring, automatic retries, and dataset exports. If Threads serves a JavaScript-rendered page or temporarily blocks the HTTP response, the Actor uses a browser fallback for that post.

### Why use Threads Post Engagement Scraper?

- Track the performance of posts over time with scheduled runs.
- Compare likes, replies, reposts, quotes, and total engagement across creators or campaigns.
- Build datasets for social listening, content research, reporting, and analytics.
- Keep the output consistent even when individual engagement fields are unavailable.
- Process batches of up to 1,000 post URLs with automatic duplicate removal.

### How to scrape Threads post engagement

1. Open this Actor in [Apify Console](https://console.apify.com/) or run it locally.
2. Add public Threads post URLs in the **Input** tab.
3. Optionally configure concurrency or enable an Apify proxy.
4. Start the run and open the **Output** tab.
5. Download the dataset or consume it through the Apify API.

### Input

The required `startUrls` field accepts public post URLs such as:

```json
{
    "startUrls": [
        { "url": "https://www.threads.com/@creator/post/AbC_123" },
        { "url": "https://threads.net/t/Def_456" },
        { "url": "https://www.threads.com/share/GbKn-Nmue/" }
    ],
    "maxConcurrency": 10,
    "proxyConfiguration": { "useApifyProxy": false }
}
```

The Actor accepts `/@username/post/CODE`, `/t/CODE`, and `/share/TOKEN` redirect links on `threads.com` or `threads.net`. Share links are followed automatically and the resolved post URL is used when Threads redirects successfully. Query parameters are ignored for deduplication. `maxConcurrency` defaults to 10 and is capped at 25. A proxy is optional, but residential proxy traffic can help when Threads rate-limits requests.

### Output

Each successful or partial record represents one normalized post:

```json
{
    "postId": "post-123",
    "code": "AbC_123",
    "url": "https://www.threads.com/@creator/post/AbC_123",
    "text": "A post about public data #scraping",
    "sharedUrl": "https://example.com/resource",
    "sharedThumbnailUrl": "https://cdn.example/resource-thumbnail.jpg",
    "createdAt": "2026-01-02T03:04:05.000Z",
    "likeCount": 1200,
    "replyCount": 42,
    "repostCount": 8,
    "quoteCount": 3,
    "engagementCount": 1253,
    "author": { "username": "creator", "isVerified": true },
    "status": "success",
    "missingFields": []
}
```

Partial records retain all fields that were found and list unavailable engagement fields in `missingFields`. You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

### Data table

| Field                   | Description                                            |
| ----------------------- | ------------------------------------------------------ |
| `postId` / `code`       | Threads identifiers                                    |
| `url` / `originalUrl`   | Canonical and submitted URLs                           |
| `text`                  | Public post text                                       |
| `sharedUrl`             | First external URL shared by the post                 |
| `sharedThumbnailUrl`    | Preview thumbnail URL, first caption URL, or first extracted image |
| `author`                | Username, name, verification, profile, and avatar data |
| `createdAt`             | Post creation timestamp                                |
| `likeCount`             | Like or reaction count                                 |
| `replyCount`            | Reply or comment count                                 |
| `repostCount`           | Repost count                                           |
| `quoteCount`            | Quote count                                            |
| `engagementCount`       | Sum of all four counts when all are available          |
| `media`                 | Public image and video URLs                            |
| `hashtags` / `mentions` | Tags and mentions parsed from text                     |
| `status`                | `success` or `partial`                                 |

### How much does it cost to scrape Threads posts?

Apify charges for the compute and storage used by your run. HTTP requests are inexpensive; browser fallback uses more compute and is limited to pages that need it. Your Apify account includes free monthly usage subject to the current Apify plan and pricing. The Actor does not require a third-party API subscription or user-provided key.

### Tips and advanced options

- Start with a small batch to verify that the target posts are public.
- Lower `maxConcurrency` if you see rate limiting; enable Apify Proxy for larger runs.
- Use scheduled runs to create historical engagement snapshots rather than overwriting old datasets.
- Treat `partial` rows as usable leads for analysis, but check `missingFields` before calculating totals.

### FAQ, disclaimers, and support

#### Does this require a Threads login?

No. The Actor reads public pages only and does not accept or store login credentials or cookies.

#### Does it scrape profiles, searches, or replies?

This version is focused on the post URLs you provide. Profile timelines, keyword search, pagination, and reply-thread expansion are outside the current scope.

#### Why is a record partial?

Threads may hide a metric, return a consent or login page, or render information only after JavaScript executes. The Actor preserves available data and reports missing engagement fields instead of inventing zero values.

#### Is scraping Threads legal?

You are responsible for complying with Threads’ Terms of Service, robots policies, privacy obligations, and applicable laws. Use the Actor only for public, lawful data collection.

For feedback or bug reports, use the Actor’s **Issues** tab. Custom extraction fields and private integrations can be developed as a separate solution.

# Actor input Schema

## `startUrls` (type: `array`):

Public Threads post URLs from threads.com or threads.net. Supported formats include /@username/post/CODE, /t/CODE, and /share/TOKEN redirect links.

## `maxConcurrency` (type: `integer`):

Maximum number of public Threads pages fetched in parallel. Browser fallback uses a safer lower concurrency automatically.

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

Optional proxy settings for public Threads pages. Residential proxies may improve reliability when requests are rate limited.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.threads.com/@threads/post/example"
    }
  ],
  "maxConcurrency": 10,
  "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 = {
    "startUrls": [
        {
            "url": "https://www.threads.com/@threads/post/example"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("andy-ng/threads-post-engagement-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 = { "startUrls": [{ "url": "https://www.threads.com/@threads/post/example" }] }

# Run the Actor and wait for it to finish
run = client.actor("andy-ng/threads-post-engagement-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 '{
  "startUrls": [
    {
      "url": "https://www.threads.com/@threads/post/example"
    }
  ]
}' |
apify call andy-ng/threads-post-engagement-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,andy-ng/threads-post-engagement-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/YkpgSUQhTbBZYS6kj/builds/BLuHjL3a0V85CadqS/openapi.json
