# Threads Search Scraper (`easyapi/threads-search-scraper`) Actor

Search public Threads posts by keyword or hashtag. Filter by top/recent sort and optional date range. Export text, engagement, and media in structured JSON.

- **URL**: https://apify.com/easyapi/threads-search-scraper.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Categories:** Social media, Integrations, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

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

## 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 Search Scraper

Search public Meta Threads posts by keyword or hashtag. Sort by top or recent, optionally filter by date, and export post text, engagement metrics, and media.

### ✨ Key Features

- 🔎 Keyword / hashtag search across public Threads posts
- 🔥 Sort by **Top** or **Recent**
- 📅 Optional **posted after / before** date filters
- 💬 Post text, hashtags, mentions, and links
- 📊 Engagement: likes, replies, reposts, quotes, shares, views
- 🖼️ Media URLs when available
- 📋 Structured JSON output, streamed while the run is in progress

### 💪 Why Choose This Actor?

- **Focused**: Search mode only
- **Simple**: Keywords + sort + max posts
- **Structured**: Renamed, integration-friendly field names
- **Flexible**: Absolute or relative date windows

### 🎯 Perfect For

- 📢 Brand mention monitoring
- 📈 Topic and campaign tracking
- 🧠 Content and trend research
- 🤖 Enrichment pipelines and automation

### 📝 Input Requirements

- `keywords` (required): Keywords or hashtags (max 20)
- `sortBy` (optional): `top` or `recent`
- `maxPostsPerKeyword` (optional): Max posts per keyword (minimum 10)
- `postedAfter` / `postedBefore` (optional): Date filters (YYYY-MM-DD or relative like `7 days`)

#### Input Example

```json
{
  "keywords": ["AI", "#startup"],
  "sortBy": "recent",
  "maxPostsPerKeyword": 50,
  "postedAfter": "7 days"
}
```

#### Output Example

```json

  {
    "recordType": "post",
    "handle": "van_______________",
    "accountId": "66896756928",
    "displayName": "VAN",
    "isVerified": false,
    "followers": 455,
    "bio": "💥CPP:@lumeflow @imagineartofficial, polloAi, SeaArt, @kinoviai , KlingAi, pixverse",
    "profileUrl": "https://www.threads.com/@van_______________",
    "avatarUrl": "https://scontent-dfw5-1.cdninstagram.com/v/t51.2885-19/500628675_17894648028228929_6192874229488556997_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-dfw5-1.cdninstagram.com&_nc_cat=105&_nc_oc=Q6cZ2gFoEBeorA_clwgH9jv3ECRad6j3Id-4dAR6ZFdocc7icjV3jHX-65wdEliN0o4rCFs&_nc_ohc=Qgb6UdIXFzwQ7kNvwEVLk9D&_nc_gid=XCounbF5QzzDlOuvli9ytQ&edm=APs17CUBAAAA&ccb=7-5&oh=00_AQFkfyQaOHUmSzqcNYUc8rPwIzcEQYhijaqG4lKKqBuVLw&oe=6A70DF1F&_nc_sid=10d13b",
    "avatarUrlHd": "https://scontent-dfw5-1.cdninstagram.com/v/t51.2885-19/500628675_17894648028228929_6192874229488556997_n.jpg?stp=dst-jpg_s640x640_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-dfw5-1.cdninstagram.com&_nc_cat=105&_nc_oc=Q6cZ2gFoEBeorA_clwgH9jv3ECRad6j3Id-4dAR6ZFdocc7icjV3jHX-65wdEliN0o4rCFs&_nc_ohc=Qgb6UdIXFzwQ7kNvwEVLk9D&_nc_gid=XCounbF5QzzDlOuvli9ytQ&edm=APs17CUBAAAA&ccb=7-5&oh=00_AQF6X5TkTkCzzkKhuM00pAfFk6t5Gv74Ef1uPxOrsZealg&oe=6A70DF1F&_nc_sid=10d13b",
    "postUrl": "https://www.threads.com/@van_______________/post/DbaR6U0gQxW",
    "postCode": "DbaR6U0gQxW",
    "text": "Training with 🦬🗿\n\nvid : seedance 2 - on canvas\nProvid : @pixverse_official \nJoin : https://share.pix.video/referral/BQTLTIV1\n#ai #pixverse\n #cat #nanobanana2 #pixversecpp\n\nPrompt :",
    "publishedAt": "2026-07-30T08:40:09+00:00",
    "publishedAtDisplay": "2026-07-30 08:40 UTC",
    "publishedAtTs": 1785400809,
    "likes": 4,
    "replies": 3,
    "reposts": 2,
    "quotes": 0,
    "shares": null,
    "views": 82,
    "viewStatus": "available",
    "hasMedia": true,
    "mediaType": "video",
    "mediaUrl": "https://scontent-lax7-1.cdninstagram.com/o1/v/t16/f2/m84/AQP-PclAqSLsm4SYeBa29b-16jJecHcGVIApJNVVTd84jOq7mohNlbT3MQHZNyIBRpxdG9jDk7BvK1yXBi1MX-gb5AFlukz8eLG1Was.mp4?_nc_cat=105&_nc_sid=5e9851&_nc_ht=scontent-lax7-1.cdninstagram.com&_nc_ohc=Nqh4XC8ki_UQ7kNvwH_iVT2&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uRkVFRC5DMy4xMjgwLmRhc2hfYmFzZWxpbmVfMV92MSIsInhwdl9hc3NldF9pZCI6MTc5NDk1NTAyNDIyMjg5MjksImFzc2V0X2FnZV9kYXlzIjowLCJ2aV91c2VjYXNlX2lkIjoxMDE2NCwiZHVyYXRpb25fcyI6MTgsInVybGdlbl9zb3VyY2UiOiJ3d3cifQ%3D%3D&ccb=17-1&vs=9cfb51b3782f9744&_nc_vs=HBksFQIYTGlnX2JhY2tmaWxsX3RpbWVsaW5lX3ZvZC82QTRBNTM1OEVEMEJEQTJFN0U3NTU4ODI4QTIwMjQ4M192aWRlb19kYXNoaW5pdC5tcDQVAALIARIAFQIYUWlnX3hwdl9wbGFjZW1lbnRfcGVybWFuZW50X3YyL0ExNDE3MjA0NDQxQTdBMkVDNUI5OTY2OUIwQUI4QTkwX2F1ZGlvX2Rhc2hpbml0Lm1wNBUCAsgBEgAoABgAGwKIB3VzZV9vaWwBMRJwcm9ncmVzc2l2ZV9yZWNpcGUBMRUAACaCq4fhqsHiPxUCKAJDMywXQDKAAAAAAAAYEmRhc2hfYmFzZWxpbmVfMV92MREAdeoHZeieAQA&_nc_gid=U97SUJM7ePrLxRiI5dIZCg&_nc_ss=7a22e&_nc_zt=28&oh=00_AQFB6xMZ4lcnQKvGxnSmXeaZ3IWoAJCN4AGGvnLXSBTzcA&oe=6A6CF9DB",
    "mediaUrls": [],
    "hashtags": [
      "ai",
      "pixverse",
      "cat",
      "nanobanana2",
      "pixversecpp"
    ],
    "mentions": [
      "pixverse_official"
    ],
    "links": [
      "https://share.pix.video/referral/BQTLTIV1"
    ],
    "isPinned": false,
    "isEdited": false,
    "isPaidPartnership": false,
    "isReply": false,
    "replyToHandle": "",
    "isQuote": false,
    "quotedPostUrl": "",
    "isRepost": false,
    "repostedPostUrl": "",
    "language": "",
    "topicTag": "AI Threads",
    "locationName": "",
    "searchQuery": "AI",
    "sortBy": "top",
    "keywordMatched": true,
    "scrapedAt": "2026-07-30T09:17:58.404387+00:00"
  }
```

### 🚀 How to Use

1. Add one or more keywords or hashtags
2. Choose Top or Recent sort
3. Optionally set a date window
4. Set `maxPostsPerKeyword` and click **Start**
5. Download results as JSON, CSV, Excel, or HTML

### 📌 Notes

- Only public posts are available; result volume depends on what Threads shows at run time
- `#` is optional — both `AI` and `#AI` work
- This actor covers **Search** mode only

# Actor input Schema

## `keywords` (type: `array`):

Keywords or hashtags to search, e.g. AI, #startup, or New York coffee. Max 20.

## `sortBy` (type: `string`):

Top returns Threads-ranked relevant posts. Recent returns newest matching public posts first.

## `maxPostsPerKeyword` (type: `integer`):

Maximum number of public posts to collect for each keyword (minimum 10). Actual results may be lower.

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

Only include posts from this date onward. Use YYYY-MM-DD or a relative value such as 7 days / 1 month.

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

Only include posts up to this date (inclusive). Use YYYY-MM-DD or a relative value such as 1 day.

## Actor input object example

```json
{
  "keywords": [
    "AI"
  ],
  "sortBy": "top",
  "maxPostsPerKeyword": 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 = {
    "keywords": [
        "AI"
    ],
    "sortBy": "top",
    "maxPostsPerKeyword": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("easyapi/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 = {
    "keywords": ["AI"],
    "sortBy": "top",
    "maxPostsPerKeyword": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("easyapi/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 '{
  "keywords": [
    "AI"
  ],
  "sortBy": "top",
  "maxPostsPerKeyword": 50
}' |
apify call easyapi/threads-search-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/aTqxRdkY0l2iZ0dy8/builds/0k0vZ4fqXPyRQbvH0/openapi.json
