YouTube API v3 only returning a subset of Channels -
i'm trying query of channels in category using youtube api v3. i'm seeing subset of total data though , not full dataset.
for example if run
get https://www.googleapis.com/youtube/v3/channels?part=snippet&categoryid=gctxvzawm&key={your_api_key}
i following response
{ "kind": "youtube#channellistresponse", "etag": "\"vl8g1mjp6hnwwlbxdxcr2a3miyk/yqdrdouh3lti0g5e97wjidvi9h8\"", "nextpagetoken": "cauqaa", "pageinfo": { "totalresults": 201, "resultsperpage": 5 }, "items": [ ... ] }
so can see i'm getting 201 channels returned , there more 201 music channels on youtube. if go through of pages i'm not seeing channels less 100k subscribers.
should use search api? return data? if should use search, what's point of channels api?
thanks!
from docs:
https://developers.google.com/youtube/v3/docs/channels/list
... sounds 201 might right number of total results request you're making.
the categoryid parameter specifies youtube guide category, thereby requesting youtube channels associated category.
https://developers.google.com/youtube/v3/docs/guidecategories
these curated youtube. if go page @ moment , "music" you'll see there indeed 201 channels.
http://www.youtube.com/channels
it doesn't /channels call going provide want. seems may have use /search call, , pass video category id, you'll have find looking video categories region , picking 1 matches want.
https://developers.google.com/youtube/v3/docs/videocategories
get https://www.googleapis.com/youtube/v3/videocategories?part=id%2csnippet®ioncode=us&key={your_api_key}
edit: hm... can't pass video category id unless pass type=video, so, may not work channel search. don't think can seem trying do.
Comments
Post a Comment