When the following request is made, it is not giving me the complete data set rather limiting to 10 pages and 500 records:
https://www.googleapis.com/youtube/v3/search?maxResults=50&part=id&type=video&channelId=UCgdHSFcXvkN6O3NXvif0-pA&pageToken=CPQDEAA
It is only returning about 500 records out of 2126.
2021-04-05T11:18:13.330-04:00 3 [1|Q-Id] [HTTP|Res: 20]
[HTTP Headers]
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Vary: Origin
Vary: X-Origin
Vary: Referer
Content-Encoding: gzip
Date: Mon, 05 Apr 2021 15:18:13 GMT
Server: scaffolding on HTTPServer2
Cache-Control: private
X-XSS-Protection: 0
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
Alt-Svc: h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Transfer-Encoding: chunked
2021-04-05T11:18:13.330-04:00 3 [1|Q-Id] [HTTP|Res: 20] {
"kind": "youtube#searchListResponse",
"etag": "5snf-LkAO-ildQnoSYiawBtMrQI",
"nextPageToken": "CKYEEAA",
"prevPageToken": "CPQDEAE",
"regionCode": "US",
"pageInfo": {
"totalResults": 2126,
"resultsPerPage": 4
},
Getting the same behavior when I try the API here:
https://developers.google.com/youtube/v3/docs/search/list
.