# Threads User Posts Scraper (`apibox/threads-user-posts-scraper`) Actor

Extract User Posts from Threads, including captions, media, tags, mentions, and metrics such as likes, comments, and quotes. Easily collect and analyze user-generated content, and download results in formats like JSON, CSV, or Excel.

- **URL**: https://apify.com/apibox/threads-user-posts-scraper.md
- **Developed by:** [ApiBox](https://apify.com/apibox) (community)
- **Categories:** Social media
- **Stats:** 665 total users, 3 monthly users, 89.6% runs succeeded, 28 bookmarks
- **User rating**: 2.35 out of 5 stars

## Pricing

$19.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#rental-actors

## 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 User Posts Scraper

#### 📖 What is Threads?

Threads is a social messaging platform focused on fostering authentic conversations. Users can post and share text, images and videos to join in public discussions. Threads was developed by Meta’s Instagram team and launched on July 5, 2023. [🔗](https://sproutsocial.com/insights/meta-threads/)

#### ❓ What is Threads User Post Scraper?

Threads User Post Scraper is a data extraction tool created for scraping posts of user from Threads.

#### ⚡ How do I use Threads User Post Scraper?

1. Create an [Apify](https://www.apify.com?fpr=hs6s8) account

2. Open [Threads User Post Scraper](https://apify.com/apibox/threads-user-posts-scraper)

3. Add Input parameters

4. Click the “Start” button and wait for the data to be extracted.
   Download your data in JSON, XML, CSV, Excel, or HTML

#### ⬇️ Input parameters

The input of this scraper should be JSON containing the list of pages that should be visited. Check the input tab for detailed list.

##### Input Example

```json
{
  "username": "zuck",
  "num": 50
}
```

#### ⬆️ Output

You can download the resulting dataset in various formats such as JSON, HTML, CSV or Excel. The structure of each post detail looks like this:

##### Output Examplee

```json
{
  "profile_pic_url": "https://instagram.fmaa10-1.fna.fbcdn.net/v/t51.2885-19/452737457_1313286386312102_744138929735022550_n.jpg?stp=dst-jpg_s150x150&_nc_ht=instagram.fmaa10-1.fna.fbcdn.net&_nc_cat=102&_nc_ohc=6dL7mSA77gUQ7kNvgEqdFDC&gid=82226fa7ba58449ea74b58de25153f65&edm=APs17CUBAAAA&ccb=7-5&oh=00_AYAQQrf1uBp8M8VMRNZYq2dMfFgVc-E_58Q3fBOAbQHhsw&oe=66B6C44E&_nc_sid=10d13b",
  "username": "zuck",
  "id": "3220231147841639674_314216",
  "pk": "3220231147841639674",
  "code": "Cywjyrdv9T6",
  "caption": "Good conversation with @hubermanlab and @cillachan about science, AI, and mixed reality. Check out the full episode on YouTube. https://www.youtube.com/watch?v=1Wo6SqLNmLk",
  "caption_is_edited": false,
  "like_count": 3756,
  "direct_reply_count": 402,
  "quote_count": 20,
  "repost_count": 131,
  "like_and_view_counts_disabled": false,
  "audio": null,
  "medias": [
    "https://instagram.fmaa10-1.fna.fbcdn.net/v/t51.29350-15/394612360_1067307400960695_5277238549036056440_n.jpg?stp=dst-jpg_e35&efg=eyJ2ZW5jb2RlX3RhZyI6ImltYWdlX3VybGdlbi4zNDY4eDI2MDEuc2RyLmYyOTM1MCJ9&_nc_ht=instagram.fmaa10-1.fna.fbcdn.net&_nc_cat=103&_nc_ohc=OoiiZNii5yAQ7kNvgF59WZU&gid=82226fa7ba58449ea74b58de25153f65&edm=APs17CUBAAAA&ccb=7-5&ig_cache_key=MzIyMDIzMTE0MjI4ODE5MjQ1MQ%3D%3D.2-ccb7-5&oh=00_AYByGWGx2o69VNiauHQQ1L86Hr6NnhlmG70JXJ2zwRJ7CA&oe=66B6BE3B&_nc_sid=10d13b",
    "https://instagram.fmaa10-1.fna.fbcdn.net/v/t51.29350-15/395505358_2383891861789717_5067047265949178785_n.jpg?stp=dst-jpg_e35&efg=eyJ2ZW5jb2RlX3RhZyI6ImltYWdlX3VybGdlbi4zNDY4eDI2MDEuc2RyLmYyOTM1MCJ9&_nc_ht=instagram.fmaa10-1.fna.fbcdn.net&_nc_cat=101&_nc_ohc=vFKHH_a3jRUQ7kNvgG_2Gar&gid=82226fa7ba58449ea74b58de25153f65&edm=APs17CUBAAAA&ccb=7-5&ig_cache_key=MzIyMDIzMTE0MjQwNTc0NDExOQ%3D%3D.2-ccb7-5&oh=00_AYBSIiUYDrmFWmQvjWteqOLfpZw9QEYGzpfXwV_ueq60MA&oe=66B6E373&_nc_sid=10d13b"
  ],
  "tags": null,
  "metions": [
    "@hubermanlab",
    "@cillachan"
  ],
  "taken_at": "2023-10-23 22:51:29",
  "url": "https://www.threads.net/@zuck/post/Cywjyrdv9T6"
}
```

#### 🔗 Integrations

You can use [Make](https://www.make.com/en/register?pc=apibox) to integrate this scraper to any other SaaS platform by designing your own automation flows.

#### 📈 Other Threads Scraper

<table>
  <tr>
    <td>
      <a href='https://apify.com/apibox/threads-user-reply-scraper?fpr=hs6s8' target='_blank'>
        💬 Threads User Reply Scraper
      </a>
    </td>
    <td>
      <a href='https://apify.com/apibox/threads-post-activity-scraper?fpr=hs6s8' target='_blank'>
        📜 Threads Post Activity Scraper
      </a>
    </td>
  </tr>
  <tr>
    <td>
      <a href='https://apify.com/apibox/threads-user-followers-scraper?fpr=hs6s8' target='_blank'>
        🐻 Threads User Follower Scraper
      </a>
    </td>
    <td>
      <a href='https://apify.com/apibox/threads-user-following-scraper?fpr=hs6s8' target='_blank'>
        🦁 Threads User Following Scraper
      </a>
    </td>
  </tr>
</table>

#### 📬 Contact

We value your feedback and are here to assist you with any questions or concerns you may have. Feel free to reach out to us through the following email
apiboxguru@gmail.com

# Actor input Schema

## `username` (type: `string`):

The username you want to get the data from

## `num` (type: `integer`):

Maximum number of posts that you want to scrape

## Actor input object example

```json
{
  "username": "worldeconomicforum",
  "num": 50
}
```

# 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 = {
    "username": "worldeconomicforum"
};

// Run the Actor and wait for it to finish
const run = await client.actor("apibox/threads-user-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 = { "username": "worldeconomicforum" }

# Run the Actor and wait for it to finish
run = client.actor("apibox/threads-user-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 '{
  "username": "worldeconomicforum"
}' |
apify call apibox/threads-user-posts-scraper --silent --output-dataset

```

## MCP server setup

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