Using YouTube V3 API to get video for channelId not working
I am trying to find a video using a query string for a given channel id.
When I search with only the query string (Q), it returns 11 items.
GET https://www.googleapis.com/youtube/v3/search?order=date&part=snippet&q=Albion-Park-11012015-Race-1&key={YOUR_API_KEY}
However, when I add the channel ID, it returns 0 items (no errors I see):
GET https://www.googleapis.com/youtube/v3/search?order=date&part=snippet&q=Albion-Park-11012015-Race-1&channelId=UCa2qaN3dR_335aFKIFmBhlw&key={YOUR_API_KEY}
ChannelId I'm using matches with what it returns as from the first request, so I don't consider it to be a wrong channel id.
I am experiencing this both through the .NET client library and on the YouTube doco page which includes a test bed - https://developers.google.com/youtube/v3/docs/search/list
Thanks for the help:)
source to share
I just ran the following two queries, both returned 11 total results from the Data API v3 search.list explorer :
Without channel ID:
GET https://www.googleapis.com/youtube/v3/search?order=date&part=snippet&q=Albion-Park-11012015-Race-1&maxResults=50&key={YOUR_API_KEY}
With channel ID:
GET https://www.googleapis.com/youtube/v3/search?order=date&part=snippet&q=Albion-Park-11012015-Race-1&channelId=UCa2qaN3dR_335aFKIFmBhlw&maxResults=50&key={YOUR_API_KEY}
I'm not sure what the problem was when you wrote this, but it's now fixed.
source to share