# YouTube Comments Scraper + AI Analysis: TikTok, Instagram (`ingeniela/video-comment-insights`) Actor

Turn the comments of any YouTube, TikTok or Instagram video into insights: what the audience asks, wants and complains about, with real quotes, plus video ideas, hooks, FAQ and product ideas.

- **URL**: https://apify.com/ingeniela/video-comment-insights.md
- **Developed by:** [Ingeniela](https://apify.com/ingeniela) (community)
- **Categories:** AI, Social media, Videos
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 theme founds

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

## YouTube Comments Scraper + AI Analysis: TikTok, Instagram

The comment section tells you what your audience wants next: the questions they keep asking, what confused them, what they would buy, what they disliked. Nobody has time to read 3,000 comments. This Actor collects the comments of any **YouTube, TikTok or Instagram** videos (yours or your competitors') and turns them into ranked **questions, requests, pain points, objections and praise**, with how many people said it and the **real comments**, plus **video ideas, hooks, an FAQ and product ideas**.

### 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/comment-analyzer-tutorial.gif)

*Every result in this tutorial comes from a real run.*

### What you get

- **Ranked themes**: questions, desires (for example "part 2", "do one about X"), pain points, objections, praise, feature requests, buying signals and complaints about alternatives. Each with mentions, total likes and up to 3 real comments (most liked first).
- **Top questions**: the most liked comments that ask something, ready for your next FAQ or video.
- **Ideas**: summary, 10 video ideas, 10 hooks, 6 ad angles, 5 product ideas, 8 FAQ pairs and the audience's own phrases.
- **A visual report** (`REPORT`), the themes table and everything as JSON.

### How to use it

1. Paste **video links**: YouTube, TikTok or Instagram. Mix your best videos and your competitors' most viral ones.
2. Choose **comments per video** (top comments first).
3. Optional: write **what you want to learn** and **your product or channel**.
4. Click **Start** and open **REPORT**.

### Input example

```json
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=VIDEO_ID",
    "https://www.tiktok.com/@creator/video/7300000000000000000",
    "https://www.instagram.com/reel/C1abcDEF/"
  ],
  "commentsPerVideo": 300,
  "researchGoal": "what should my next 10 videos be about",
  "yourOffer": "a cooking channel for busy parents",
  "language": "English"
}
```

### How it works

1. Collects the comments for each platform on your Apify account: YouTube (about US$0.002 per comment), TikTok (US$0.00125) and Instagram (US$0.0026). Usernames are not kept.
2. A fast AI model reads all comments in batches and tags themes with the comments that mention them, so counts and quotes are real.
3. Themes are merged and ranked; a stronger model writes the ideas.

### Pricing

| Event | Price |
|---|---|
| Theme in the results | $0.01 |
| Comment read by the built-in AI | $0.0005 |
| Ideas and report with the built-in AI | $0.25 |

**Example:** 5 videos × 300 comments = 1,500 comments and about 40 themes: $0.40 + $0.75 + $0.25 = **$1.40**, plus collecting the comments. With your own AI key: $0.40.

# Actor input Schema

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

YouTube, TikTok or Instagram links (yours or your competitors'). Mix platforms freely.

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

Top comments first (most liked).

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

Upper limit per platform for collecting the data on your account.

## `researchGoal` (type: `string`):

e.g. 'what video to make next' or 'objections before buying my course'.

## `yourOffer` (type: `string`):

Makes the content, product and ad ideas specific to you.

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

Language of themes and ideas (quotes stay in the original).

## `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. A fast model reads the comments; the ideas use the default model.

## `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
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=xuCn8ux2gbs"
  ],
  "commentsPerVideo": 40,
  "scraperMaxCostUsd": 5,
  "language": "English",
  "aiProvider": "auto"
}
```

# Actor output Schema

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

No description

## `themes` (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.youtube.com/watch?v=xuCn8ux2gbs"
    ],
    "commentsPerVideo": 40
};

// Run the Actor and wait for it to finish
const run = await client.actor("ingeniela/video-comment-insights").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.youtube.com/watch?v=xuCn8ux2gbs"],
    "commentsPerVideo": 40,
}

# Run the Actor and wait for it to finish
run = client.actor("ingeniela/video-comment-insights").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.youtube.com/watch?v=xuCn8ux2gbs"
  ],
  "commentsPerVideo": 40
}' |
apify call ingeniela/video-comment-insights --silent --output-dataset

```

## MCP server setup

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

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/Fl0pYVYY2OULP0As0/builds/xEMzSw4sbqclEwmzy/openapi.json
