# TikTok Comment Buyer-Intent Miner — Find Ready Buyers (`growth-installations/tiktok-comment-buyer-intent-miner`) Actor

Read the comments under any TikTok videos (yours, competitors' or the top videos for a keyword) and pull out ready buyers: "where can I buy", "link?", "how much", "do you ship", "do you service my area" and unhappy competitor customers, with score and reply.

- **URL**: https://apify.com/growth-installations/tiktok-comment-buyer-intent-miner.md
- **Developed by:** [Growth Installations](https://apify.com/growth-installations) (community)
- **Categories:** Lead generation, Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $50.00 / 1,000 buyer-intent leads

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

## TikTok Comment Buyer-Intent Miner

The people asking "where can I get this?" under a TikTok video are buyers, and most brands never answer them. This Actor reads the comments under any TikTok videos (yours, a competitor's, or the most-commented videos for a keyword) and returns only the commenters showing buying intent, scored 0-100, with a suggested reply.

| Intent | Examples | Base score |
|---|---|---|
| purchase | "where can I buy this", "link?", "I need this", "what's the brand", "dónde lo consigo" | 90 |
| service | "do you guys service Richmond?", "need a quote", "how can I book you" | 85 |
| price | "how much", "price?", "cuánto cuesta" | 80 |
| shipping | "do you ship to Canada" | 75 |
| competitor_pain | "mine broke after 2 weeks", "waste of money", "still waiting on my order" | 70 |
| product_question | "does it work for oily skin?", "what size" | 60 |

Comment likes, replies and question marks add a few points. The video owner and any handles you exclude are skipped; each commenter counts once per intent per video.

### Pricing (pay per event)

| Event | Price |
|---|---|
| comment-batch (per 100 comments read) | $0.60 |
| buyer-lead (per lead returned) | $0.05 |

Example: 20 videos × 100 comments with 10% buyer comments = $12 + $10 = $22. If your max charge can't cover one batch plus one lead the run stops at once; if it covers fewer comments, the Actor reads fewer per video and stops pushing leads at the cap.

### Real output (live run lKQUfS83wShhgh6We, 2026-11-03, search "amazon kitchen gadgets", 2 videos × 100 comments, cap $1.50)

The run found 34 buyer-intent leads in 200 comments (17%); the $1.50 cap paid for 2 batches plus 5 leads, so it stopped at 5. First 3:

```json
[
 {
  "rank": 1,
  "intent_score": 97,
  "intent": "purchase",
  "commenter_url": "https://www.tiktok.com/@_byronrivera",
  "comment": "dónde lo consigo??",
  "comment_likes": 32,
  "commented_at": "2026-09-29T07:40:30.000Z",
  "video_url": "https://www.tiktok.com/@anya.bumag/video/7665799980480826642",
  "video_owner": "anya.bumag",
  "query": "amazon kitchen gadgets",
  "suggested_reply": "Hey! Here's where to get it: {link}. Happy to answer anything else."
 },
 {
  "rank": 2,
  "intent_score": 96,
  "intent": "purchase",
  "commenter_url": "https://www.tiktok.com/@plugsellzco",
  "comment": "Wow where can I get one ?",
  "comment_likes": 23,
  "commented_at": "2026-07-28T01:47:01.000Z",
  "video_url": "https://www.tiktok.com/@anya.bumag/video/7665799980480826642",
  "video_owner": "anya.bumag",
  "query": "amazon kitchen gadgets",
  "suggested_reply": "Hey! Here's where to get it: {link}. Happy to answer anything else."
 },
 {
  "rank": 3,
  "intent_score": 96,
  "intent": "purchase",
  "commenter_url": "https://www.tiktok.com/@analu.indica",
  "comment": "dónde lo consigo?? 👏",
  "comment_likes": 20,
  "commented_at": "2026-10-06T21:44:24.000Z",
  "video_url": "https://www.tiktok.com/@anya.bumag/video/7665799980480826642",
  "video_owner": "anya.bumag",
  "query": "amazon kitchen gadgets",
  "suggested_reply": "Hey! Here's where to get it: {link}. Happy to answer anything else."
 }
]
```

### Use

```bash
python cli.py --queries "amazon kitchen gadgets" --videos-per-query 2 --per-video 100   # APIFY_TOKEN needed
python cli.py --comments-json tests/fixtures/comments_duolingo.json                      # offline
python -m pytest -q tests
```

Data: `clockworks/tiktok-scraper` (search) and `clockworks/tiktok-comments-scraper` (about $0.00125 per comment).

# Actor input Schema

## `videoUrls` (type: `array`):

Videos whose comments to mine: your own, a competitor's, or viral product videos.

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

Optional. Keywords like "stanley cup dupe" or "roof repair": the most-commented videos for each are mined.

## `videosPerSearch` (type: `integer`):

How many of the most-commented videos to mine per search query.

## `commentsPerVideo` (type: `integer`):

Top-level comments read per video. You pay per 100 comments read.

## `minIntentScore` (type: `integer`):

0-100. Purchase asks score about 90, service-area 85, price 80, shipping 75, competitor complaints 70, product questions 60.

## `intents` (type: `array`):

Leave empty for all.

## `excludeHandles` (type: `array`):

Your own or your team's handles to skip (the video owner is always skipped).

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.tiktok.com/@duolingo/video/7702180642183859486"
  ],
  "videosPerSearch": 5,
  "commentsPerVideo": 100,
  "minIntentScore": 60
}
```

# Actor output Schema

## `leads` (type: `string`):

No description

## `summary` (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 = {
    "videoUrls": [
        "https://www.tiktok.com/@duolingo/video/7702180642183859486"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("growth-installations/tiktok-comment-buyer-intent-miner").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 = { "videoUrls": ["https://www.tiktok.com/@duolingo/video/7702180642183859486"] }

# Run the Actor and wait for it to finish
run = client.actor("growth-installations/tiktok-comment-buyer-intent-miner").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 '{
  "videoUrls": [
    "https://www.tiktok.com/@duolingo/video/7702180642183859486"
  ]
}' |
apify call growth-installations/tiktok-comment-buyer-intent-miner --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,growth-installations/tiktok-comment-buyer-intent-miner"
        }
    }
}
```

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/QfJZigmxqcAzplS4W/builds/Or3MDCzDaxL1Vc6ci/openapi.json
