无需 API 密钥即可抓取 YouTube。一个 actor 支持四种模式:关键词搜索、频道视频、单个视频详情、频道 Shorts。每条结果包含 title、view_count、like_count、comment_count、时长、标签、缩略图、含订阅数的频道信息、is_short / is_live / is_premiere 标记、计算得出的 engagement_rate,并可通过 includeDetails 获取完整详情(描述、标签、类目、语言)。
# 通过 Apify API 启动运行 curl -X POST "https://api.apify.com/v2/acts/santamaria-automations~youtube-scraper/runs?token=YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "mode": "channel", "urls": ["https://www.youtube.com/@MrBeast"], "maxResults": 100, "sortBy": "views", "includeDetails": true }' # 或通过 MCP 与 AI 代理配合使用: # https://mcp.apify.com?tools=santamaria-automations/youtube-scraper
| 字段 | 类型 | 示例 |
|---|---|---|
| id | string | dQw4w9WgXcQ |
| title | string | How to Code in Python |
| view_count | integer | 1,500,000 |
| like_count | integer | 45,000 |
| comment_count | integer | 3,200 |
| engagement_rate | number | 3.2 |
| duration | string | 12:34 |
| channel_name | string | TechTutorials |
| is_short | boolean | false |
| thumbnail_url | string | https://i.ytimg.com/vi/dQw4w9WgXcQ/maxresdefault.jpg |