【问题标题】:Youtube Data Api has commentCount field and is this the number of comments on channel?Youtube Data Api 有 commentCount 字段,这是频道上的评论数吗?
【发布时间】:2013-09-03 13:08:20
【问题描述】:

我正在使用 Youtube Data Api v3 并且在统计部分有一个名为 cmetsCount 的字段,我想知道这是由不同用户在频道上制作的 cmets 还是频道用户在多个频道上制作的 cmets视频。

例如,如果我为 Channel 4 on Demand 发送一个 HTTP 请求,其中有很多用户制作的 cmets,我只会得到 ​​p>

GET https://www.googleapis.com/youtube/v3/channels?part=statistics&forUsername=4oD&key={YOUR_API_KEY}

HTTP 响应

{
"kind": "youtube#channelListResponse",
"etag": "\"jSwUP5mXUGwzAFbnLazODtWp_hU/wSdSPc8UxAJku7v41o3DVmEytAU\"",
"pageInfo": {
"totalResults": 1,
"resultsPerPage": 5
},
"items": [
{
"kind": "youtube#channel",
"etag": "\"jSwUP5mXUGwzAFbnLazODtWp_hU/qDF5UBIAV1LXx_oOE_V-wpUvx7c\"",
"id": "UCQQGTtqKZf0S0pQ2ey5c4Ag",
"statistics": {
"viewCount": "9245",
"commentCount": "2",
"subscriberCount": "62314",
"hiddenSubscriberCount": false,
"videoCount": "1"
}
}
]
}

谢谢

【问题讨论】:

    标签: youtube-api


    【解决方案1】:

    Youtube API v3 说“commentCount 是频道的评论数”。这意味着commentCount 不是频道所有视频的评论总数,而是频道评论的总数。我们知道,我们可以在频道的讨论部分对特定频道进行评论,例如here

    【讨论】:

    • 嗨,我试图在 youtube api 文档上查找此信息,但没有运气。您能否将链接发送给我,其中显示 commentCount 实际上是特定频道的评论,而不是该频道上传的所有视频的 cmets 的总和。谢谢
    • HERE 查看此链接并查看属性中的“statistics.commentCount”属性。我已经为我的频道尝试过,它确实适用于频道。
    猜你喜欢
    • 1970-01-01
    • 2022-11-07
    • 2013-11-21
    • 2012-11-07
    • 1970-01-01
    • 2013-12-16
    • 2010-12-13
    • 2016-09-01
    • 2018-04-14
    相关资源
    最近更新 更多