# TikTok Scraper & Competitor Analysis (AI) (`ironlabs/tiktok-competitor-analysis`) Actor

Analyse any TikTok competitor in minutes: views, engagement, shares and saves, viral hits, best formats, lengths and posting times, hooks, sounds, content pillars and 10 video ideas. Compare up to 10 accounts with a 30-day plan.

- **URL**: https://apify.com/ironlabs/tiktok-competitor-analysis.md
- **Developed by:** [Iron Labs](https://apify.com/ironlabs) (community)
- **Categories:** Social media, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $450.00 / 1,000 competitor analyses

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Scraper & Competitor Analysis (AI)

**Drop in your competitors' TikTok usernames. Get back a strategist-grade report in about 3 minutes:** what they post, which videos go viral and why, the hooks and sounds they rely on, where they're weak, and 10 video ideas you can use to beat them.

No login, no TikTok account and no coding needed. Works on any **public** account.

### What you get for each competitor

| | |
|---|---|
| 📊 **Performance** | Followers, average and median views, engagement rate on views, shares and saves, views ÷ followers, and the views trend |
| 🚀 **Viral hits** | How many videos beat 3× their usual views, and what those videos have in common |
| 🎬 **Formats and length** | Short vs medium vs long videos vs slideshows: share of posts and views for each, plus average video length |
| ⏰ **Timing** | Best days and hours to post, based on their own results |
| 🧱 **Content pillars** | Their recurring themes, how often they use each, and how each performs |
| 🪝 **Hooks and concepts** | The patterns behind their most-viewed videos, with real examples |
| 🎵 **Sounds and hashtags** | Original vs trending sounds, the trending sounds they use, top hashtags and creator collabs |
| 🛍️ **Commerce** | Share of ads or sponsored videos, and TikTok Shop videos |
| 💪 **Strengths and weaknesses** | Each backed by numbers or examples |
| 🎯 **How to beat them** | 4–6 specific openings you can exploit |
| 💡 **10 video ideas** | Title, format, hook and why it should work, tailored to your business if you describe it |
| ⭐ **Scores** | Content, engagement, consistency and overall, out of 10 |

### Plus a side-by-side comparison (2+ accounts)

- A ranking of all accounts, with a one-line verdict each
- **Who leads where:** views, engagement, shares and saves, virality, consistency, community, momentum
- Market patterns, and the **white space nobody owns yet**
- Add **your own account** to get your gaps, quick wins and a **30-day action plan**

### 📄 A report you can send to a client

Every run saves a polished one-page **HTML report**: open the **Report** tab in the Output, then print it or save it as a PDF. All data is also available as **JSON, CSV or Excel**, or through the API.

### How to use it

1. Enter 1–10 competitor usernames, for example `gymshark`, `@alphalete` or `https://www.tiktok.com/@youngla`.
2. *Optional:* add your own account, plus one sentence about your business.
3. Click **Start**. Open the **Report** tab when it finishes.

### 💰 Pricing

You only pay for analyses that succeed:

| Event | Free plan | Starter | Scale | Business |
|---|---|---|---|---|
| Competitor analysis (per account) | **$0.60** | $0.55 | $0.50 | $0.45 |
| Side-by-side comparison (per run, 2+ accounts) | **$1.50** | $1.35 | $1.20 | $1.00 |

Higher Apify plans get the lower price automatically. The videos themselves are collected by the popular [TikTok Profile Scraper](https://apify.com/clockworks/tiktok-profile-scraper), which runs inside your run and is billed at its own price (about **$0.09 for 30 videos**).

**Example:** 3 competitors plus your own account, 30 videos each: 4 × $0.60 + $1.50 + about $0.36 of video data ≈ **$4.26 for a complete TikTok competitor audit**.

Private or missing accounts, and any analysis that fails, are **not charged**. Set a maximum cost per run in Run options if you want a hard cap.

### Who it's for

- **Social media managers and agencies:** TikTok competitor audits and client pitches in minutes
- **Brands and TikTok Shop sellers:** see what wins in your niche before you film
- **Creators:** learn the hooks, lengths and sounds your peers win with
- **Marketers:** schedule it monthly and track competitors over time

### FAQ

**Does it need my TikTok login?** No. It only reads public profiles and videos.

**Can it analyse private accounts?** No. They are skipped and not charged.

**Why engagement on views, not followers?** On TikTok most views come from the For You feed, not followers, so engagement is measured against views.

**How is the analysis made?** A leading AI model (Anthropic's Claude) reads the collected numbers and captions and is instructed to back every claim with evidence. Review the insights before acting on them.

**What data is sent to the AI?** Only public TikTok data and the optional business sentence you type.

**Need more?** More videos, comments analysis or a custom report? Open an issue on the **Issues** tab and we'll reply quickly.

# Actor input Schema

## `competitors` (type: `array`):

Usernames (gymshark), handles (@gymshark) or profile URLs (https://www.tiktok.com/@gymshark). Up to 10 per run. Public accounts only.

## `myAccount` (type: `string`):

Add your account to be benchmarked against the competitors. The comparison then shows your gaps, quick wins and a 30-day plan written for you.

## `businessContext` (type: `string`):

One or two sentences, e.g. 'Small activewear brand in India, we want more views and TikTok Shop sales'. Used to tailor opportunities and video ideas. Do not include personal data.

## `postsPerAccount` (type: `integer`):

Most recent videos per account (6-100). 30 gives a solid picture of the last few weeks.

## `includeComparison` (type: `boolean`):

With 2 or more accounts, add a ranking, who-leads-where, market white space and a 30-day action plan.

## Actor input object example

```json
{
  "competitors": [
    "gymshark",
    "alphalete",
    "youngla"
  ],
  "postsPerAccount": 30,
  "includeComparison": true
}
```

# Actor output Schema

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

No description

## `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 = {
    "competitors": [
        "gymshark",
        "alphalete"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ironlabs/tiktok-competitor-analysis").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 = { "competitors": [
        "gymshark",
        "alphalete",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("ironlabs/tiktok-competitor-analysis").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 '{
  "competitors": [
    "gymshark",
    "alphalete"
  ]
}' |
apify call ironlabs/tiktok-competitor-analysis --silent --output-dataset

```

## MCP server setup

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

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/yJlf74dGpK4ZHuyH1/builds/1e6wVnyce6zq144CZ/openapi.json
