【问题标题】:not getting result from youtube channel:list api没有从 youtube 频道获得结果:list api
【发布时间】:2018-07-10 15:27:57
【问题描述】:

我正在使用 youtube 数据 API (GET https://www.googleapis.com/youtube/v3/channels?part=snippet&categoryId=GCQ29va2luZyAmIEhlYWx0aA&maxResults=5&key={YOUR_API_KEY})。但没有得到回应的频道列表。尝试了很多来自不同 regionCode 的 categoryId。

response from youtube api - 200

{
     "kind": "youtube#channelListResponse",
     "etag": "Wu2llbfqCdxIVjGbVPm2DslKPCA/ewwRz0VbTYpp2EGbOkvZ5M_1mbo",
     "pageInfo": {
       "totalResults": 0,
       "resultsPerPage": 5
     },
    "items": [
    ]
}

【问题讨论】:

    标签: youtube-api youtube-data-api


    【解决方案1】:

    看起来你复制粘贴了 URI

    GET https://www.googleapis.com/youtube/v3/channels
    

    ,附加一个 API_KEY 然后将其粘贴到您的浏览器上。

    我建议使用Try-it 进行测试,然后在实际编码应用程序时使用 OAuth 进行授权。你可以看到几个Quickstarts in the Youtube Guide

    【讨论】:

    猜你喜欢
    • 2018-01-17
    • 2015-03-27
    • 2016-03-01
    • 2016-01-22
    • 1970-01-01
    • 2016-03-12
    • 2019-06-21
    • 1970-01-01
    • 2018-12-25
    相关资源
    最近更新 更多