Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
556 views
in Technique[技术] by (71.8m points)

Youtube subscriber count with Youtube Data Api V3

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

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

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?

question from:https://stackoverflow.com/questions/30723866/youtube-subscriber-count-with-youtube-data-api-v3

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Use it like this:

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

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...