Skip to main content
skill CX Codex

tracking-youtube-trending-topics-by-niche — Claude Code skill

This skill finds current YouTube trends within a niche and reports video formats, themes, views, and engagement. Use it to shape video research and ideas.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add apidojo-io/apidojo-skills --skill tracking-youtube-trending-topics-by-niche -a claude-code
Open on GitHub

What tracking-youtube-trending-topics-by-niche does

The skill runs apidojo~youtube-scraper on Apify to search for recent high-view videos in a chosen niche. Inputs can include search keywords, channel or playlist URLs, channel handles, location and language filters, upload date, duration, video features, and a result limit.

It then groups titles by recurring formulas, estimates momentum from views over time, compares likes and comments, and extracts topic and format patterns. The result is a trend brief with notable videos, metrics, themes, and suggested video angles. APIFY_TOKEN must be available in the environment or a .env file.

Results can be printed with scripts/run_actor.js or saved as CSV and JSON. A single older viral video can skew the picture, so date filters and views per day matter when reviewing the output.

What it helps with

  • find current YouTube topics in a niche
  • compare title formulas by average views
  • spot rising creators and channels
  • turn search trends into video ideas
  • filter research by country and upload period

Example prompts for the agent

  • Find current YouTube trends in personal finance for the last week and group the winning title patterns.
  • Research React videos by keyword, compare views, likes, and comments, then suggest several video angles.
  • Run the search with scripts/run_actor.js and save the output to results.json.

How to install tracking-youtube-trending-topics-by-niche

1Skills CLI (Vercel)

npx skills add apidojo-io/apidojo-skills --skill tracking-youtube-trending-topics-by-niche -a claude-code

2Manually: put the files in place

~/.claude/skills/tracking-youtube-trending-topics-by-niche/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/tracking-youtube-trending-topics-by-niche/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about tracking-youtube-trending-topics-by-niche

How do I install tracking-youtube-trending-topics-by-niche in Claude Code?

Run npx skills add apidojo-io/apidojo-skills --skill tracking-youtube-trending-topics-by-niche -a claude-code, then open ~/.claude/skills/tracking-youtube-trending-topics-by-niche/SKILL.md.

What does tracking-youtube-trending-topics-by-niche do?

It searches for high-performing videos in a niche, studies titles, formats, themes, views, and engagement, then produces a trend brief with video ideas.

What is required to run the skill?

Set APIFY_TOKEN in the environment or in a .env file. The scraper runs through Apify.

Source text

SKILL.md · Apache-2.0
---
name: tracking-youtube-trending-topics-by-niche
description: >
  Tracks trending YouTube topics and video formats in a specific niche using apidojo's YouTube
  scraper on Apify. Triggers when the user asks to: find trending YouTube topics in a niche,
  discover what videos are getting views right now in a category, identify trending YouTube formats
  or themes in an industry, find high-performing YouTube video ideas from search trends, research
  what the YouTube algorithm is currently rewarding in a topic area, discover rising YouTube creators
  in a niche, or analyze what video angles perform best on YouTube in a category.
  Returns trending video titles, view counts, engagement metrics, format patterns, and topic themes.
  Ideal for YouTube content creators, video marketers, and brand video strategists.
license: Apache-2.0
metadata:
  author: apidojo
  version: "1.0"
  apify-actor: apidojo/youtube-scraper
---

# Tracking YouTube Trending Topics by Niche

Identifies what's performing on YouTube in a specific niche by analyzing recent high-view videos. Surfaces repeatable title formulas, content formats, and topic themes that the YouTube algorithm is currently favoring.

## Prerequisites

- `APIFY_TOKEN` environment variable set
- Optional: Apify MCP server installed

## Inputs

| Parameter | Type | Required | Default | Notes |
|-----------|------|----------|---------|-------|
| `startUrls` | array | Optional | `[]` | YouTube URLs — channels, playlists, Shorts, search results |
| `youtubeHandles` | array | Optional | `[]` | YouTube channel handles (e.g. `@kurzgesagt`) |
| `getTrending` | boolean | Optional | `false` | Retrieve trending videos |
| `keywords` | array | Optional | `[]` | Search keywords |
| `gl` | string | Optional | `us` | Country code for results (e.g. `US`, `GB`) |
| `hl` | string | Optional | `en` | Language code (e.g. `en`, `de`) |
| `uploadDate` | string | Optional | `all` | Upload date filter: `any`, `hour`, `today`, `week`, `month`, `year` |
| `duration` | string | Optional | `all` | Duration filter: `any`, `short`, `long` |
| `features` | string | Optional | `all` | Feature filter: `4k`, `hd`, `live`, `cc`, `3d`, `hdr`, etc. |
| `sort` | string | Optional | `r` | Sort order for search results |
| `maxItems` | number | Optional | Unlimited | Maximum videos to return |
| `customMapFunction` | string | Optional | — | JavaScript function to transform each output object |

## Workflow

```
Progress:
- [ ] Step 1: Search for recent high-performing videos in niche
- [ ] Step 2: Extract title patterns and topics
- [ ] Step 3: Score trending momentum
- [ ] Step 4: Identify format and structural patterns
- [ ] Step 5: Deliver trend brief
```

### Step 1: Search YouTube


**Recommended — run_actor.js (handles waiting, output, and file saving automatically):**
```bash
# Quick answer (prints table to chat)
node scripts/run_actor.js \
  --actor "apidojo~youtube-scraper" \
  --input '{"param": "value"}'

# Save as CSV
node scripts/run_actor.js \
  --actor "apidojo~youtube-scraper" \
  --input '{"param": "value"}' \
  --output YYYY-MM-DD_results.csv --format csv

# Save as JSON
node scripts/run_actor.js \
  --actor "apidojo~youtube-scraper" \
  --input '{"param": "value"}' \
  --output YYYY-MM-DD_results.json --format json
```
> `APIFY_TOKEN` must be set in environment or `.env` file.

**If Apify MCP is available:**
```
Tool: apify:run-actor
Actor: "apidojo~youtube-scraper"
Input:
{
  "searchKeywords": ["[NICHE]", "best [NICHE]", "[NICHE] 2026", "[NICHE] for beginners"],
  "maxResults": 50,
  "type": "video"
}
```

**REST API fallback:**
```bash
curl -X POST   "https://api.apify.com/v2/acts/apidojo~youtube-scraper/runs?token=$APIFY_TOKEN"   -H "Content-Type: application/json"   -d '{"searchKeywords": ["personal finance tips", "best investing 2026", "investing for beginners"], "maxResults": 50}'
```

### Step 2: Analyze Title Patterns

Classify each video title:
```
title_formula:
  NUMBER_LIST = "Top [N]", "[N] Best", "[N] Things"
  HOW_TO = "How to", "Step-by-step", "The Complete Guide"
  VS_COMPARISON = "vs", "or", "Which is Better"
  WARNING = "Avoid", "Mistake", "Stop Doing", "Don't"
  STORY = "I tried", "What happened when", first-person
  YEAR_SPECIFIC = contains current year → high freshness signal
```

### Step 3: Score Trending Momentum

```
momentum = viewCount / days_since_published  # views per day

trend_score = (momentum / 10000, max 1) * 0.40
            + (likeCount / viewCount * 100 > 4 ? 1 : ratio/4) * 0.30
            + (commentCount / viewCount * 100 > 0.3 ? 1 : ratio/0.3) * 0.30
```

### Step 4: Edge Cases

- **All trending videos from one channel**: Likely a dominant creator in the niche — note this; it's a competitive signal, not a format trend. Look at the second and third most-viewed creators for broader signals
- **Niche is very small** (< 10 videos above threshold): Lower `min_views` to 10K; report available data
- **Year-specific content dominates**: Good sign for content with year in title — recommend "[niche] [year+1]" format as a strong ranking opportunity

## Output Format

```
# YouTube Trending Topics: [NICHE]
Videos analyzed: [N] | Above threshold ([MIN_VIEWS] views): [N] | Date: [DATE]

## Top Title Formulas (by Avg Views)
| Formula | # Videos | Avg Views | Avg Like Rate | Best Example |
|---------|---------|-----------|-------------|-------------|
| Number List | [N] | [N] | [X%] | "[title]" |
| How-To | [N] | [N] | [X%] | |

## Top Performing Videos
| Title | Views | Momentum (views/day) | Like Rate | Trend Score |
|-------|-------|---------------------|----------|------------|

## Trending Topic Themes
1. [Theme] — [N] videos, [N] total views
2. [Theme]

## Recommended Video Ideas
Based on trending patterns:
1. "[Specific video title recommendation using a winning formula]"
2. "[Video title recommendation]"
```

## Troubleshooting

**Results skewed by one old viral video**: Filter by `published_date` in the `date_range`; sort by momentum (views/day) not total views.
**Title formulas are too generic**: This is normal — YouTube title strategies are well-known. The value is in the specific topic within the formula.
**Niche has no recent high-performers**: The niche may be saturated or declining on YouTube; consider whether YouTube is the right platform for this content.

© apidojo · Apache-2.0 · apidojo-io/apidojo-skills

Similar skills

Everything for Marketing and content →

From the same set82

discovering-viral-youtube-videos-by-category Fetch trending YouTube videos across categories and countries using an Apify scraper. It pulls views, likes, channel details, and tags into your AI workspace. CX Codex +1 851installs scraping-tiktok-profile-data Pulls TikTok profile stats and metadata for a batch of accounts: followers, following, total likes, video count, bio. Handy when you need to vet a creator list. CX Codex +1 834installs finding-instagram-creators-by-location Finds Instagram creators who post from a given city, venue or neighborhood. Useful for geo-targeted campaigns and regional partnerships. CX Codex +1 833installs finding-healthcare-practices-via-google-search Searches Google for clinics, dental offices, and other healthcare providers. Use it to build a location- or specialty-based prospect list. CX Codex +1 816installs finding-tiktok-creators-using-trending-sounds Pulls TikTok posts made to a given track and returns the accounts behind them. Useful when you need a creator list for a brand placement. CX Codex +1 813installs building-full-social-audit-for-brand Audits brand profiles across Twitter, Instagram, TikTok, and YouTube via Apify scrapers. Computes engagement metrics and an aggregate brand health score. CX Codex +1 813installs scraping-instagram-location-content Pulls public Instagram posts tagged at one place and returns post URLs, captions, handles, likes and dates. Useful when you want to see what visitors post about a venue. CX Codex +1 810installs scraping-instagram-profile-data Collect Instagram profile stats and recent post metrics through an Apify scraper. Use it to check a set of accounts or export profile details. CX Codex +1 806installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor