google-apis-explorer - 与 UI 上描述的值相比,YouTube 数据 API 返回的 viewCount 值不一致
问题描述
例如,以下频道 https://www.youtube.com/user/kidrauhl 在 about 部分有 21,454,838,559 次观看。
但是,当我使用 API 的 channels.list 方法(https://developers.google.com/youtube/v3/docs/channels/list)时,响应的统计部分中的 viewCount 完全不同:
"statistics": {
"viewCount": "994127449",
"commentCount": "0",
"subscriberCount": "54000000",
"hiddenSubscriberCount": false,
"videoCount": "172"
}
解决方案
https://developers.google.com/youtube/v3/docs/channels#statistics.viewCount
根据文档,它说:
statistics.viewCount
The number of times the channel has been viewed.
所以我猜about页面上的观看次数是所有视频的合并观看次数,而statistics.viewCount是频道页面累积的观看次数。
推荐阅读
- ruby-on-rails - Peatio [错误]:参数数量错误(2 对 3)
- node.js - 标记处出现意外的标记“<”
- android - android kotlin firestore 在放置在非活动类中时返回 0 值
- curl - Github API 错误 - { "message": "Not Found", "documentation_url": "https://developer.github.com/v3" } 在 cURL 终端中制作 repo
- python - 具有 pywinauto 巨大文件大小的 Pyinstaller
- python - 当一列在熊猫中具有唯一值时,如何计算?
- c# - 使用 Moq 模拟 ControllerBase 请求
- python-3.x - 如何使用 python 将 .pickle 或 .dat 文件转换为 .tflite?
- angular - 如何在量角器中使用占位符获取元素的默认值?
- c++ - C++ 模板选择 - 不寻常的情况