# Threads Com Scraper - Posts, Likes & Replies by Profile (`blackfalcondata/threads-com-scraper`) Actor

Scrape threads.com — records. Every record carries publish date, like and view counts disabled and replies the source publishes. Replies is included where the source lists it. Structured rows, ready to import into a CRM or a spreadsheet.

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

## Pricing

from $0.06 / 1,000 results

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

### What does Threads Com Scraper do?

Threads Com Scraper extracts public data from [threads.com](https://threads.com) as structured JSON. Read a profile's posts, its replies or its reposts, or get one profile row with followers, bio and links. Paste single post URLs to get the post and its replies, search by keyword or hashtag, or find accounts by keyword. Each post carries its text (plain, HTML and Markdown), publish date, likes, replies, reposts and quotes. You also get image and video links, link previews, hashtags, mentions and links. Narrow the posts by date, minimum likes or replies, or keywords. Incremental mode returns only new posts on recurring runs.

**New to Apify?** [Sign up free](https://console.apify.com/sign-up?fpr=1h3gvi) and use the included $5 monthly platform credit to test this actor.

### Key features

- **👀 Views and engagement:** `likeCount` and `replyCount` show how far each record reached and how people reacted.
- **🎞️ Media and attachments:** `mediaType`, `videoUrls` and `links` on each record, so you know what was attached without opening it.
- **#️⃣ Hashtags and mentions:** `text` and `mentions` on every record, so you can filter by topic without parsing the message.
- **🖼️ Images:** `imageUrls` with every image URL, not just the thumbnail.
- **🗓️ Posting dates:** `publishedAt` tell you how fresh each record is.
- **🔍 Profiles by handle:** put one or more threads.com handles (`nasa`, `@zuck`) in `query` to collect their public posts; `includeKeywords` and `excludeKeywords` then keep or drop posts by the words in their text.
- **🔗 Paste-mode:** paste threads.com URLs into `startUrls` to scrape exactly the pages you picked in the browser.
- **📋 Detail enrichment:** toggle two-stage scraping: first collect listings, then enrich each with full description + detail-page-only fields. Off by default to keep runs fast; flip on when you need the deep payload.
- **♻️ Incremental mode:** recurring runs emit and charge only for listings that are new or whose tracked content changed. First run builds the baseline; subsequent runs emit only NEW / UPDATED / REAPPEARED records (UNCHANGED + EXPIRED opt-in). Saves 80–95% on daily monitoring.
- **🔔 Notifications:** Telegram, Slack, Discord, WhatsApp Cloud API, and generic webhook out of the box. Pair with incremental for daily new-listing alerts without pipeline glue.
- **📦 Compact mode:** AI-agent and MCP-friendly payloads with core fields only.

### What data can you extract from threads.com?

Each result includes Core post fields (`recordType`, `id`, `shortcode`, `postUrl`, `portalUrl`, `username`, `authorId`, and `text`, and more) and detail fields when enrichment is enabled (`detailFetched`). In standard mode, all fields are always present — unavailable data points are returned as `null`, never omitted. In compact mode, only core fields are returned.

Detail enrichment is on by default and fetches each record's detail page — extra fields the search results omit.

### Input

Pick your targets: profile handles in `query` (read with `mode`: posts, replies, reposts or profile details), `postUrls` for single posts with their replies, `searchQueries` for keyword search (`searchSortType` top or recent), `hashtags`, `profileSearchQueries` to find accounts by keyword (up to 10 per keyword), or any mix of these pasted as `startUrls`. `expandQueries` widens each keyword to the other tab, its hashtag and its singular/plural form. `maxResults` caps the total. `postedAfter`, `postedBefore`, `minLikes` and `minReplies` narrow what is delivered. Logged-out Threads shows one result page per keyword or hashtag (about 15–20 posts), so a search delivers at most that many posts.

Key parameters:

- **`query`** — Threads handle or profile URL — e.g. `nasa`, `@nasa` or `https://www.threads.com/@nasa`. Paste a JSON array for several profiles, e.g. \["nasa","zuck"]. Used when no Start URLs, Post URLs, keywords or hashtags are given.
- **`mode`** — What to read from each profile: `posts` = the profile's own posts (default), `replies` = the replies it wrote, `reposts` = posts it reposted (each row is the reposted post, with `repostedBy`), `profile` = one profile row per account (followers, bio, links) instead of posts. (default: `"posts"`)
- **`startUrls`** — Paste Threads URLs: profile URLs (`https://www.threads.com/@nasa`, read with the chosen Profile Mode), post URLs (`https://www.threads.com/@nasa/post/DfQYRbLEQA9`, the post plus its replies) search URLs (`https://www.threads.com/search?q=space`, `&serp_type=recent` for the Recent tab, `&serp_type=tags` for a hashtag, `&serp_type=accounts` for matching profiles) or tag URLs (`https://www.threads.com/tag/coffee`). Each URL becomes its own task; results are merged and deduped by post ID. When any URL, keyword, hashtag or account search is given, the profile field is not used (unsupported URLs are skipped, and if none is supported the run stops with an input error). (default: `[]`)
- **`postUrls`** — Specific posts to scrape, e.g. `https://www.threads.com/@nasa/post/DfQYRbLEQA9`. Each delivers the post itself, plus its replies when Include Replies is on. (default: `[]`)
- **`includeReplies`** — For post URLs: also deliver the replies under the post (each reply row carries `replyToPostCode`). (default: `true`)
- **`searchQueries`** — Keywords to search Threads for, e.g. `climate change`. Logged-out Threads shows one result page per search (about 15–20 posts), so each keyword delivers at most that many posts. (default: `[]`)
- **`hashtags`** — Hashtags to read, with or without `#`, e.g. `coffee`. Like keyword search, each hashtag delivers one result page (about 15–20 posts). (default: `[]`)
- **`searchSortType`** — For keyword search: `top` = Threads' Top tab, `recent` = the Recent tab (newest first). (default: `"top"`)
- **`postedAfter`** — Only deliver posts published after this date: an absolute date (`2026-10-01`) or a window back from now (`7 days`, `24 hours`, `2 weeks`). On a profile feed the run also stops reading once a whole page is older.
- **`minLikes`** — Only deliver posts with at least this many likes (0 = no filter). (default: `0`)
- **`maxResults`** — Maximum total posts across all profiles (0 = unlimited). (default: `100`)
- ...and 29 more parameters

### Input examples

**Basic search** — Keyword-driven search with a result cap.

→ Full payload per result — all standard fields populated where the source provides them.

```json
{
  "mode": "posts",
  "query": "nasa",
  "maxResults": 50
}
```

**Incremental tracking** — Only emit posts that changed since the previous run with this `stateKey`.

→ First run builds the baseline state. Subsequent runs emit only records that are new or whose tracked content changed. Set `emitUnchanged: true` to include unchanged records as well.

```json
{
  "query": "nasa",
  "maxResults": 200,
  "incrementalMode": true,
  "stateKey": "nasa-tracker"
}
```

**Compact output for AI agents** — Return only core fields for AI-agent and MCP workflows.

→ Small payload with the most important fields — ideal for piping into LLMs without token overhead.

```json
{
  "query": "nasa",
  "maxResults": 50,
  "compact": true
}
```

### Output

Each run produces a dataset of structured post records. Results can be downloaded as JSON, CSV, or Excel from the Dataset tab in Apify Console.

### Example post record

```json
{
  "recordType": "post",
  "id": "4021821217765916733",
  "shortcode": "DfQYRbLEQA9",
  "postUrl": "https://www.threads.com/@nasa/post/DfQYRbLEQA9",
  "portalUrl": "https://www.threads.com/@nasa/post/DfQYRbLEQA9",
  "username": "nasa",
  "authorId": "28829152388",
  "text": "NASA’s Hubble Space Telescope just revealed a mystery in our cosmic neighborhood!\n\nResearchers using Hubble studied 37 nearby dwarf galaxies — small galaxies containing a few thousand to hundreds of m...",
  "publishedAt": "2026-11-02T22:27:51.000Z",
  "likeCount": 1598,
  "replyCount": 34,
  "repostCount": 88,
  "quoteCount": 5,
  "isReply": false,
  "imageUrls": [
    "https://scontent-lga3-3.cdninstagram.com/v/t51.82787-15/876139198_18127417390960389_4935012895540815986_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=1&ig_cache_key=NDAyMTgyMTIxNzc2NTkxNjczMw%3D%3D.3-ccb7-5&ccb=7..."
  ],
  "sourceUrl": "https://www.threads.com/@nasa",
  "observedAt": "2026-11-03T15:49:35.027Z",
  "authorFullName": "NASA",
  "authorIsVerified": true,
  "authorProfilePicUrl": "https://scontent-lga3-3.cdninstagram.com/v/t51.82787-19/669747085_18089786557960389_922072622069351626_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ig_cache_key=GI2H6yfFkNmlkERAAMqEjhcq3MsMbmNDAQAB2402400...",
  "authorFollowerCount": 12786319,
  "authorBiography": "Making the seemingly impossible, possible. ✨",
  "reshareCount": 14,
  "likeAndViewCountsDisabled": false,
  "isQuote": false,
  "isRepost": false,
  "threadPosition": 0,
  "mediaType": "image",
  "mediaCount": 1,
  "topicTag": "Space Threads",
  "isEdited": false,
  "listingId": "65891e0699d1aaae6b3109d32009d3124a2631ba6a8c0a8038c33f3716e443c1",
  "searchQuery": "nasa",
  "contentQuality": "full",
  "detailFetched": true,
  "scrapedAt": "2026-11-03T15:49:35.027Z",
  "source": "threads.com",
  "contentHash": "358c5fda322678752e749269204f6c80864ebc578aef1867799ec04db134451c"
}
```

### Incremental fields

When incremental mode is on, each record also carries:

- `changeType` — one of `NEW`, `UPDATED`, `UNCHANGED`, `REAPPEARED`, `EXPIRED`. Default output covers `NEW` / `UPDATED` / `REAPPEARED`; set `emitUnchanged: true` or `emitExpired: true` to opt into the others.
- `isRepost`, `repostOfId`, `repostDetectedAt` — populated when a new listing matches the tracked content of a previously expired one. Set `skipReposts: true` to drop detected reposts from the output.

### How to scrape threads.com

1. Go to [Threads Com Scraper](https://apify.com/blackfalcondata/threads-com-scraper?fpr=1h3gvi) in Apify Console.
2. Enter profile handles and pick a mode (posts, replies, reposts or profile details), or paste post URLs, keywords or hashtags.
3. Optionally set a date window, minimum likes or replies, and Max Posts.
4. Click Start and download the results as JSON, CSV or Excel, or read them through the API.

### Use cases

- Extract post data from threads.com for market research and competitive analysis.
- Monitor new and changed posts on scheduled runs without processing the full dataset every time.
- Feed structured data into AI agents, MCP tools, and automated pipelines using compact mode.
- Export clean, structured data to dashboards, spreadsheets, or data warehouses.

### How much does it cost to scrape threads.com?

Pricing for Threads Com Scraper has not been finalized yet. It will be published here before the actor becomes publicly available.

You only use your normal Apify platform resources when you run the actor from your own account.

### FAQ

#### How many results can I get from threads.com?

The number of results depends on the search query and available posts on threads.com. Use the `maxResults` parameter to control how many results are returned per run.

#### Does Threads Com Scraper support recurring monitoring?

Yes. Enable incremental mode to only receive new or changed posts on subsequent runs. This is ideal for scheduled monitoring where you want to track changes over time without re-processing the full dataset.

#### Can I integrate Threads Com Scraper with other apps?

Yes. Threads Com Scraper works with Apify's [integrations](https://apify.com/integrations?fpr=1h3gvi) to connect with tools like Zapier, Make, Google Sheets, Slack, and more. You can also use webhooks to trigger actions when a run completes.

#### Can I use Threads Com Scraper with the Apify API?

Yes. You can start runs, manage inputs, and retrieve results programmatically through the [Apify API](https://docs.apify.com/api/v2). Client libraries are available for JavaScript, Python, and other languages.

#### Can I use Threads Com Scraper through an MCP Server?

Yes. Apify provides an [MCP Server](https://apify.com/apify/actors-mcp-server?fpr=1h3gvi) that lets AI assistants and agents call this actor directly. Use compact mode, a single `descriptionFormat`, and `excludeEmptyFields` to keep payloads manageable for LLM context windows.

#### Is it legal to scrape threads.com?

This actor extracts publicly available data from threads.com. Web scraping of public information is generally considered legal, but you should always review the target site's terms of service and ensure your use case complies with applicable laws and regulations, including GDPR where relevant.

#### Your feedback

If you have questions, need a feature, or found a bug, please [open an issue](https://apify.com/blackfalcondata/threads-com-scraper/issues?fpr=1h3gvi) on the actor's page in Apify Console. Your feedback helps us improve.

### You might also like

- [Bluesky Scraper - Posts, Search and Profile Feeds](https://apify.com/blackfalcondata/bsky-app-scraper?fpr=1h3gvi) — Scrape Bluesky posts by keyword search, @handle or profile URL. Each post includes its full text.
- [Douyin Hot Board Scraper — Trending Topics & Heat](https://apify.com/blackfalcondata/douyin-com-scraper?fpr=1h3gvi) — Scrape Douyin — the live hot board (抖音热榜) and rising topics as structured JSON: rank, heat score,.
- [Facebook Ad Library Scraper \[💰$0.05/1k\] — Ads & EU Reach](https://apify.com/blackfalcondata/facebook-ads-library-scraper?fpr=1h3gvi) — Scrape facebook.com/ads/library by keyword or advertiser: ad copy, image and video URLs, landing.
- [Facebook Group Scraper — Posts, Comments & Engagement](https://apify.com/blackfalcondata/facebook-group-post-scraper?fpr=1h3gvi) — Scrape facebook.com — post text & timestamps · reaction/comment/share counts · media & optional.
- [Loom Video Scraper — Transcripts & Metadata](https://apify.com/blackfalcondata/loom-com-scraper?fpr=1h3gvi) — Scrape Loom videos from share or embed URLs or from 32-character video IDs. Every row carries the.
- [Maigret Username OSINT Scraper — cross-site handle search](https://apify.com/blackfalcondata/maigret-username-osint-scraper?fpr=1h3gvi) — Find where a username or handle exists across hundreds of social media networks and websites. Every.
- [Meta Ads Library Scraper \[💰$0.05/1k\]](https://apify.com/blackfalcondata/meta-ads-library-scraper?fpr=1h3gvi) — Scrape Meta's Ad Library across Facebook, Instagram, WhatsApp, Threads, Messenger and Audience.
- [Pexels Scraper — Photos, Videos & Engagement Data](https://apify.com/blackfalcondata/pexels-scraper?fpr=1h3gvi) — This Pexels scraper extracts photos and videos by search, curated feed, photo ID, user, collection.

### Getting started with Apify

New to Apify? [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=1h3gvi) — no credit card required.

1. Sign up — $5 platform credit included
2. Open this actor and configure your input
3. Click **Start** — export results as JSON, CSV, or Excel

Need more later? [See Apify pricing](https://apify.com/pricing?fpr=1h3gvi).

### Disclaimer

This actor accesses only publicly available data on threads.com. You are responsible for how you use the extracted data — in particular any personal information such as names, phone numbers, or email addresses — and for complying with Threads Com's terms of use, applicable data-protection law (including the GDPR where it applies), and the anti-spam rules of your jurisdiction.

This actor is an independent tool and is not affiliated with, endorsed by, or sponsored by Threads Com or any of its subsidiaries. All trademarks mentioned are the property of their respective owners.

### Search keywords

threads scraper, threads api, apify threads, threads data extraction, threads com scraper, threads com api, apify threads com, threads com data extraction, threads.com scraper, threads.com data, threads.com api, social media scraper, profile data.

# Changelog

This Actor's version history is a separate document: https://apify.com/blackfalcondata/threads-com-scraper/changelog.md

# Actor input Schema

## `query` (type: `string`):

Threads handle or profile URL — e.g. `nasa`, `@nasa` or `https://www.threads.com/@nasa`. Paste a JSON array for several profiles, e.g. \["nasa","zuck"]. Used when no Start URLs, Post URLs, keywords or hashtags are given.

## `maxResults` (type: `integer`):

Maximum total posts across all profiles (0 = unlimited).

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

Paste Threads URLs: profile URLs (`https://www.threads.com/@nasa`, read with the chosen Profile Mode), post URLs (`https://www.threads.com/@nasa/post/DfQYRbLEQA9`, the post plus its replies) search URLs (`https://www.threads.com/search?q=space`, `&serp_type=recent` for the Recent tab, `&serp_type=tags` for a hashtag, `&serp_type=accounts` for matching profiles) or tag URLs (`https://www.threads.com/tag/coffee`). Each URL becomes its own task; results are merged and deduped by post ID. When any URL, keyword, hashtag or account search is given, the profile field is not used (unsupported URLs are skipped, and if none is supported the run stops with an input error).

## `mode` (type: `string`):

What to read from each profile: `posts` = the profile's own posts (default), `replies` = the replies it wrote, `reposts` = posts it reposted (each row is the reposted post, with `repostedBy`), `profile` = one profile row per account (followers, bio, links) instead of posts.

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

Specific posts to scrape, e.g. `https://www.threads.com/@nasa/post/DfQYRbLEQA9`. Each delivers the post itself, plus its replies when Include Replies is on.

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

For post URLs: also deliver the replies under the post (each reply row carries `replyToPostCode`).

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

Keywords to search Threads for, e.g. `climate change`. Logged-out Threads shows one result page per search (about 15–20 posts), so each keyword delivers at most that many posts.

## `expandQueries` (type: `boolean`):

Also search each keyword on the other tab (Top and Recent), as a hashtag (spaces removed, e.g. `coffee shop` → #coffeeshop) and in its singular/plural form (`coffee shops`). Reaches more posts per keyword; duplicates are delivered once. Off by default.

## `profileSearchQueries` (type: `array`):

Keywords to discover Threads accounts, e.g. `coffee roaster`. Each keyword delivers up to 10 matching accounts (the most Threads shows logged-out) as profile rows with username, name, profile link, picture and verification.

## `hashtags` (type: `array`):

Hashtags to read, with or without `#`, e.g. `coffee`. Like keyword search, each hashtag delivers one result page (about 15–20 posts).

## `searchSortType` (type: `string`):

For keyword search: `top` = Threads' Top tab, `recent` = the Recent tab (newest first).

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

Only deliver posts published after this date: an absolute date (`2026-10-01`) or a window back from now (`7 days`, `24 hours`, `2 weeks`). On a profile feed the run also stops reading once a whole page is older.

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

Only deliver posts published before this date (`2026-10-31`) or window (`30 days`).

## `minLikes` (type: `integer`):

Only deliver posts with at least this many likes (0 = no filter).

## `minReplies` (type: `integer`):

Only deliver posts with at least this many replies (0 = no filter).

## `includeDetails` (type: `boolean`):

Also fetch the profile record so each post carries author follower count and biography.

## `textMaxLength` (type: `integer`):

Truncate post text to N characters. 0 = no truncation.

## `compact` (type: `boolean`):

Core fields only (for AI-agent/MCP workflows).

## `excludeEmptyFields` (type: `boolean`):

Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards.

## `incrementalMode` (type: `boolean`):

Compare against previous run state. stateKey is optional — defaults to a value derived from the profiles requested so different profile sets never share state.

## `stateKey` (type: `string`):

Optional. Stable identifier for the tracked profile universe. Leave empty to auto-generate from the requested profiles.

## `includeKeywords` (type: `array`):

Keep only posts whose text contains at least one of these words or phrases (not case-sensitive). Leave empty to keep all posts. Posts that are filtered out are not returned, not charged and do not count toward Max Posts.

## `excludeKeywords` (type: `array`):

Skip posts whose text contains any of these words or phrases (not case-sensitive). Leave empty to skip nothing. Skipped posts are not returned, not charged and do not count toward Max Posts.

## `skipReposts` (type: `boolean`):

When incremental, skip posts whose content matches a post that disappeared in a prior run (cross-run duplicate detection).

## `emitUnchanged` (type: `boolean`):

When incremental mode is on, also emit posts whose content has not changed since the last run.

## `emitExpired` (type: `boolean`):

When incremental mode is on, also emit posts that were seen before but are no longer found.

## `notifyOnlyChanges` (type: `boolean`):

When Incremental Mode is on, only send notifications for NEW and UPDATED posts. Has no effect outside incremental mode.

## `notificationLimit` (type: `integer`):

Maximum number of posts included in each notification message (1–20).

## `telegramToken` (type: `string`):

Telegram bot token (from @BotFather). Required for Telegram notifications.

## `telegramChatId` (type: `string`):

Telegram chat or channel ID (e.g. "-100123456789"). Required when telegramToken is set.

## `discordWebhookUrl` (type: `string`):

Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook.

## `slackWebhookUrl` (type: `string`):

Slack incoming webhook URL. api.slack.com/messaging/webhooks.

## `whatsappPhoneNumberId` (type: `string`):

Your WhatsApp Business phone-number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set.

## `whatsappAccessToken` (type: `string`):

WhatsApp Cloud API permanent access token (System User token from Meta Business). Recipient must have messaged the business number within the last 24h (service-conversation window — free since Nov 2024).

## `whatsappTo` (type: `string`):

Recipient phone in E.164 format without + (e.g. "436641234567"). Recipient must have messaged your business number within last 24h.

## `webhookUrl` (type: `string`):

Receives a JSON POST with {metadata, items} after each run. Universal escape hatch for n8n / Make / Zapier / custom backends.

## `webhookHeaders` (type: `object`):

Optional JSON object of custom headers (e.g. {"Authorization":"Bearer ..."}).

## `appConnector` (type: `string`):

Optional. Pick a connected app under Settings → API & Integrations to receive your results. Best-effort across MCP connectors as Apify expands its catalog.

## `mcpIssueTeam` (type: `string`):

Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one.

## `descriptionFormat` (type: `string`):

Which text variants each post carries. `all` keeps `text`, `textHtml` and `textMarkdown`; `text` keeps only `text`; `html` keeps `text` and `textHtml`; `markdown` keeps `text` and `textMarkdown`.

## Actor input object example

```json
{
  "query": "nasa",
  "maxResults": 100,
  "startUrls": [],
  "mode": "posts",
  "postUrls": [],
  "includeReplies": true,
  "searchQueries": [],
  "expandQueries": false,
  "profileSearchQueries": [],
  "hashtags": [],
  "searchSortType": "top",
  "minLikes": 0,
  "minReplies": 0,
  "includeDetails": true,
  "textMaxLength": 0,
  "compact": false,
  "excludeEmptyFields": false,
  "incrementalMode": false,
  "includeKeywords": [],
  "excludeKeywords": [],
  "skipReposts": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "notifyOnlyChanges": false,
  "notificationLimit": 5,
  "descriptionFormat": "all"
}
```

# 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 = {
    "query": "nasa",
    "maxResults": 100,
    "excludeEmptyFields": false,
    "includeKeywords": [],
    "excludeKeywords": [],
    "descriptionFormat": "all"
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/threads-com-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 = {
    "query": "nasa",
    "maxResults": 100,
    "excludeEmptyFields": False,
    "includeKeywords": [],
    "excludeKeywords": [],
    "descriptionFormat": "all",
}

# Run the Actor and wait for it to finish
run = client.actor("blackfalcondata/threads-com-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 '{
  "query": "nasa",
  "maxResults": 100,
  "excludeEmptyFields": false,
  "includeKeywords": [],
  "excludeKeywords": [],
  "descriptionFormat": "all"
}' |
apify call blackfalcondata/threads-com-scraper --silent --output-dataset

```

## MCP server setup

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