analyzing-youtube-competitor-channel-strategy

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Analyzing Youtube Competitor Channel Strategy

分析YouTube竞品频道策略

Executes analyzing youtube competitor channel strategy using apidojo scrapers. Part of the apidojo intelligence skills library.
使用apidojo爬虫执行YouTube竞品频道策略分析,属于apidojo情报技能库的一部分。

Prerequisites

前置条件

  • APIFY_TOKEN
    environment variable set
  • Optional: Apify MCP server installed
  • 已设置
    APIFY_TOKEN
    环境变量
  • 可选:已安装Apify MCP服务器

Inputs

输入参数

ParameterTypeRequiredDefaultNotes
startUrls
arrayOptional
[]
YouTube URLs — channels, playlists, Shorts, search results
youtubeHandles
arrayOptional
[]
YouTube channel handles (e.g.
@kurzgesagt
)
getTrending
booleanOptional
false
Retrieve trending videos
keywords
arrayOptional
[]
Search keywords
gl
stringOptional
us
Country code for results (e.g.
US
,
GB
)
hl
stringOptional
en
Language code (e.g.
en
,
de
)
uploadDate
stringOptional
all
Upload date filter:
any
,
hour
,
today
,
week
,
month
,
year
duration
stringOptional
all
Duration filter:
any
,
short
,
long
features
stringOptional
all
Feature filter:
4k
,
hd
,
live
,
cc
,
3d
,
hdr
, etc.
sort
stringOptional
r
Sort order for search results
maxItems
numberOptionalUnlimitedMaximum videos to return
customMapFunction
stringOptionalJavaScript function to transform each output object
参数类型是否必填默认值说明
startUrls
数组可选
[]
YouTube链接 — 频道、播放列表、Shorts、搜索结果
youtubeHandles
数组可选
[]
YouTube频道用户名(例如
@kurzgesagt
getTrending
布尔值可选
false
获取热门视频
keywords
数组可选
[]
搜索关键词
gl
字符串可选
us
结果对应的国家代码(例如
US
,
GB
hl
字符串可选
en
语言代码(例如
en
,
de
uploadDate
字符串可选
all
上传时间筛选:
any
,
hour
,
today
,
week
,
month
,
year
duration
字符串可选
all
时长筛选:
any
,
short
,
long
features
字符串可选
all
功能筛选:
4k
,
hd
,
live
,
cc
,
3d
,
hdr
sort
字符串可选
r
搜索结果排序方式
maxItems
数字可选无限制返回的最大视频数量
customMapFunction
字符串可选用于转换每个输出对象的JavaScript函数

Workflow

工作流程

Progress:
- [ ] Step 1: Define parameters
- [ ] Step 2: Run youtube-scraper
- [ ] Step 3: Filter and classify results
- [ ] Step 4: Score by quality and relevance
- [ ] Step 5: Deliver output
进度:
- [ ] 步骤1:定义参数
- [ ] 步骤2:运行youtube-scraper
- [ ] 步骤3:筛选并分类结果
- [ ] 步骤4:按质量和相关性评分
- [ ] 步骤5:交付输出

Step 2: Run the Actor

步骤2:运行Actor

Recommended — run_actor.js (handles waiting, output, and file saving automatically):
bash
undefined
推荐方式 — run_actor.js(自动处理等待、输出和文件保存):
bash
undefined

Quick answer (prints table to chat)

快速输出(在聊天中打印表格)

node scripts/run_actor.js
--actor "apidojo~youtube-scraper"
--input '{"param": "value"}'
node scripts/run_actor.js
--actor "apidojo~youtube-scraper"
--input '{"param": "value"}'

Save as CSV

保存为CSV

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

Save as JSON

保存为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: { "searchTerms": "https://www.youtube.com/@[COMPETITOR_CHANNEL]", "maxItems": 100 }

**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 '{"searchTerms": "https://www.youtube.com/@[COMPETITOR_CHANNEL]", "maxItems": 100}'
Wait for
SUCCEEDED
. Fetch dataset:
bash
curl "https://api.apify.com/v2/actor-runs/$RUN_ID/dataset/items?token=$APIFY_TOKEN"
node scripts/run_actor.js
--actor "apidojo~youtube-scraper"
--input '{"param": "value"}'
--output YYYY-MM-DD_results.json --format json
> `APIFY_TOKEN`必须在环境变量或`.env`文件中设置。

**如果Apify MCP可用:**
工具: apify:run-actor Actor: "apidojo~youtube-scraper" 输入: { "searchTerms": "https://www.youtube.com/@[COMPETITOR_CHANNEL]", "maxItems": 100 }

**REST API备选方案:**
```bash
curl -X POST \
  "https://api.apify.com/v2/acts/apidojo~youtube-scraper/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchTerms": "https://www.youtube.com/@[COMPETITOR_CHANNEL]", "maxItems": 100}'
等待执行状态变为
SUCCEEDED
。获取数据集:
bash
curl "https://api.apify.com/v2/actor-runs/$RUN_ID/dataset/items?token=$APIFY_TOKEN"

Step 3: Classify Results

步骤3:分类结果

classification: GROWING (view rate > 20%) | HEALTHY (10-20%) | PLATEAU (5-10%) | DECLINING (< 5%)
分类: GROWING(观看率>20%)| HEALTHY(10-20%)| PLATEAU(5-10%)| DECLINING(<5%)

Step 4: Score Each Result

步骤4:为每个结果评分

score = channel_health = avg_views/subscriber_count * 100  # view rate; healthy > 10%
score = channel_health = avg_views/subscriber_count * 100  # 观看率;健康值>10%

Step 5: Edge Cases

步骤5:边缘情况

  • Channels with old viral videos have inflated subscriber counts relative to current performance — use median views from last 20 videos as the current health indicator
Additional fallbacks:
  • < 20 results: Broaden search terms; remove secondary filters
  • No results: Verify the search terms are correct; try alternate phrasings
  • Data quality issues: Remove entries with missing key fields; note count in output
  • 拥有旧爆款视频的频道,其订阅量与当前表现不匹配——使用最近20个视频的中位数观看量作为当前健康指标
其他备选方案:
  • 结果少于20条:扩大搜索词范围;移除次要筛选条件
  • 无结果:验证搜索词是否正确;尝试其他表述
  • 数据质量问题:移除缺失关键字段的条目;在输出中注明数量

Output Format

输出格式

undefined
undefined

Analyzing Youtube Competitor Channel Strategy

分析YouTube竞品频道策略

Results: [N] | Date: [DATE]
#[Key Field][Metric 1][Metric 2][Classification][Score]
1[value][value][value][type][0.XX]
结果数量: [N] | 日期: [DATE]
序号[关键字段][指标1][指标2][分类][评分]
1[数值][数值][数值][类型][0.XX]

Summary

总结

Top result: [description] Key finding: [insight]
undefined
最优结果: [描述] 关键发现: [洞察]
undefined

Troubleshooting

问题排查

Too few results: Broaden the primary search term; remove restrictive filters. Low quality results: Apply minimum score threshold (≥ 0.50) to filter noise. Actor fails to run: Verify API key; check actor status at apify.com/apidojo.
结果过少:扩大主搜索词范围;移除限制性筛选条件。 结果质量低:应用最低评分阈值(≥0.50)过滤无效数据。 Actor运行失败:验证API密钥;在apify.com/apidojo查看Actor状态。