How to get Youtube GData Playlist JSON response

孤人 提交于 2019-12-11 09:57:06

问题


I have to parse this youtube playlist into my app using gdata: https://www.youtube.com/playlist?list=PLWz5rJ2EKKc9ofd2f-_-xmUi07wIGZa1c

So I think, I should need to use below link to get JSON response: http://gdata.youtube.com/feeds/api/playlists/PLWz5rJ2EKKc9ofd2f-_-xmUi07wIGZa1c?v=2&alt=jsonc

But whenever i am opening it on browser, every time getting:

{"apiVersion":"2.1","error":{"code":410,"message":"No longer available","errors":[{"domain":"GData","code":"NoLongerAvailableException","internalReason":"No longer available"}]}}

I have tried with latest version (i.e - 3):

http://gdata.youtube.com/feeds/api/playlists/PLWz5rJ2EKKc9ofd2f-_-xmUi07wIGZa1c?v=3&alt=jsonc

and getting: {"error":{"code":403,"message":"Version 3 is not supported.","errors":[{"domain":"GData","code":"versionNotSupported","internalReason":"Version 3 is not supported."}]}}

So how may i get gdata json response ? to parse later in my android app


回答1:


the api you work with is no more available try the new Youtube API

https://developers.google.com/youtube/v3/



来源:https://stackoverflow.com/questions/31113192/how-to-get-youtube-gdata-playlist-json-response

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!