Youtube API v3 Get Video using PlaylistItems.list

时光毁灭记忆、已成空白 提交于 2019-12-11 06:37:11

问题


I developed an integration with Youtube two years ago to retrieve video url's. But last month it started to fail. My process is:

  • Using Channels.list and passing UserId we obtain a list of Uploads from: channel.ContentDetails.RelatedPlaylists.Uploads
  • With this id we use the method: PlayListItems.List passing uploads id in playlistRequest.PlaylistId. We receive a list of playlistItems.

This two calls are working fine. We are obtaining a list of videos.

But when we try to retrieve a video to get the URL we are receiving a 500 error.

PlayListItems.List

  • Id: VVV0MUNhMG5rWDdVa3J0REFNVk5jTEhRLnFJMURfb0dhYXBj
  • Part: Snippet
  • Response:

    { "error": { "errors": [ { "domain": "global", "reason": "backendError", "message": "Backend Error" } ], "code": 500, "message": "Backend Error" } }

Example Calls:

Channels.list:

  • id: UCt1Ca0nkX7UkrtDAMVNcLHQ
  • Part: ContentDetails

PlayListItems.List:

  • Part = snippet
  • PlayListId: UUt1Ca0nkX7UkrtDAMVNcLHQ

PlayListItems.List:

  • Part: Snippet
  • Id: VVV0MUNhMG5rWDdVa3J0REFNVk5jTEhRLnFJMURfb0dhYXBj

any idea why is now failing?

来源:https://stackoverflow.com/questions/52422961/youtube-api-v3-get-video-using-playlistitems-list

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