const urlChannel = 'https://www.googleapis.com/youtube/v3/channels?part=snippet&id=' + channelID + '&fields=items%2Fsnippet%2Fthumbnails&key=' + apiKey;
let authorPhoto = ""
async function getChannel() {
const urlChannelResult = await fetch(urlChannel)
const jsonChannel = await urlChannelResult.json()
authorPhoto = jsonChannel.items[0].snippet.thumbnails.high.url;
}
getChannel()
console.log(authorPhoto)
Можно дальше не читать