最佳答案
Videos.search返回如下所示的响应主体。
{
"kind": "youtube#searchListResponse",
"etag": etag,
"nextPageToken": string,
"prevPageToken": string,
"regionCode": string,
"pageInfo": {
"totalResults": integer,
"resultsPerPage": integer
},
"items": [
search Resource
]
}
我认为最接近的结果将是totalResults。我真的怀疑会这么大。
我只是做了一个虚拟搜索,基本上要求一切,然后返回
"pageInfo": {
"totalResults": 1000000,
"resultsPerPage": 5
},
您将从API搜索中获得的最大行数为1000000。google不会告诉您网站上搜索将返回多少。因此,您的问题的答案是无法返回网站将通过API返回的实际值。
关于youtube - YouTube API。如何获得近似数量的结果?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42717001/