优酷API v3获取相关视频,最大结果不起作用



>我在下面尝试过这个,但它只返回 4 ,我需要 50 ..我该怎么做?

   https://www.googleapis.com/youtube/v3/search?part=snippet&relatedToVideoId=5rOiW_xY-kc&type=video&key={api-key}&max-results=50

参数中有一个拼写错误 - 它应该是maxResults,而不是max-results。

而不是max-results,你需要"maxResults":

https://www.googleapis.com/youtube/v3/search?part=snippet&relatedToVideoId=5rOiW_xY-kc&type=video&key={api-key}&maxResults=50

最新更新