使用 Youtube 数据获取与特定主题相关的视频的最便捷方式 API

The most convenient way to get videos related with a specific topic using Youtube Data API

我正在使用 Youtube 数据 API 来获取有关某些特定游戏的视频。正如您可能知道的那样,使用 search.list 需要 100 个单位,我认为它会占用您的大量配额。

有没有一种方法可以使用 videos.list 来做到这一点,它只需要 5 个单位。可能有什么过滤,但我自己查不到。

例如这是 Youtube Gaming 下的 GTA5 游戏 link。

https://gaming.youtube.com/game/UCT1tnevF8bn9Nwr6ZHA9Mag

link 中的粗体部分是什么?它是像 gameID 之类的东西吗?使用 Youtube 数据获取视频是否有用 API?

我的目标是以低单位成本获得这些视频。我对任何想法都持开放态度。语言不是很重要,但我正在使用 Java.

如果你想查询关于特定主题的视频,那么我认为只有 search.list 可以让你访问它。因为 search.list has the only one that has a parameter topicId that indicates that the API response should only contain resources associated with the specified topic. If you check the playlist.list and video.list 他们没有那个特定的参数