最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to find out the exact number of followers on YouTube? - Stack Overflow

programmeradmin6浏览0评论

I need to find out the exact number of subscribers on the channel via API.

The channel is not on my account, but I have the rights to watch. I need the exact amount shown on studio.youtube.

I use:

,snippet&mine=true&access_token=[your_access_token].

But it shows only a personal account, and if you replace mine with managedByMe, I will see an error:

I need to find out the exact number of subscribers on the channel via API.

The channel is not on my account, but I have the rights to watch. I need the exact amount shown on studio.youtube..

I use:

https://www.googleapis./youtube/v3/channels?part=statistics,snippet&mine=true&access_token=[your_access_token].

But it shows only a personal account, and if you replace mine with managedByMe, I will see an error:

Share Improve this question edited Mar 3, 2021 at 21:40 stvar 6,9852 gold badges17 silver badges31 bronze badges asked Aug 22, 2020 at 13:47 Роман ProstovРоман Prostov 311 silver badge2 bronze badges 1
  • Wele to Stackoverflow! Please take your time to absorb SO's remendations addressed to new users. Afterwards, edit your post, adding to it relevant missing information (without which the other SO users cannot e to your help). For example, do obey to SO guidelines: do not post images, but (formatted) plain text. – stvar Commented Aug 22, 2020 at 14:13
Add a ment  | 

2 Answers 2

Reset to default 7

According to the official YouTube Data API docs, the only way to obtain the subscriber count of a given channel is through the following properties:

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.

The number provided is rounded -- thus is not exact. Consequently, however unfortunate, is true that you cannot obtain the info you're looking for from the YouTube Data API.


According to this support post (the emphasis below is mine):

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.

Indeed exact numbers are shown only to creators within YouTube Studio or YouTube Analytics only.

Now that each channel has a live subscriber count page accessible from inside of YouTube Studio -> Analytics -> "See live count"... it seems like you could write a screen scraper to gather this information for your own channel.

发布评论

评论列表(0)

  1. 暂无评论