How to get public videos by location using youtube api?

大城市里の小女人 提交于 2020-01-17 05:36:24

问题


Hello i am new to Youtube api and looking for getting all the users public Youtube videos in Youtube by location using Youtube api .There are some existing apps like Geofeedia,COEverywhere, TrackinU which can get public posts of social networking sites by location . Is there is any way to get public Videos of an area in Youtube ?


回答1:


Using YouTube Data API, using Search list with location parameter:

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.



来源:https://stackoverflow.com/questions/33240228/how-to-get-public-videos-by-location-using-youtube-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!