使用 Youtube V3 API 的 Youtube 相关视频 [英] Youtube Related Videos using Youtube V3 API
本文介绍了使用 Youtube V3 API 的 Youtube 相关视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要使用 Youtube V3 API 的 Youtube 相关视频的 API URL.但是我找不到直接的 API 调用,就像在版本 2 中一样.我错过了什么吗?
I need the API URL for Youtube Related Videos using the Youtube V3 API. But I couldn't find the direct API call, like it is in Version 2. Did I miss something?
https://developers.google.com/youtube/v3/docs/
推荐答案
您是否正在尝试查找与视频相关的视频?
Are you trying to find videos related to a video?
您可以为此使用 search->list 调用指定relatedToVideoId"
You can use search->list call for this with specifying the "relatedToVideoId"
对于任何正在寻找编码示例的人:
And for anyone looking for a coded example:
GET https://www.googleapis.com/youtube/v3/search?part=snippet&relatedToVideoId=5rOiW_xY-kc&type=video&key={YOUR_API_KEY}
这篇关于使用 Youtube V3 API 的 Youtube 相关视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文