据我所知,我们有一个Youtube API,可通过使用以下API详细信息来获取基于某个地区的趋势YouTube视频:https://developers.google.com/youtube/v3/docs/videos/list
并给出chart=mostPopular
。
我有类似的要求:
1)。根据区域获取YouTube的趋势 channel 和播放列表。
2)。获取用户的视频历史记录详细信息。
我尝试搜索,但无法获得更多详细信息。
请让我知道是否有人为此工作。
最佳答案
您可以使用 search.list
:
type
- The type parameter restricts a search query to only retrieve a particular type of resource. The value is a comma-separated list of resource types. The default value is video,channel,playlist.
regionCode
- The regionCode parameter instructs the API to return search results for the specified country. The parameter value is an ISO 3166-1 alpha-2 country code.
order
- The order parameter specifies the method that will be used to order resources in the API response. The default value is relevance.
- rating – Resources are sorted from highest to lowest rating.
这可能是最接近您想要实现的目标。您可以将
type
设置为channel
或playlist
,根据区域将regionCode
设置,并将order
设置为rating
(最接近趋势)。当前在Channels: list或Playlists: list中没有regionCode,多数是流行参数希望这可以帮助。
关于android - 根据区域获取YouTube趋势( HitTest 门) channel 和播放列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43942045/