# Threads Scraper: Profiles, Posts & Replies, $4.50/1K Posts (`actorforgehq/threads-scraper`) Actor

Input: Threads usernames, post URLs or keywords. Output: JSON rows of posts and replies (text, author, likes, replies, reposts, media, date) plus a free profile row, or accounts found by keyword with followers and bio. No login. $4.50 per 1,000 posts, $3 per 1,000 accounts, no start fee.

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

## Pricing

from $4.50 / 1,000 posts

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

## Threads Scraper: Profiles, Posts & Replies, $4.50/1K Posts

Get **public Threads posts as clean JSON** without logging in: the posts of any public account
(its **Threads**, **Replies** and **Reposts** tabs), a **post by its link with the replies under
it**, and **keyword search** of public posts. Every post row carries the text, author, date, likes,
replies, reposts, quotes, shares, media links, links, mentions and topic tag, and every account you
ask for gets **one free profile row** with followers, bio and bio links. **Find accounts by keyword**
returns up to about 100 accounts that Threads finds for each keyword, one row per account with
followers, bio and bio links, for influencer and lead lists.

It reads the data that Threads itself embeds in its public pages, over plain HTTP with no page
rendering, no Threads or Instagram account, no cookies and no API key. Only what Threads shows to a
visitor who is not logged in is collected.

### What you get

One row per post or reply. Fields that belong to the profile row are `null` on post rows and are
left out here (media links are shortened):

```json
{
  "type": "post",
  "postId": "4026926512892651125",
  "code": "DfihFPxkaZ1",
  "url": "https://www.threads.com/@zuck/post/DfihFPxkaZ1",
  "text": "Pavlova with Muse helping on our quest to go beyond beginner baking recipes!",
  "authorUsername": "zuck",
  "authorFullName": "Mark Zuckerberg",
  "authorId": "63055343223",
  "authorIsVerified": true,
  "createdAt": "2026-11-09T23:31:10.000Z",
  "likeCount": 1375,
  "replyCount": 177,
  "repostCount": 47,
  "quoteCount": 9,
  "shareCount": 30,
  "viewCount": null,
  "mediaType": "carousel",
  "mediaUrls": ["https://scontent.cdninstagram.com/...", "https://scontent.cdninstagram.com/..."],
  "mediaWidth": 2000,
  "mediaHeight": 1500,
  "hasAudio": null,
  "links": [],
  "linkPreviewTitle": null,
  "mentions": [],
  "topicTag": "bakingthreads",
  "isPinned": false,
  "isEdited": false,
  "isPaidPartnership": false,
  "isAiGenerated": false,
  "language": "en",
  "replyToPostId": null,
  "quotedPostUrl": null,
  "repostedBy": null,
  "tab": "posts",
  "source": "username",
  "sourceValue": "zuck",
  "inputUrl": "https://www.threads.com/@zuck",
  "scrapedAt": "2026-11-14T03:00:00.000Z"
}
```

A post opened by its link also gets its **view count**, `"viewCount": 365770`, because Threads shows
views to logged-out visitors only on the post page. A reply has `"type": "reply"` and points to the
post or reply it answers (an illustrative example):

```json
{
  "type": "reply",
  "postId": "4020952459732800681",
  "url": "https://www.threads.com/@example.user/post/DfNSvVNG1Sp",
  "text": "Great photos, thanks for sharing!",
  "authorUsername": "example.user",
  "createdAt": "2026-11-01T17:41:47.000Z",
  "likeCount": 700,
  "replyCount": 1,
  "replyToPostId": "4020948437830849967",
  "replyToUsername": "zuck",
  "source": "postUrl",
  "sourceValue": "DfNR0zhEdWv"
}
```

Rows from the **Replies** tab of a profile are the account's own replies, each with
`replyToPostId` and `replyToUsername` of the post it answered. Rows from the **Reposts** tab are the
original posts with their own author and numbers, plus `repostedBy` and `repostedAt`.

One row per account, **free of charge**:

```json
{
  "type": "profile",
  "username": "zuck",
  "userId": "63055343223",
  "fullName": "Mark Zuckerberg",
  "biography": "Mostly superintelligence and MMA takes",
  "followerCount": 5777340,
  "isVerified": true,
  "isPrivate": false,
  "profilePicUrl": "https://scontent.cdninstagram.com/...",
  "profilePicUrlHd": "https://scontent.cdninstagram.com/...",
  "bioLinks": [],
  "url": "https://www.threads.com/@zuck",
  "inputUrl": "https://www.threads.com/@zuck",
  "scrapedAt": "2026-11-14T03:00:00.000Z"
}
```

**Find accounts by keyword** gives one row per account found, with the same fields as the profile
row plus the keyword that found it:

```json
{
  "type": "account",
  "username": "coffeebeanmy",
  "userId": "77604156987",
  "fullName": "The Coffee Bean & Tea Leaf MY",
  "biography": "The Coffee Bean & Tea Leaf (M) Sdn Bhd\n199701026472 (441970-H)",
  "followerCount": 109166,
  "isVerified": true,
  "isPrivate": false,
  "profilePicUrl": "https://scontent.cdninstagram.com/...",
  "profilePicUrlHd": "https://scontent.cdninstagram.com/...",
  "bioLinks": [],
  "url": "https://www.threads.com/@coffeebeanmy",
  "source": "accountSearch",
  "sourceValue": "coffee",
  "inputUrl": "https://www.threads.com/search?q=coffee&serp_type=default",
  "scrapedAt": "2026-11-14T06:00:00.000Z"
}
```

With **Include contacts from bio** on, profile and account rows also get `emailsFromBio` and
`phonesFromBio` taken from the bio text. An input that gives no data gets one free row with the
reason (all other fields `null`):

```json
{
  "type": "error",
  "inputUrl": "https://www.threads.com/@thisuserdoesnotexist_zz9x8q",
  "error": "Profile not found: the username is wrong, or the account was removed, renamed or is not shown to logged-out visitors."
}
```

A private profile gives its free profile row with `"isPrivate": true` and a free error row, because
Threads shows its posts only to approved followers.

### Input

| Field | Type | Description |
|---|---|---|
| `usernames` | string\[] | Usernames (`zuck`), `@zuck` or profile links (`https://www.threads.com/@zuck`), one per line. Each gives a free profile row and the latest posts. |
| `profileTabs` | string\[] | Profile tabs to read: `posts` (default, the account's own posts), `replies` (replies the account wrote, with the post it answered), `reposts` (posts it reposted). Each tab counts as its own source. |
| `postUrls` | string\[] | Post links, one per line. `threads.net` and `/t/` short links work too. Each gives the post with its view count, the author's own thread continuation and the replies under it. |
| `searchQueries` | string\[] | Keywords or hashtags to search public posts for. Each keyword counts as its own source. |
| `searchSort` | string | `top` (default): the posts Threads ranks first, then newest to oldest until your limit. `recent`: newest to oldest from the start. |
| `maxPostsPerSource` | integer | Posts taken from each profile tab or keyword (default 50, max 10,000). |
| `includeReplies` | boolean | Default `true`. For post URLs, also return the replies shown under the post. |
| `maxRepliesPerPost` | integer | Replies taken under each post URL (default 20, max 5,000). |
| `postedAfter` | string | Only posts published on or after this date (`2026-01-31`) or within a relative period (`30 days`). Profile feeds stop at the first older post (pinned posts excepted), search uses it as a date window. |
| `postedBefore` | string | Only posts published before this date (`2026-06-30`) or older than a relative period (`7 days`). |
| `accountSearchQueries` | string\[] | **Find accounts by keyword**: keywords such as a niche, a brand or a place (`coffee roaster`), one per line. Each gives up to about 100 accounts that Threads finds for it, one row per account. |
| `maxAccountsPerKeyword` | integer | Accounts taken for each keyword (default 50, max 100). |
| `onlyNew` | boolean | Default `false`. Skip posts and accounts this Actor already gave you in earlier runs with the same input. Profile feeds and search stop after a series of posts you already have. |
| `includeContactsFromBio` | boolean | Default `false`. Adds `emailsFromBio` and `phonesFromBio` from the bio text to profile and account rows. |
| `proxyConfiguration` | object | Defaults to Apify **datacenter proxy**, which is enough for Threads public pages. You can switch to residential or use your own proxies. |

Example:

```json
{
  "usernames": ["zuck", "mosseri"],
  "profileTabs": ["posts", "replies"],
  "postUrls": ["https://www.threads.com/@zuck/post/DfNR0zhEdWv"],
  "searchQueries": ["web scraping"],
  "searchSort": "recent",
  "maxPostsPerSource": 100,
  "maxRepliesPerPost": 50,
  "postedAfter": "90 days"
}
```

To build a list of accounts:

```json
{
  "accountSearchQueries": ["coffee roaster", "specialty coffee"],
  "maxAccountsPerKeyword": 100
}
```

### How to use it

1. Click **Try for free** or **Start** on this page.
2. Paste usernames, post links or keywords, or keywords to find accounts, and pick the tabs, the
   limits and the dates.
3. Run it. Posts, replies, accounts and profile rows land in the dataset, one row each. Export them
   as JSON, CSV or Excel, or pull them over the API.

To watch accounts or keywords for new posts, run it on an Apify **Schedule** with `onlyNew: true`:
each run charges only for the posts that appeared since the last one. There is no per-run start fee.
To call it from code, use the [Apify API](https://docs.apify.com/api/v2) or an official client. AI
agents can call it through the **Apify MCP server**: the description and the input fields above are
written to be read by an agent.

### Pricing

Pay-per-event, two events, nothing else:

| Event | Rate |
|---|---|
| `post-scraped` | **$4.50 per 1,000** ($0.0045 each), one per post or reply row |
| `account-scraped` | **$3 per 1,000** ($0.003 each), one per account row from Find accounts by keyword |
| Profile row | **free** |
| Row for an input that gave no data | **free** |
| Run start | **free, there is no start event** |

**What you get for $1:** about 220 post or reply rows, or about 330 account rows. Platform usage
(compute, proxy) is charged to us, not to you, so the per-row price is the whole bill. A typical
run, the 50 latest posts of one account, costs $0.225 and adds the free profile row. The 100
accounts Threads shows for one keyword cost $0.30. Rates are as of the last README update. The
Store page stays authoritative.

### Limits (honest)

- **Only what Threads shows to logged-out visitors.** Content visible only inside a logged-in
  account is out of reach, and so are private profiles.
- **Profiles:** in our tests (November 2026) the feed of a busy account went past 3,000 posts without
  reaching the end, and the feed of an account that started in July 2023 came back complete. A
  profile row is free even when the account has no posts.
- **Replies under a post:** Threads shows logged-out visitors part of the replies of a busy post. In
  our tests a post with 2,599 replies showed 828 of them, while posts with a few dozen replies showed
  all of them. `replyCount` on the post row always gives the full count from Threads.
- **Views** come only on rows of post URLs: Threads shows view counts to logged-out visitors on the
  post page, not in feeds or search.
- **Find accounts by keyword:** Threads shows a logged-out visitor up to about 100 accounts per
  keyword, in its own order, and the list can change a little between runs (in our tests coffee gave
  the same 97 accounts twice, brooklyn coffee gave 18 and then 17). In November 2026 broad keywords
  gave 78 to 98 accounts (real estate 98, coffee 97, nasa 82, música 78) and narrow ones fewer
  (brooklyn coffee 17, web scraping 11). Followers, bio links and the private
  flag come from each account's own page, one more request per account. If Threads does not show
  that page, the row keeps the name, username and bio from the search, with `followerCount` and
  `bioLinks` set to `null`. An account that two of your keywords find is saved and charged once.
- **Search:** a logged-out visitor sees about 10 to 20 posts per search request. The Actor goes deeper
  with date windows, from the newest matching posts back in time. Threads rounds these windows to
  whole hours, so for a busy keyword each hour of history gives its newest 10 to 15 posts and a large
  limit covers a longer period rather than every single post. A quiet keyword is read continuously.
  Each window spans up to a month. If a month has no matching posts, the Actor looks at the month
  before it and stops after four empty months in a row.
  Threads ranks search results itself, so some posts can be only loosely related to the keyword.
- **Media links expire.** Image and video URLs point to Threads' own media servers and stop working
  after a few days. Download the files you need soon after the run.
- **A profile that is not found and a profile that Threads does not show** look the same to a
  logged-out visitor: both give the free error row. The Actor checks twice from different addresses
  before it says so.
- If more than 5% of requests in a run fail, the run log says so loudly. A run in which every fetch
  failed is marked **failed**, not "succeeded with 0 items".

### Rate-limit etiquette (built in, with numbers)

- **One request every 0.6 seconds.** A feed page holds up to 25 threads, so one request brings 25 to
  45 posts with the author's own thread continuations. In our tests (November 2026, datacenter proxy)
  100 posts of a profile took about 9 seconds, 200 replies under one post about 19 seconds and 100
  search results about 20 seconds. Find accounts by keyword reads each account's own page for its
  followers, about 2 seconds per account: the full list of one keyword, 78 to 98 accounts, took 2 to
  4 minutes. If time runs short, the Actor stops about a minute before the run timeout, keeps every
  row it has saved and says so in the run status.
- On an HTTP `429` the Actor **waits 5 seconds** (then 10, 15, 20), switches to a fresh proxy session
  and retries, at most 4 times. Other transient errors back off for 2, 4, 6 and 8 seconds and retry
  the same way.
- If five requests in a row fail after all retries, the run stops instead of grinding through the
  rest of the input.

### FAQ

**Do I need a Threads or Instagram account, cookies or an API key?**
No. The Actor reads only what Threads shows publicly to any visitor, never signs in and does not
use anyone's credentials.

**How many posts can I get from one account?**
Up to 10,000 per profile tab. In our tests the feed of a busy account went past 3,000 posts without
reaching the end.

**Can I get replies?**
Yes, two ways. Paste a post link to get the replies under that post, each linked to what it answers.
Add the Replies tab to get the replies an account wrote, each with the post it answered.

**How many search results can I get?**
As many as your limit allows, going back in time from the newest matching posts. For a busy keyword
the Actor takes the newest posts of each hour, so 1,000 results cover roughly the last few days.

**Can I get view counts?**
Yes, for posts you paste by link. Threads shows views to logged-out visitors only on the post page.

**Can I find accounts by keyword?**
Yes. Put keywords in **Find accounts by keyword**. Each gives up to about 100 accounts that Threads
finds for it, with followers, bio and bio links, at $3 per 1,000 accounts. Add a place to the
keyword for local lists, for example `brooklyn coffee` rather than `coffee`.

**Can I run it on a schedule, from code or from an AI agent?**
Yes. Apify Schedules run it on any timetable, and with **Only new since last run** each run returns
only the posts that appeared since the last one. The Apify API and its official clients start it
from code, and the Apify MCP server lets AI agents call it.

**What does a typical run cost?**
The 50 latest posts of one account: $0.225, plus the free profile row. 1,000 posts: $4.50. The 100
accounts Threads shows for one keyword: $0.30.

**Does it use a browser?**
No. Requests go over plain HTTP, and posts are parsed straight from the data Threads embeds in its
pages.

**Does it give email addresses or phone numbers?**
Only when you turn on **Include contacts from bio**, and only what the account itself wrote in its
public bio. Nothing is looked up elsewhere.

**Where is my data stored?**
In your run's dataset on your Apify account, under your control. The Actor keeps no copy of
scraped data outside your run and sends nothing to any third party. The only thing it stores
between runs, and only when **Only new since last run** is on, is the list of post and account ids
it already gave you, in a key-value store on your own account.

### Legal

This is an **unofficial** scraper. It is not affiliated with, endorsed by, or connected to Meta or
Threads in any way. It reads only what Threads shows publicly to any visitor who is not logged in:
no login, no credentials, no captcha solving. Website terms of service are a contractual matter
between a website and its visitors, not criminal law. You are responsible for making sure that your
use of the collected data complies with the laws that apply to you and with the terms of Threads.

**Copyright.** Posts, images and videos belong to the people who published them. The Actor hands
you the public post data and links that Threads publishes and never downloads media files. How you
use it is your decision and your responsibility under the copyright rules that apply to you.

### Personal data

Threads accounts belong to people, often under their real names. Usernames, names, bios, profile
pictures, posts and replies can be personal data, and so can the account lists of **Find accounts
by keyword** and the emails and phone numbers that **Include contacts from bio** takes from a bio. That option is off by default: turn it on only when
you have a legal basis to process contact details. The Actor collects only the public fields listed
above and performs no enrichment. Scraped data lives only in your own Apify dataset and is not
retained by us outside your run. If the data you collect contains personal data under the laws of
your jurisdiction (for example the GDPR), you act as its controller: it is your responsibility to
have a legal basis for processing and to honor data-subject requests, including deletion.

### Rate this Actor

If this Actor saved you time, a short rating or review on its Store page helps other people find it.
Missing a field, or did something break? Open the **Issues** tab on this page and tell us.

### Need a custom scraper?

We can build a custom version of this Actor, for example with extra fields, other filters or another output format, or a new Actor for a site we do not cover yet. It runs on Apify like this one. Email actorforge.hq+orders@gmail.com with the site, the data you need and how often you need it.

### Other Actors

- [Reddit Data Scraper](https://apify.com/actorforgehq/reddit-data-scraper): subreddit feeds,
  posts with their first comments, keyword search and user history in one Actor.
- [Reddit Search Scraper](https://apify.com/actorforgehq/reddit-search-scraper): posts and
  comments matching keywords, across Reddit or inside one subreddit, with only-new mode.
- [YouTube Comments Scraper](https://apify.com/actorforgehq/youtube-comments-scraper): comments
  and replies of videos and Shorts, Top or Newest order, with likes and reply counts.
- [YouTube Channel Scraper](https://apify.com/actorforgehq/youtube-channel-scraper): videos,
  Shorts and live streams of channels and playlists, with a free channel row.
- [LinkedIn Company Scraper](https://apify.com/actorforgehq/linkedin-company-scraper): public
  LinkedIn company pages with website, industry, size and headquarters, no login.
- [LinkedIn Jobs Scraper](https://apify.com/actorforgehq/linkedin-jobs-scraper): public LinkedIn
  job listings by keyword and location with full descriptions, no login.

### Changelog

- **0.1.5** (14 November 2026): **Find accounts by keyword**, up to about 100 accounts per keyword
  with followers, bio and bio links, $3 per 1,000 accounts. The free profile row and the post price
  are unchanged.
- **0.1** (November 2026): first release. Profile tabs (Threads, Replies, Reposts), post links with
  replies and views, keyword search with Top and Newest order and date windows, free profile and
  error rows, only-new mode.

# Actor input Schema

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

One per line: a username (zuck), @zuck, or a profile link such as https://www.threads.com/@zuck. You get a free profile row and the latest posts of each account.

## `profileTabs` (type: `array`):

Which tabs of each profile to read: Threads (the account's own posts), Replies (replies the account wrote, each with the post it answered) and Reposts (posts the account reposted). Each tab counts as its own source for Max posts per source.

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

One Threads post link per line, for example https://www.threads.com/@zuck/post/DfNR0zhEdWv (threads.net and /t/ short links work too). You get the post with its view count, the author's own thread continuation and the replies shown under it.

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

Keywords or hashtags to search public Threads posts for, one per line. Each keyword counts as its own source for Max posts per source.

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

Top starts with the posts Threads ranks first for the keyword, then goes on from the newest matching posts to older ones until your limit. Newest first skips the ranked posts and walks from the newest matching posts back in time.

## `maxPostsPerSource` (type: `integer`):

How many posts to take from each profile tab or search keyword. Profiles go back as far as Threads shows logged-out visitors, which is the full public history of an account in our tests.

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

For post URLs, also return the replies shown under each post, each linked to the post or reply it answers. Every reply row is charged like a post.

## `maxRepliesPerPost` (type: `integer`):

How many replies to take under each post URL. Threads shows logged-out visitors part of the replies of a busy post, so a large post can return fewer than you ask for.

## `postedAfter` (type: `string`):

Only posts published on or after this date, for example 2026-01-31, or a relative period such as 30 days. Profile feeds stop at the first older post (pinned posts excepted), and search uses it as a date window.

## `postedBefore` (type: `string`):

Only posts published before this date, for example 2026-06-30, or a relative period such as 7 days (meaning older than a week). Search uses it as a date window, profile feeds skip newer posts.

## `accountSearchQueries` (type: `array`):

Keywords to find Threads accounts for, one per line, for example a niche, a brand or a place (coffee roaster, brooklyn bakery). You get the accounts Threads finds for each keyword, up to about 100, each as one account row with followers, bio and bio links. Each account row is charged.

## `maxAccountsPerKeyword` (type: `integer`):

How many accounts to take for each keyword in Find accounts by keyword. Threads shows logged-out visitors up to about 100 accounts per keyword, and fewer for narrow keywords.

## `onlyNew` (type: `boolean`):

Skip posts and accounts this Actor already gave you in earlier runs with the same input. Profile feeds and newest-first search stop after a series of posts you already have.

## `includeContactsFromBio` (type: `boolean`):

Also pull email addresses and phone numbers written in the bio into separate fields of profile and account rows. Off by default: these are personal data, so turn it on only when you have a legal basis to process them.

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

Apify datacenter proxy is the default and is enough for Threads public pages. You can switch to residential or use your own proxies here.

## Actor input object example

```json
{
  "usernames": [
    "zuck",
    "https://www.threads.com/@mosseri"
  ],
  "profileTabs": [
    "posts"
  ],
  "postUrls": [
    "https://www.threads.com/@zuck/post/DfNR0zhEdWv"
  ],
  "searchQueries": [
    "web scraping",
    "#coffee"
  ],
  "searchSort": "top",
  "maxPostsPerSource": 50,
  "includeReplies": true,
  "maxRepliesPerPost": 20,
  "accountSearchQueries": [
    "coffee roaster",
    "nasa"
  ],
  "maxAccountsPerKeyword": 50,
  "onlyNew": false,
  "includeContactsFromBio": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Posts and replies with author, text, date, likes, replies, reposts and views, accounts found by keyword, plus the free profile rows.

# 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"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("actorforgehq/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"],
    "proxyConfiguration": { "useApifyProxy": True },
}

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

```

## MCP server setup

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