# Viral hook playbook for a TikTok niche

**Use case:** 

Analyze the recent videos of TikTok creators in your niche and get a playbook of what works: recurring hooks, beat structures, calls to action and formats, as JSON and Markdown. The playbook needs at least 10 analyzed videos and a paid Apify plan.

## Input

```json
{
  "profiles": [
    "https://www.tiktok.com/@nasa"
  ],
  "mode": "script",
  "sponsorSignals": false,
  "nichePlaybook": true,
  "since": "2026-10-01",
  "maxPerProfile": 20,
  "maxItems": 30
}
```

## Output

```json
{
  "row_type": {
    "label": "Row",
    "format": "text"
  },
  "url": {
    "label": "Video",
    "format": "link"
  },
  "status": {
    "label": "Status",
    "format": "text"
  },
  "error_code": {
    "label": "Error",
    "format": "text"
  },
  "author": {
    "label": "Author",
    "format": "text"
  },
  "posted_at": {
    "label": "Posted at",
    "format": "date"
  },
  "duration_s": {
    "label": "Duration (s)",
    "format": "number"
  },
  "language": {
    "label": "Language",
    "format": "text"
  },
  "views": {
    "label": "Views",
    "format": "number"
  },
  "transcript": {
    "label": "Transcript",
    "format": "text"
  },
  "topic": {
    "label": "Topic",
    "format": "text"
  },
  "warnings": {
    "label": "Warnings",
    "format": "array"
  },
  "charged_events": {
    "label": "Charged events",
    "format": "array"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The TikTok & Reels Script Analyzer – Hook, CTA, Transcript Actor is ready to run with the inputs already set for "Viral hook playbook for a TikTok niche". [Sign up or log in](https://console.apify.com/create-task-from-example/mZS9g8qfeE87Xe3Fr) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Viral hook playbook for a TikTok niche" task

The TikTok & Reels Script Analyzer – Hook, CTA, Transcript Actor will start running based on the input automatically. You can also change all the input fields, like tiktok profiles, what to produce, and more, to match your specific use case.

### 3. Receive the "Viral hook playbook for a TikTok niche" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as row, video, status, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Viral hook playbook for a TikTok niche" task via API](https://apify.com/smoxy/short-video-script-analyzer.md).

## FAQ

### Where do I find the playbook?

In the run's key-value store, as PLAYBOOK.json and PLAYBOOK.md. Each video also stays as a row in the dataset.

### Why was no playbook created?

It needs at least 10 videos analyzed successfully and a paid Apify plan. If either is missing, no playbook is made and it is not charged.

### Can I use videos from another scraper?

Yes. Set datasetId to the dataset of a TikTok or Instagram scraper run; video links are read from it and processed right away.

## About this Actor

This example demonstrates how to use [TikTok & Reels Script Analyzer – Hook, CTA, Transcript](https://apify.com/smoxy/short-video-script-analyzer.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/smoxy/short-video-script-analyzer.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/smoxy/short-video-script-analyzer.md

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`).
