# Threads Search & Profile Scraper (`santamaria-automations/threads-search-scraper`) Actor

Search Threads.net by keyword or scrape any public profile's posts. Returns post text, author, like count, reply count, repost count, and timestamp. No login required. Pay-per-result: $0.50/1,000 posts.

- **URL**: https://apify.com/santamaria-automations/threads-search-scraper.md
- **Developed by:** [Ale](https://apify.com/santamaria-automations) (community)
- **Categories:** Social media, Developer tools
- **Stats:** 3 total users, 1 monthly users, 74.2% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Search & Profile Scraper

Search [Threads.net](https://www.threads.net/) by keyword or scrape any public profile's posts — no account required. Extract post text, author details, like count, reply count, repost count, and timestamps in bulk.

### Features

- **Keyword search** — find posts matching any topic across all of Threads
- **Profile scraping** — extract recent posts from any public Threads account
- **No login required** — uses Threads' publicly accessible server-rendered pages
- **Engagement metrics** — like count, reply count, repost count, and quote count
- **Deduplication** — the same post is never returned twice across queries
- **Challenge detection** — skips bot-protection pages and logs a warning
- **Pay-per-result** — only pay for posts you receive

### Use with AI Agents (MCP)

Connect this actor to any MCP-compatible AI client — Claude Desktop, Claude.ai, Cursor, VS Code, or custom agents.

**Apify MCP server URL:**

````

https://mcp.apify.com?tools=nanoscrape/threads-search-scraper

````

**Example prompt once connected:**

> "Use `threads-search-scraper` to search Threads for 'sustainable fashion' and return the 20 most recent posts with author names and like counts."

Clients that support dynamic tool discovery (Claude.ai, VS Code) will receive the full input schema automatically via `add-actor`.

### Data Extracted

| Field | Example |
|-------|---------|
| `post_id` | `"3368741234567890123"` |
| `text` | `"Just launched our new AI feature!"` |
| `author_username` | `"zuck"` |
| `author_name` | `"Mark Zuckerberg"` |
| `author_verified` | `true` |
| `like_count` | `42500` |
| `reply_count` | `1230` |
| `repost_count` | `870` |
| `quote_count` | `140` |
| `posted_at` | `"2026-05-01T14:30:00Z"` |
| `post_url` | `"https://www.threads.net/@zuck/post/C6abc123xyz"` |
| `has_media` | `false` |
| `search_query` | `"AI art"` |
| `source_platform` | `"threads.net"` |
| `scraped_at` | `"2026-05-04T11:00:00Z"` |

### Pricing

Pay-per-result pricing. You only pay for posts you receive.

| Event | Price | Description |
|-------|-------|-------------|
| Actor start | $0.25 | One-time container startup fee |
| Post scraped | $0.50 / 1,000 | Each Threads post returned |

**Examples:**
- 100 posts = **$0.30** total ($0.25 start + $0.05 results)
- 1,000 posts = **$0.75** total
- 5,000 posts = **$2.75** total

No monthly fees. No minimum spend.

### Input

| Field | Type | Description | Default |
|-------|------|-------------|---------|
| `searchQueries` | string[] | Keywords to search on Threads.net | — |
| `profileUrls` | string[] | Profile URLs or usernames to scrape | — |
| `maxPostsPerQuery` | integer | Max posts per search or profile | `50` |
| `maxResults` | integer | Hard cap on total posts (0 = unlimited) | `0` |
| `proxyConfiguration` | object | Apify proxy settings | Auto |

### Usage Examples

#### Search by keyword

```json
{
  "searchQueries": ["AI art", "machine learning"],
  "maxPostsPerQuery": 50
}
````

#### Scrape a public profile

```json
{
  "profileUrls": ["@zuck", "https://www.threads.net/@natgeo"],
  "maxPostsPerQuery": 30
}
```

#### Combine search and profiles with result cap

```json
{
  "searchQueries": ["climate change"],
  "profileUrls": ["bbcnews", "nytimes"],
  "maxPostsPerQuery": 50,
  "maxResults": 200
}
```

### Notes

- Threads uses server-side rendering: the first page of results is available without executing JavaScript.
- Threads does not expose public paginated API endpoints without authentication, so each search or profile fetch returns one batch of SSR posts.
- If a profile requires login to view, the actor logs a warning and skips it.
- For monitoring social topics over time, run the actor on a schedule via Apify's scheduler.

# Actor input Schema

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

Keywords to search on Threads.net (e.g. 'AI art', 'travel photography'). Each runs as a separate search. Results are deduplicated across all queries.

## `profileUrls` (type: `array`):

Threads.net profile URLs or bare usernames to scrape posts from. Accepts 'https://www.threads.net/@username', '@username', or 'username'.

## `maxPostsPerQuery` (type: `integer`):

Maximum number of posts to return per search keyword or profile. Threads returns one page of SSR results per request.

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

Hard cap on total posts across all queries and profiles. Set to 0 for unlimited.

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

Optional Apify proxy. Threads.net public pages are reachable without proxy; enable only at high volume.

## Actor input object example

```json
{
  "searchQueries": [
    "AI art"
  ],
  "maxPostsPerQuery": 50,
  "maxResults": 0,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `defaultDataset` (type: `string`):

Posts extracted from Threads.net search results or public profiles, with text, author info, and engagement metrics.

# 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 = {
    "searchQueries": [
        "AI art"
    ],
    "maxPostsPerQuery": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("santamaria-automations/threads-search-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 = {
    "searchQueries": ["AI art"],
    "maxPostsPerQuery": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("santamaria-automations/threads-search-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchQueries": [
    "AI art"
  ],
  "maxPostsPerQuery": 50
}' |
apify call santamaria-automations/threads-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=santamaria-automations/threads-search-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Threads Search & Profile Scraper",
        "description": "Search Threads.net by keyword or scrape any public profile's posts. Returns post text, author, like count, reply count, repost count, and timestamp. No login required. Pay-per-result: $0.50/1,000 posts.",
        "version": "1.0",
        "x-build-id": "q4RUo7Tm0xOXXxPPd"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/santamaria-automations~threads-search-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-santamaria-automations-threads-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/santamaria-automations~threads-search-scraper/runs": {
            "post": {
                "operationId": "runs-sync-santamaria-automations-threads-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/santamaria-automations~threads-search-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-santamaria-automations-threads-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "searchQueries": {
                        "title": "Search Keywords",
                        "type": "array",
                        "description": "Keywords to search on Threads.net (e.g. 'AI art', 'travel photography'). Each runs as a separate search. Results are deduplicated across all queries.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "profileUrls": {
                        "title": "Profile URLs or Usernames",
                        "type": "array",
                        "description": "Threads.net profile URLs or bare usernames to scrape posts from. Accepts 'https://www.threads.net/@username', '@username', or 'username'.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxPostsPerQuery": {
                        "title": "Max Posts per Query / Profile",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum number of posts to return per search keyword or profile. Threads returns one page of SSR results per request.",
                        "default": 50
                    },
                    "maxResults": {
                        "title": "Max Total Results",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Hard cap on total posts across all queries and profiles. Set to 0 for unlimited.",
                        "default": 0
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Optional Apify proxy. Threads.net public pages are reachable without proxy; enable only at high volume.",
                        "default": {
                            "useApifyProxy": false
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
