【发布时间】:2015-08-09 21:47:24
【问题描述】:
当我执行以下 YouTube 数据 API 请求以列出 commentThreads 时,pageInfo/totalResults 不会在响应中返回。
我希望pageInfo/totalResults 会返回per the documentation。
GET https://www.googleapis.com/youtube/v3/commentThreads?part=snippet%2Creplies&videoId=dGidYBqBHVw&key={YOUR_API_KEY}
例如,如果您使用API Explorer,则输入:
- 部分:sn-p,回复
- videoId:dGidYBqBHVw
响应返回 200 OK 和其余数据,但省略了 pageInfo/totalResults 值:
"pageInfo": {
"resultsPerPage": 20
}
【问题讨论】:
标签: api youtube youtube-api youtube-data-api