使用 Youtube Data Api V3 的 Youtube 订阅者数量 [英] Youtube subscriber count with Youtube Data Api V3

查看:21
本文介绍了使用 Youtube Data Api V3 的 Youtube 订阅者数量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以之前我通过 youtube data api v2 获得了 youtube 频道订阅人数.

So previously i was getting a youtube channel subscriber count with youtube data api v2.

我使用了以下(我使用 TED 频道进行演示)

I used the following (I am using TED channel for demo purposes)

http://gdata.youtube.com/feeds/api/users/TEDtalksDirector?alt=json&callback=jQuery111202977260369807482_1433828589506&jsonp&_=1433828589507

但是对于新的 v3 api,结果中没有订阅者计数.

However with the new v3 api, there is no subscriber count in the result.

https://www.googleapis.com/youtube/v3/subscriptions?part=snippet%2CcontentDetails&channelId=UCAuUUnT6oDeKwE6v1NGQxug&key=fhjfshdjfhsjdhfjshdjfhsjdfhsjdhfjshdjfhsjdhs

有什么方法可以获得订阅者计数值吗?

Is there a way in which I can get the subscriber count value?

推荐答案

这样使用:

https://www.googleapis.com/youtube/v3/channels?part=statistics&id=channel_id&key=your_key

您可以在此处尝试您的 API 请求:https://developers.google.com/youtube/v3/docs/channels/list#试一试

You can try your API request here: https://developers.google.com/youtube/v3/docs/channels/list#try-it

这篇关于使用 Youtube Data Api V3 的 Youtube 订阅者数量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆