【问题标题】:Get trending (mostPopular) channels and playlist of Youtube based on region根据地区获取 Youtube 的热门(最受欢迎)频道和播放列表
【发布时间】:2017-05-12 16:01:40
【问题描述】:

据我所知,我们有一个 Youtube API,可以通过使用以下 API 详细信息来获取基于区域的热门 youtube 视频:

https://developers.google.com/youtube/v3/docs/videos/list 并提供chart=mostPopular

我也有类似的要求:

1)。根据地区获取 youtube 的热门频道和播放列表。

2)。获取用户视频历史详细信息。

我尝试搜索但无法获得更多详细信息。 请让我知道是否有人处理过它。

【问题讨论】:

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


    【解决方案1】:

    你可以使用search.list:

    类型

    • type 参数将搜索查询限制为仅检索特定类型的资源。该值是以逗号分隔的资源类型列表。默认值为视频频道播放列表

    区域代码

    • regionCode 参数指示 API 返回指定国家/地区的搜索结果。参数值为ISO 3166-1 alpha-2 国家代码。

    订购

    • order 参数指定将用于在 API 响应中对资源进行排序的方法。默认值为相关性
    • rating – 资源按从高到低排序。

    这可能是最接近您想要实现的目标。您根据地区将type 设置为channelplaylist,将regionCode 设置为,将order 设置为rating(最接近趋势)。目前没有regionCode,最流行的参数在Channels: listPlaylists: list

    希望这会有所帮助。

    【讨论】:

    • 为了扩展一点,没有 regionCode 和通道的示例 GET 将是 https://www.googleapis.com/youtube/v3/search?part=snippet&type-channel&maxResults=50&order=rating
    猜你喜欢
    • 2016-09-26
    • 1970-01-01
    • 2018-08-01
    • 2011-08-17
    • 1970-01-01
    • 2020-01-31
    • 1970-01-01
    • 2018-04-18
    • 2018-02-19
    相关资源
    最近更新 更多