I am not able to get the channel's data if the channel name has spaces in it, e.g. Meditation Relax Music
.
My API call :
https://www.googleapis.com/youtube/v3/channels?part=statistics&forUsername=Meditation+Relax+Music&key={YOUR_API_KEY}
My approach to get the data is, to remove spaces from the name before calling the API. It is working for some of the channels like Unversal Pictures
Test sample:
WebClient client = new WebClient();
dynamic var = client.DownloadString(@"https://www.googleapis.com/youtube/v3/channels?part=statistics&forUsername=Meditation+Relax+Music&key={YOUR_API_KEY}");
Please help!