Youtube api youtubeAnalytics.reports.query返回403禁止
作为内容所有者,我尝试使用Google API explorer运行一个查询,结果得到403禁止,以下是重现问题的步骤:Youtube api youtubeAnalytics.reports.query返回403禁止,youtube-api,Youtube Api,作为内容所有者,我尝试使用Google API explorer运行一个查询,结果得到403禁止,以下是重现问题的步骤: 使用登录到google.comcollectivedigitalstudios@gmail.com 转到API资源管理器并输入想要的参数() 授权请求的作用域: 执行 以下是完整的请求/响应: youtubeAnalytics.reports.query在14分钟前执行执行执行时间:796毫秒 您没有执行此方法的权限。 请求 GET https://www.google
GET https://www.googleapis.com/youtube/analytics/v1/reports?ids=contentOwner%3D%3DCollective&start-date=2013-08-01&end-date=2013-08-02&metrics=views&filters=channel%3D%3DUCYjk_zY-iYR8YNfJmuzd70A&key={YOUR_API_KEY}
Authorization: Bearer ya29.AHES6ZQM1y53hLCD4uBa5BSjACg1Pr8NK4WmUUm_jyuxKYhVqA
X-JavaScript-User-Agent: Google APIs Explorer
响应
403 Forbidden
- Hide headers -
cache-control: private, max-age=0
content-encoding: gzip
content-length: 118
content-type: application/json; charset=UTF-8
date: Thu, 15 Aug 2013 18:21:38 GMT
expires: Thu, 15 Aug 2013 18:21:38 GMT
server: GSE
{
"error": {
"errors": [
{
"domain": "global",
"reason": "forbidden",
"message": "Forbidden"
}
],
"code": 403,
"message": "Forbidden"
}
}
我打开了一个bug,它被关闭为“WorksForMe”。嗯,没有
有什么建议吗?您可以尝试以下方法:
https://www.googleapis.com/youtube/analytics/v1/reports?ids=channel%3D%3D<YOUR_CHANNEL_ID>&start-date=2013-12-30&end-date=2014-01-05&metrics=views%2Cuniques%2Clikes%2Cdislikes%2Ccomments%2Cshares&dimensions=day&filters=video%3D%3D<YOUR_VIDEO>&sort=-day
https://www.googleapis.com/youtube/analytics/v1/reports?ids=channel%3D%3D&start-日期=2013-12-30&结束日期=2014-01-05&指标=视图%2唯一性%2喜欢%2不喜欢%2评论%2共享和维度=日期和过滤器=视频%3天%3天和排序=-天
并在范围中添加:其他查询是否适用于您?我在youtubeAnalytics.reports.query上运行的任何查询都会返回相同的403错误。当我尝试数据API(与分析一样)时,我得到了结果。我得到了同样的问题,你们能解决这个问题吗。