I want to search a list of Video and show it to screen with channel icons, but I don't know how to get channel_id or channel_icon direct link within the search query.
I'm following an example in youtube's developer page (Java), I want search result include channel_id or channel_icon, how to do?
search.setFields("items(id/videoId,snippet/title,snippet/thumbnails/default/url)");
[SOLVED]
I have solved my problem, I edited my fields filter, full code:
search = youtube.search().list("id,snippet");
search.setFields("items(id/videoId,snippet/title,snippet/thumbnails/default/url,snippet/channelId,snippet/channelTitle)");
// or just remove fields filter and then the response will constant all fileds for you
I got channelId and I can get channel icon, just replace the url with my channelId: