Get youtube video info with new APIs v3

后端 未结 1 566
星月不相逢
星月不相逢 2021-02-14 01:40

Usually I retrieved clip\'s info by YouTube Data API V2, but now this version(v2) has been officially deprecated.

I used this URL to get video info:

\'h         


        
1条回答
  •  遇见更好的自我
    2021-02-14 01:51

    Depending on the information you should be able to use the following endpoint to gain the information about the video you require. Just filter it down using the id query parameter to the video id.

    https://developers.google.com/youtube/v3/docs/videos/list

    See the Below URL: for example using the video id 4Y4YSpF6d6w and setting part to id,snippet you will receive channelId, title, description, tags, and categoryId properties. The above documentation contains all of the part parameters depending on the information you require about the video.

    GET https://www.googleapis.com/youtube/v3/videos?part=id%2C+snippet&id=4Y4YSpF6d6w&key={YOUR_API_KEY}

    0 讨论(0)
提交回复
热议问题