-1

我正在研究 YouTube API。我对V2和V3进行分析。目前我试图检索高清视频。当我使用相同的查询时,输出不匹配。

使用 V3

https://www.googleapis.com/youtube/v3/search?part=snippet&type=video&q=football+-soccer&start-index=1&max-results=10&videoDefinition=high&key={Developer key}

使用 V2

https://gdata.youtube.com/feeds/api/videos?q=football+-soccer&orderby=published&start-index=1&max-results=10&v=2&hd&alt=jsonc

V3哪里稳定?还是我应该继续为我的项目使用 v2。

4

1 回答 1

1

您最好在 API V3 之上构建。V3 是我们当前大部分投资的方向,我们正在向 V3 添加新功能以及错误修复。另外,我建议查看主题 API,更多信息在这里:https ://developers.google.com/youtube/v3/guides/searching_by_topic ,主题将帮助您获得更可靠(语义上)的搜索结果。只有 API V3 支持主题 API。

于 2013-06-29T01:21:43.130 回答