# Threads Profile & Posts Scraper (`social_developer/threads-profile-scraper`) Actor

Scrape public Threads profile posts back to a date, with likes, shares, replies, reposts, quotes, view counts, post type and media URLs. Guest session only — no login required.

- **URL**: https://apify.com/social_developer/threads-profile-scraper.md
- **Developed by:** [Celine](https://apify.com/social_developer) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.00005 / actor start

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 Profile Posts Scraper

Collect posts from any public Threads profile — from the newest post back to a date you choose. Each result is one post with its text, publish time, likes, replies, reposts, quotes, shares, view counts, and media links.

No Threads account or login is needed. The scraper works with publicly visible profiles only.

### What you can use it for

- Track how a brand, creator, or public figure posts over time
- Measure engagement (likes, replies, reposts, views) per post
- Build datasets for social media research and reporting
- Monitor competitors' Threads activity

### How to use

1. Add one or more Threads profiles (one per line).
2. Pick a **Scrape till date**, which is how far back to go.
3. Click **Start**. Posts appear in the dataset as they are collected.
4. Download the results as JSON, CSV, Excel, or connect them to your tools via the Apify API.

#### Example input

```text
https://www.threads.com/@instagram
@threads
zuck
```

Full profile URLs, `@handles`, and plain usernames all work.

### Input options

| Option | What it does |
|---|---|
| **Profiles** | Threads profiles to scrape, one per line |
| **Scrape till date** | Collect posts published on or after this date (`YYYY-MM-DD`). Older posts are not included. |
| **Include view counts** | Adds the public view count for each post. On by default; turn off for faster runs. |
| **View-count workers** | How many view counts are fetched at the same time (1–16, default 8). Higher is faster; lower is gentler if you see blocks. |
| **Max posts per profile** | Stop collecting a profile after this many posts |
| **Max posts for the entire run** | Stop the whole run after this many posts in total |
| **Proxy configuration** | Apify datacenter proxy by default (fast and low-cost). Switch to Residential if you see frequent blocks. |

### Tips for faster runs

- **Choose a recent Scrape till date.** Fewer posts means a quicker run, and view counts are only fetched for posts you actually receive.
- **Turn off view counts** if you don't need them. This is the single biggest speed-up.
- **Adjust View-count workers.** 8–12 is fast; drop to 1–3 if a run reports blocks or rate limits.
- **Scrape several profiles in one run** rather than many separate runs.

### Output

Each dataset item is one post. Example:

```json
{
  "username": "instagram",
  "post_url": "https://www.threads.com/@instagram/post/ABC123xyz",
  "taken_at_utc": "2026-09-30T14:05:00+00:00",
  "text": "Example post text",
  "post_type": "photo",
  "like_count": 1520,
  "reply_count": 84,
  "repost_count": 31,
  "quote_count": 6,
  "share_count": 12,
  "view_count": 48210,
  "engagement_total": 1653,
  "media_urls": "https://...",
  "is_pinned": false,
  "author_username": "instagram",
  "author_verified": true
}
```

| Field | Description |
|---|---|
| `username` | Profile you asked for |
| `post_url` | Link to the post on Threads |
| `taken_at_utc` | When the post was published (UTC) |
| `text` | Post text or caption |
| `post_type` | photo, video, carousel, text, reply, quote, repost, … |
| `like_count` / `reply_count` / `repost_count` / `quote_count` / `share_count` | Engagement numbers |
| `view_count` | Public view count (when **Include view counts** is on and Threads shows it) |
| `view_count_status` | `available` or `unavailable` |
| `engagement_total` | Likes + replies + reposts + quotes + shares |
| `media_urls` | Image/video links, separated by `\|` when there are several |
| `is_pinned` | Whether the post is pinned to the profile |
| `in_date_range` | Always `true` (kept for compatibility) |
| `author_username` / `author_full_name` / `author_verified` | Author details |

#### How the date works

The scraper starts from the newest post and moves backward in time, stopping once it reaches posts older than **Scrape till date**. Only posts on or after that date are saved. A pinned post at the top of a profile won't stop the run early. If it's older than your date, it is skipped.

### Limitations

- Only public profiles are supported; private or restricted profiles can't be scraped.
- Both post limits apply; once the run limit is hit, remaining profiles are skipped.
- Media links can expire, so download media soon if you need to keep it.
- Engagement numbers reflect the moment of collection and may change later.
- A proxy is required. The default datacenter proxy works for most runs; use Residential if a profile keeps getting blocked.

### FAQ

**Do I need a Threads or Instagram account?**
No. The scraper only reads publicly visible data.

**Why are some view counts unavailable?**
Threads doesn't show view counts on every post. When it doesn't, `view_count_status` is `unavailable`.

**The run reported blocks or rate limits — what should I do?**
The scraper retries automatically. If it keeps happening, lower **View-count workers** to 1–3 or turn off view counts.

### Responsible use

This Actor collects publicly available Threads data only. Make sure your use of the data complies with applicable laws, privacy regulations, and Threads' terms of service.

# Actor input Schema

## `profiles` (type: `string`):

One profile per line — full URL (e.g. https://www.threads.com/@instagram), @handle, or username.

## `scrapeTillDate` (type: `string`):

Lower date boundary from the latest post. Only posts on/after this date are saved; scraping stops once older posts appear (pinned posts are ignored for the cutoff).

## `includeViews` (type: `boolean`):

When enabled, fetches public view/play counts from each post page in parallel (slower, more requests). Turn off for the fastest scrapes; view_count stays unavailable.

## `viewWorkers` (type: `integer`):

Parallel workers used only when Include view counts is on. Higher = faster, but more likely to hit rate limits. Lower (1–3) if you see blocks. Ignored when view counts are off.

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

Record cap per profile. Stops that profile's scraping when reached.

## `maxPostsPerRun` (type: `integer`):

Total record cap for the whole run. When hit, remaining profiles are skipped and the run ends.

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

Apify datacenter proxy by default, which is fast and low-cost. Switch to Residential if you see frequent blocks. Each session keeps a sticky IP automatically.

## Actor input object example

```json
{
  "profiles": "https://www.threads.com/@instagram",
  "scrapeTillDate": "2026-09-10",
  "includeViews": true,
  "viewWorkers": 8,
  "maxPostsPerProfile": 100,
  "maxPostsPerRun": 3000,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

The default dataset containing scraped post records.

# 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": "https://www.threads.com/@instagram",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("social_developer/threads-profile-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": "https://www.threads.com/@instagram",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("social_developer/threads-profile-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": "https://www.threads.com/@instagram",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call social_developer/threads-profile-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,social_developer/threads-profile-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/0En4nj6sRq9oqXpoP/builds/BdWpQD4DSy1ixrdHh/openapi.json
