YouTubeYouTubeSocial

List YouTube comments by id or parent comment id

youtube.x.youtube-comments-list

comments.list — Retrieves a list of resources, possibly filtered.

价格
free按供应商原价
成功率
—暂无成功率数据暂无成功率数据
延迟 p50
——
最后验证
—尚未验证
GEThttps://toolswitch.dev/v1/tools/youtube.x.youtube-comments-list预览
  • 可用平台额度调用
  • 同步返回
  • 读取公开数据

参数

参数类型必填说明示例
查询参数
id字符串可选Returns the comments with the given IDs for One Platform.
part字符串必填The *part* parameter specifies a comma-separated list of one or more comment resource properties that the API response will include.
parentId字符串可选Returns replies to the specified comment. Note, currently YouTube features only one level of replies (ie replies to top level comments). However replies to replies may be supported in the future.
pageToken字符串可选The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
maxResults整数可选The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
textFormat字符串可选The requested text format for the returned comments.
  • 查询参数
  • id字符串可选

    Returns the comments with the given IDs for One Platform.

  • part字符串必填

    The *part* parameter specifies a comma-separated list of one or more comment resource properties that the API response will include.

  • parentId字符串可选

    Returns replies to the specified comment. Note, currently YouTube features only one level of replies (ie replies to top level comments). However replies to replies may be supported in the future.

  • pageToken字符串可选

    The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

  • maxResults整数可选

    The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.

  • textFormat字符串可选

    The requested text format for the returned comments.

代码示例

将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。

预览
curl -X GET 'https://toolswitch.dev/v1/tools/youtube.x.youtube-comments-list' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"

网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 free 计费,已含服务费。