Just One APIYouTubeSocial

YouTube video comments by video id

justoneapi.x.youtube-get-video-comment-v1

Retrieve first-level comments for a YouTube video with sorting, locale options, and cursor pagination.

价格
$0.01476/success按目录价
成功率
—暂无成功率数据暂无成功率数据
延迟 p50
——
最后验证
2026年7月28日实测可用
GEThttps://toolswitch.dev/v1/tools/justoneapi.x.youtube-get-video-comment-v1?cursor=0&sortBy=newest&videoId=dQw4w9WgXcQ&countryCode=US&languageCode=zh-CNBeta
  • 可用平台额度调用
  • 同步返回
  • 读取公开数据

参数

参数类型必填说明示例
查询参数
cursor字符串可选Pagination cursor returned by the previous response.
sortBy字符串可选Sort order for the comment list. Available Values: - `top`: Top comments - `newest`: Newest comments One of: top, newest.newest
videoId字符串必填The unique identifier for a YouTube video.dQw4w9WgXcQ
countryCode字符串可选Region code for response data.US
languageCode字符串可选Language preference for response data.zh-CN
  • 查询参数
  • cursor字符串可选

    Pagination cursor returned by the previous response.

  • sortBy字符串可选

    Sort order for the comment list. Available Values: - `top`: Top comments - `newest`: Newest comments One of: top, newest.

    示例:newest

  • videoId字符串必填

    The unique identifier for a YouTube video.

    示例:dQw4w9WgXcQ

  • countryCode字符串可选

    Region code for response data.

    示例:US

  • languageCode字符串可选

    Language preference for response data.

    示例:zh-CN

代码示例

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

Beta
curl -X GET 'https://toolswitch.dev/v1/tools/justoneapi.x.youtube-get-video-comment-v1?cursor=0&sortBy=newest&videoId=dQw4w9WgXcQ&countryCode=US&languageCode=zh-CN' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"

网关接口为 Beta,地址与鉴权方式可能变更。 示例参数仅为样例数据。 调用按 $0.01476/success 计费,已含服务费。