# Instagram & TikTok Competitor Content Analyzer + Hooks (`ingeniela/competitor-content-analyzer`) Actor

Compare your competitors' Instagram Reels and TikToks side by side: posting rhythm, median views, which topics, formats and hooks beat their normal, spoken hooks, content gaps and 10 video ideas for your brand.

- **URL**: https://apify.com/ingeniela/competitor-content-analyzer.md
- **Developed by:** [Ingeniela](https://apify.com/ingeniela) (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 $5.00 / 1,000 video 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

## Instagram & TikTok Competitor Content Analyzer + Hooks

Find out **why your competitors' videos take off**. Add their **Instagram** and **TikTok** profiles and get their latest Reels and TikToks **side by side**:

- how often they post, their median views and their best length;
- which **topics, formats and hooks** beat each creator's own normal views;
- the **spoken hook** of each video, transcribed;
- an AI report with the **patterns**, the **content gaps** you can own and **10 original video ideas** for your brand.

### Tutorial (1 minute)

![Step-by-step tutorial: what to fill in, click Start, the real result and the price](https://api.apify.com/v2/key-value-stores/RXaOr7FspyrQ4JP88/records/competitor-content-tutorial.gif)

### Why "× normal views" matters

A big account's average video beats a small account's best one, so comparing raw views is misleading. Every video gets an **outlier score**: its views divided by **that creator's median**. **3×** means it did three times better than usual for them. Topics, formats and hooks are ranked by that score, which makes the comparison fair across big and small competitors.

Real run on 3 public beauty accounts (10 Reels each):

- **Bold claim** hooks did **2.7×** their creators' normal views, **story openers 1.85×** and **curiosity gaps 1.37×**.
- The AI found that none of them talked about **supplements**, a clear gap for a skincare and supplements shop.

### What you get

**One row per video:** account, platform, views, likes, comments, shares, engagement rate, **× normal**, length, topic, format (talking head, tutorial, story, list, before-after…), hook type (question, bold claim, curiosity gap, pain point…), hook line, why it grabs, spoken hook, caption, hashtags, preview, link.

**Report** (`REPORT`, HTML):

- competitors side by side;
- tables of what performs by topic, format, hook type and length;
- the top outlier videos;
- the AI summary, patterns, gaps, 10 video ideas with a hook line, and one takeaway per competitor.

### How to use it

1. Add your competitors' **Instagram** and/or **TikTok** usernames.
2. Choose how many **latest videos** per profile (pinned videos are skipped).
3. Describe **your niche and brand** so the gaps and ideas fit you, and choose the report language.
4. Click **Start** and open **REPORT**. Schedule it monthly to follow how competitors evolve.

### Input example

```json
{
  "instagramProfiles": ["competitor_one", "competitor_two"],
  "tiktokProfiles": ["competitor_three"],
  "videosPerProfile": 30,
  "niche": "skincare for sensitive skin",
  "yourBrand": "A clean skincare and supplements shop",
  "language": "Spanish"
}
```

### Pricing

| Event | Price |
|---|---|
| Video analyzed | $0.005 |
| Spoken hook transcribed (built-in Whisper) | $0.003 |
| Video classified by AI (built-in AI) | $0.002 |
| Competitor report (built-in AI) | $0.25 |

90 videos (3 competitors × 30) with transcripts and the report cost about **$1.15**, plus collecting the videos (below). With your own OpenAI or OpenRouter key, the transcription and AI events are free (your provider bills you).

Collecting the videos runs on your Apify account at about US$0.003 per video, with a spend limit you set.

### Good to know

- Only **public** profiles. Nothing is downloaded or re-posted: the videos are only read to measure and transcribe the first seconds.
- Use the ideas as inspiration. The AI is told to write original ideas, never copies of a competitor's video.
- TikTok hooks come from TikTok's own subtitles when the video has them.

# Actor input Schema

## `instagramProfiles` (type: `array`):

Usernames or profile links of public accounts.

## `tiktokProfiles` (type: `array`):

Usernames or profile links, e.g. '@brand'.

## `videosPerProfile` (type: `integer`):

Pinned videos are skipped.

## `niche` (type: `string`):

e.g. 'skincare for sensitive skin' or 'e-commerce automation'.

## `yourBrand` (type: `string`):

One or two lines about you, so the gaps and video ideas fit your brand.

## `language` (type: `string`):

Language of topics, hooks and ideas.

## `transcribeHooks` (type: `boolean`):

Whisper on the first 20 s of each Reel (TikTok uses its own subtitles when it has them).

## `hookSeconds` (type: `integer`):

The hook is usually in the first 3-8 seconds; 20 also catches the setup.

## `scraperMaxCostUsd` (type: `integer`):

Limit for collecting the videos (about US$0.003 per video).

## `aiProvider` (type: `string`):

Leave all keys empty to use the built-in AI (billed per AI event).

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

Empty = a good default for the provider. Your OpenAI or OpenRouter key is also used for Whisper.

## `anthropicApiKey` (type: `string`):

With your own key (any provider) that provider bills you and AI events are not charged.

## `openaiApiKey` (type: `string`):

Your own key from platform.openai.com.

## `openrouterApiKey` (type: `string`):

Your own key from openrouter.ai/keys.

## `geminiApiKey` (type: `string`):

Your own key from aistudio.google.com/apikey.

## `xaiApiKey` (type: `string`):

Your own key from console.x.ai.

## `deepseekApiKey` (type: `string`):

Your own key from platform.deepseek.com.

## `mistralApiKey` (type: `string`):

Your own key from console.mistral.ai.

## Actor input object example

```json
{
  "instagramProfiles": [
    "natgeo"
  ],
  "videosPerProfile": 10,
  "language": "English",
  "transcribeHooks": true,
  "hookSeconds": 20,
  "scraperMaxCostUsd": 3,
  "aiProvider": "auto"
}
```

# Actor output Schema

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

No description

## `videos` (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 = {
    "instagramProfiles": [
        "natgeo"
    ],
    "videosPerProfile": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("ingeniela/competitor-content-analyzer").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 = {
    "instagramProfiles": ["natgeo"],
    "videosPerProfile": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("ingeniela/competitor-content-analyzer").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 '{
  "instagramProfiles": [
    "natgeo"
  ],
  "videosPerProfile": 10
}' |
apify call ingeniela/competitor-content-analyzer --silent --output-dataset

```

## MCP server setup

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

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/mSsPgmvYPaheUb5Xk/builds/YheprJhhSae3BMREs/openapi.json
