# TikTok Influencer Scout (`codepal/tiktok-influencer-scout`) Actor

Find and rank TikTok influencers for any hashtag or keyword: engagement, audience sentiment, sponsored-post success rate, response speed, brand campaigns, cost estimates and optional AI outreach briefs.

- **URL**: https://apify.com/codepal/tiktok-influencer-scout.md
- **Developed by:** [Jared Keanche](https://apify.com/codepal) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 14.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $50.00 / 1,000 influencer analyzeds

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 Influencer Scout

Find the right TikTok creators for a campaign, compare them side by side, and know **who to contact first**. Give it hashtags, keywords or creator handles. It ranks every creator with explainable scores and detects which brands are already running campaigns in your niche.

### What you get per influencer

| Area | Fields |
|---|---|
| Reach | followers, tier (nano–mega), median and average views, views-to-followers ratio |
| Engagement | engagement rate, ratio vs. tier benchmark, share rate, consistency |
| Relevance | % of recent posts on your topic, niche videos found |
| Audience sentiment | comment sentiment (English, Swahili, Sheng, emoji), % positive/negative, top words |
| Sponsored success | sponsored posts and share, **success rate** (how often sponsored posts reach the creator's usual views and engagement), sponsored vs. organic views, brands worked with |
| Response speed ("turnover") | creator reply rate, median reply time to comments, posting cadence, then an **estimated response speed** (fast / medium / slow) |
| Outreach | email and link in bio, business account, "open to collabs" signals |
| Cost | estimated cost per post and per engagement (your CPM range) |
| Verdict | **influencer score** (0–100) weighted by your objective, rank, sub-scores, strengths and risks |

### Also in each run

- **Brand campaigns detected**: sponsored posts grouped by brand. Shows creators, posts, views, engagement, success rate and audience sentiment. Add your competitors under *Brands to track*.
- **HTML report** with a leaderboard, score grid and campaigns. The **POSTS** record holds every analysed post. Slack and Discord webhooks are supported.
- **Optional AI (bring your own key)**: any OpenAI-compatible model (OpenAI, OpenRouter, Groq, Gemini, local Ollama). It writes a per-creator brief (fit score, content ideas, risks, negotiation notes and a first outreach message) and a shortlist recommendation with a budget split.

### Example

```json
{ "hashtags": ["skincare", "kenyanskincare"], "influencers": ["@somecreator"], "brands": ["mybrand", "competitorbrand"],
  "objective": "conversion", "maxFollowers": 200000, "maxInfluencers": 20,
  "enableAi": true, "aiModel": "gpt-4o-mini", "campaignBrief": "Vitamin C serum launch, women 18-30, Nairobi" }
```

### Honest limits

- Response speed is an **estimate from public behaviour**. Direct-message reply times are not public.
- Sponsorship detection uses TikTok's disclosure flags, #ad-type hashtags, promo-code language and brand mentions. Every post lists the signals that fired.
- Costs are CPM-based estimates for negotiation, not quotes.
- Commenters are never identified. Only aggregated sentiment and words are used. Creator data is public profile information; handle outreach under GDPR, Kenya DPA and local rules.

### Pricing

| Event | Price |
|---|---|
| Influencer analysed | $0.05 |
| Video comment sample | $0.02 |
| Creator discovery (per hashtag/keyword searched) | $0.02 |
| AI brief | $0.005 |

You also pay your AI provider directly if you enable AI. Example: 1 hashtag, 15 creators with 2 comment samples each costs about $1.37. Charges are made as each step completes and stop at your maximum cost per run.

# Actor input Schema

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

Find creators posting under these hashtags, e.g. skincare, kenyanfood.

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

Find creators from TikTok video search, e.g. "vitamin c serum".

## `influencers` (type: `array`):

Handles or profile URLs that are always analysed and ranked alongside discovered creators, e.g. @creator.

## `excludeInfluencers` (type: `array`):

Handles to skip (e.g. your own account or competitors' brand accounts).

## `maxInfluencers` (type: `integer`):

Creators deep-analysed and ranked (explicit ones first, then the most active creators in the niche). Each one is a charged event.

## `videosPerQuery` (type: `integer`):

More videos = more candidate creators.

## `minFollowers` (type: `integer`):

Skip smaller discovered creators. Explicit influencers are always kept.

## `maxFollowers` (type: `integer`):

e.g. 100000 to focus on micro-influencers. 0 = no limit.

## `objective` (type: `string`):

Changes how the overall influencer score weighs the sub-scores.

## `brands` (type: `array`):

Your brand and competitors (handles or names). Their campaigns are reported even when posts lack #ad.

## `recentVideosPerInfluencer` (type: `integer`):

Videos read from each profile to measure views, engagement, cadence and sponsored history.

## `commentVideosPerInfluencer` (type: `integer`):

Per influencer (sponsored posts first). Powers audience sentiment and response-speed estimates. 0 = skip (cheaper and faster). Charged per video.

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

Comments read per sampled video.

## `cpmLowUsd` (type: `number`):

Used for the cost-per-post estimate. Typical TikTok creator CPM: $2–10 in Africa, $5–25 in US/EU.

## `cpmHighUsd` (type: `number`):

Upper bound for the estimate.

## `customPositiveWords` (type: `array`):

Local slang to count as positive in audience sentiment (Swahili and Sheng are built in).

## `customNegativeWords` (type: `array`):

Local slang to count as negative.

## `enableAi` (type: `boolean`):

Adds a per-influencer brief (summary, fit score, content ideas, risks, negotiation notes, outreach message) and a shortlist recommendation. Works with any OpenAI-compatible API.

## `campaignBrief` (type: `string`):

What you are promoting, audience and goal. Used by the AI to judge fit and write outreach.

## `brandName` (type: `string`):

Used in AI outreach drafts.

## `aiBaseUrl` (type: `string`):

OpenAI: https://api.openai.com/v1 · OpenRouter: https://openrouter.ai/api/v1 · Groq: https://api.groq.com/openai/v1 · Gemini: https://generativelanguage.googleapis.com/v1beta/openai

## `aiModel` (type: `string`):

e.g. gpt-4o-mini, llama-3.3-70b-versatile (Groq), google/gemini-2.0-flash-001 (OpenRouter).

## `aiApiKey` (type: `string`):

Your provider key. Stored encrypted; you pay your provider directly.

## `aiMaxInfluencers` (type: `integer`):

Only the best-ranked creators get an AI brief.

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

POST the ranked shortlist when the run finishes (Slack and Discord formatted automatically).

## `webhookSecret` (type: `string`):

Optional HMAC-SHA256 signature in the x-signature-256 header.

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

Residential proxies are strongly recommended; TikTok blocks most datacenter IPs.

## Actor input object example

```json
{
  "hashtags": [
    "skincare"
  ],
  "keywords": [],
  "influencers": [],
  "excludeInfluencers": [],
  "maxInfluencers": 5,
  "videosPerQuery": 20,
  "minFollowers": 1000,
  "maxFollowers": 0,
  "objective": "balanced",
  "brands": [],
  "recentVideosPerInfluencer": 20,
  "commentVideosPerInfluencer": 1,
  "commentsPerVideo": 30,
  "cpmLowUsd": 2,
  "cpmHighUsd": 10,
  "customPositiveWords": [],
  "customNegativeWords": [],
  "enableAi": false,
  "campaignBrief": "",
  "brandName": "",
  "aiBaseUrl": "https://api.openai.com/v1",
  "aiModel": "gpt-4o-mini",
  "aiMaxInfluencers": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `influencers` (type: `string`):

One row per creator, ranked: scores, reach, engagement, audience sentiment, sponsored success, response speed, contacts, cost estimate, AI brief.

## `report` (type: `string`):

Leaderboard, score breakdown, detected brand campaigns and AI recommendation.

## `campaigns` (type: `string`):

Sponsored posts grouped by brand: creators, views, engagement, success rate, audience sentiment.

## `posts` (type: `string`):

Every post with metrics, sponsorship signals and audience sentiment.

## `summary` (type: `string`):

Discovery stats, top creators, campaigns, AI status.

# 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 = {
    "hashtags": [
        "skincare"
    ],
    "maxInfluencers": 5,
    "videosPerQuery": 20,
    "commentVideosPerInfluencer": 1,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("codepal/tiktok-influencer-scout").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 = {
    "hashtags": ["skincare"],
    "maxInfluencers": 5,
    "videosPerQuery": 20,
    "commentVideosPerInfluencer": 1,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("codepal/tiktok-influencer-scout").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 '{
  "hashtags": [
    "skincare"
  ],
  "maxInfluencers": 5,
  "videosPerQuery": 20,
  "commentVideosPerInfluencer": 1,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call codepal/tiktok-influencer-scout --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,codepal/tiktok-influencer-scout"
        }
    }
}
```

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/ee2QSYnZdgEnlmFsP/builds/5C2No3Grc3QNX6Qmk/openapi.json
