gpt4 book ai didi

javascript - 如何找出YouTube上关注者的确切人数?

转载 作者:行者123 更新时间:2023-12-03 06:05:48 24 4
gpt4 key购买 nike

我需要通过api找出 channel 上订阅者的确切人数。
该 channel 不在我的帐户上,但我有权观看。
我需要显示在studio.youtube.com上的确切金额
我用
https://www.googleapis.com/youtube/v3/channels?part=statistics,snippet&mine=true&access_token=[your_access_token]

但是它仅显示一个个人帐户,如果您替换“mine” =>“managedByMe”,我将看到一个错误
Img error

最佳答案

根据official YouTube Data API docs,获得给定 channel 的订户数量的唯一方法是通过以下属性:

statistics.subscriberCount (unsigned long)
The number of subscribers that the channel has. This value is rounded down to three significant figures. Please see the Revision History or the YouTube Help Center for more details about how subscriber counts are rounded.

statistics.hiddenSubscriberCount (boolean)
Indicates whether the channel's subscriber count is publicly visible.


提供的数字是四舍五入的-因此不准确。因此,无论多么不幸,您都无法从YouTube数据API获取所需的信息。

根据 this support post(以下重点是我的):

To create more consistency everywhere that we publicly display subscriber counts, starting in August 2019, we’ll begin showing the abbreviated subscriber number across all public YouTube surfaces. Third parties that use YouTube’s API Services will also access the same public facing counts you see on YouTube. Creators will still be able to see their exact number of subscribers in YouTube Studio.


The change will take place across YouTube and the public YouTube Data API Service. Creators will continue to see their full subscriber counts privately in YouTube Studio and YouTube Analytics.


实际上,确切的数字只会显示给YouTube Studio或YouTube分析工具中的创建者。

关于javascript - 如何找出YouTube上关注者的确切人数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63980106/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com