如何使用 youtube api 按位置获取 public 视频?

How to get public videos by location using youtube api?

你好,我是 Youtube api 的新手,正在寻找使用 Youtube api 按位置获取 Youtube 中所有用户 public Youtube 视频。有一些现有的应用程序,如 Geofeedia, COEverywhere,TrackinU,可以按位置获取 public 个社交网站的帖子。有什么方法可以获取 Youtube 中某个区域的 public 视频吗?

YouTube Data API, using Search list 与位置参数一起使用:

The location parameter, in conjunction with the locationRadius parameter, defines a circular geographic area and also restricts a search to videos that specify, in their metadata, a geographic location that falls within that area. The parameter value is a string that specifies latitude/longitude coordinates e.g. (37.42307,-122.08427).

The location parameter value identifies the point at the center of the area. The locationRadius parameter specifies the maximum distance that the location associated with a video can be from that point for the video to still be included in the search results. The API returns an error if your request specifies a value for the location parameter but does not also specify a value for the locationRadius parameter.