youtube_comment_by_id
采集 YouTube 视频评论(comment)与评论列表,含点赞、分享等互动数据 采集方式:通过Video ID采集 示例参数:video_id=8RePenzQH80;load_replies=10;num_of_comments=Top comments;num_of_comments=10 必填参数:load_replies、num_of_comments、sort_by、video_id
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"load_replies": "<load_replies>",
"num_of_comments": "<num_of_comments>",
"sort_by": "<sort_by>",
"video_id": "<video_id>"
},
"name": "youtube_comment_by_id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort_by | Yes | 排序方式:该参数用于指定采集评论时,评论的排序方式;可选值:热门评论(Top comments)、最新(Newest first) | |
| video_id | Yes | 视频唯一ID:该参数用于指定待采集的 YouTube 视频的唯一 ID。 | |
| file_name | No | Builder 输出文件名,不传时使用 {{TasksID}}。 | {{TasksID}} |
| load_replies | Yes | 加载回复:该参数用于指定页面加载回复时用到的时间。 | |
| num_of_comments | Yes | 评论数量:该参数用于指定采集评论的数量。 |