【发布时间】:2014-08-27 18:22:35
【问题描述】:
我正在尝试从 YouTube API 获取特定关键字的搜索列表。
我试过了:https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=50&q=elanco&key={MY API KEY}
它只给我前 50 个结果。所以我把“maxResults”改成了2000。
但随后出现此错误:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "invalidParameter",
"message": "Invalid value '2000'. Values must be within the range: [0, 50]",
"locationType": "parameter",
"location": "maxResults"
}
],
"code": 400,
"message": "Invalid value '2000'. Values must be within the range: [0, 50]"
}
}
有谁知道我怎样才能获得超过 50 个结果?我的关键字产生了大约 1500 个结果,我希望能够看到所有这些结果。
谢谢!
【问题讨论】: