android - 根据区域获取YouTube趋势( HitTest 门) channel 和播放列表

标签 android youtube youtube-api youtube-data-api android-youtube-api

据我所知,我们有一个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设置为channelplaylist,根据区域将regionCode设置,并将order设置为rating(最接近趋势)。当前在Channels: listPlaylists: list中没有regionCode,多数是流行参数
希望这可以帮助。

关于android - 根据区域获取YouTube趋势( HitTest 门) channel 和播放列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43942045/

相关文章:

javascript - YouTube的jQuery获取视频页面HTML

android - OpenCV无法为ARM64目标构建(Android)

在 Canvas 上进行 android 动态 2D 绘图

.net - youtube - 视频上传失败 - 无法转换文件 - 视频编码错误?

css - YouTube iFrame 的 z-index 问题(在全屏模式下)

c# - 在youtube v3 API上直接上传

android - 9 补丁 Android 不显示边距

android - React-Native:错误无法安装应用程序。确保您正在运行 Android 模拟器

javascript - jwplayer v7.xx _.getVideoData 不是函数问题

php - PHP-从Youtube API遍历多维关联数组时出错