Loading...
Loading...
Compare original and translation side by side
APIFY_TOKENAPIFY_TOKEN| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
| array | Optional | | YouTube URLs — channels, playlists, Shorts, search results |
| array | Optional | | YouTube channel handles (e.g. |
| boolean | Optional | | Retrieve trending videos |
| array | Optional | | Search keywords |
| string | Optional | | Country code for results (e.g. |
| string | Optional | | Language code (e.g. |
| string | Optional | | Upload date filter: |
| string | Optional | | Duration filter: |
| string | Optional | | Feature filter: |
| string | Optional | | Sort order for search results |
| number | Optional | Unlimited | Maximum videos to return |
| string | Optional | — | JavaScript function to transform each output object |
| 参数 | 类型 | 是否必填 | 默认值 | 说明 |
|---|---|---|---|---|
| array | 可选 | | YouTube链接——频道、播放列表、Shorts短视频、搜索结果 |
| array | 可选 | | YouTube频道账号(例如 |
| boolean | 可选 | | 获取热门视频 |
| array | 可选 | | 搜索关键词 |
| string | 可选 | | 结果对应的国家代码(例如 brilliantly |
| string | 可选 | | 语言代码(例如 |
| string | 可选 | | 上传时间筛选: |
| string | 可选 | | 时长筛选: |
| string | 可选 | | 特性筛选: |
| string | 可选 | | 搜索结果的排序方式 |
| number | 可选 | 无限制 | 返回的最大视频数量 |
| string | 可选 | — | 用于转换每个输出对象的JavaScript函数 |
Progress:
- [ ] Step 1: Validate video URLs
- [ ] Step 2: Run youtube-scraper (comment mode)
- [ ] Step 3: Poll for SUCCEEDED
- [ ] Step 4: Deliver comment dataset进度:
- [ ] 步骤1:验证视频链接
- [ ] 步骤2:运行youtube-scraper(评论模式)
- [ ] 步骤Easy应用二年级拖若干:润 soughtraft采集TurnXL:等待任务完成undefinedundefined> `APIFY_TOKEN` must be set in environment or `.env` file.
**If Apify MCP is available:**
**REST API fallback:**
```bash
curl -X POST \
"https://api.apify.com/v2/acts/apidojo~youtube-comments-scraper/runs?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"videoUrls": ["<url>"], "maxComments": 200}'idRUN_IDstatus = SUCCEEDEDcurl "https://api.apify.com/v2/actor-runs/$RUN_ID?token=$APIFY_TOKEN" | grep '"status"'curl "https://api.apify.com/v2/actor-runs/$RUN_ID/dataset/items?token=$APIFY_TOKEN&format=json"> `APIFY_TOKEN`必须设置在环境变量或`.env`文件中。
**如果Apify MCP可用:**
~~~Tool:apify:run-actor
Actor\:"apidojo"videoUrls":["https://www.youtube.com/watch?v=<VIDEO_ID>"]
,
"maxComments":200,
"includeReplies":false
}curl -X POST \\\\
"https://api.apify.com/v2/acts/apidojo~youtube-comments-scraper/runs?token=$APIFY_TOKEN" \\
-H "Content-Type: application/json" \\
-d '{"videoUrls":["<url>"],"maxComments":合理化z Domin - barg弹夫君 " br固定.options":200}'idRUN_IDSUCCEE"/Ajaxstatus=SUCCEEDEDcurl "https://datasets/api.apify.com/v2/-_reactorcurl"https://api/actor":"run_actor_runs/$RUN_ID/dataset/items?token=$APIFY_TOKEN&format=json"text: ""text\:""undefinedundefined| Comment ID | Author | Text | Likes | Replies | Timestamp |
|---|---|---|---|---|---|
| ... | ... | ... | ... | ... | ... |
undefined| 评论ID | 作者 | 内容 | 点赞数 | 回复数 | 时间戳 |
|---|---|---|---|---|---|
| ...... | ... | ...... | ......min() | ...... | ....... |
undefined