gpt4 book ai didi

youtube - 列出 channel 中的订阅者

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

我可以从不是我的 channel 获得所有订阅者的列表吗?即我想从pewdiepie channel 获得所有订阅者。今天,有了Youtube API v3,我可以获得他的订阅,但是没有找到有关获得他的订阅者的任何文档。有人知道吗?
提前致谢。

最佳答案

订阅者是当前订阅 channel 的人员列表。

如果您检查channel.list返回的Channels resource,则最好的方法是获取SubscriberCount。因此,不,您无法获取 channel 的订户列表。这与您是否拥有 channel 无关,或者该数据似乎没有被API公开。

背景信息:

A subscription resource contains information about a YouTube user subscription. A subscription notifies a user when new videos are added to a channel or when another user takes one of several actions on YouTube, such as uploading a video, rating a video, or commenting on a video.



请求订阅我不拥有的 channel
GET https://www.googleapis.com/youtube/v3/subscriptions?part=snippet%2CcontentDetails&channelId=UC4rasfm9J-X4jNl9SvXp8xA&key={YOUR_API_KEY}

响应
{
"error": {
"errors": [
{
"domain": "youtube.subscription",
"reason": "subscriptionForbidden",
"message": "The requester is not allowed to access the requested subscriptions."
}
],
"code": 403,
"message": "The requester is not allowed to access the requested subscriptions."
}
}

YouTube API将不会为经过身份验证的用户不拥有的 channel 返回订阅。

关于youtube - 列出 channel 中的订阅者,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46966252/

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