I am currently using the Google YouTube V3 API to get view counts for few videos on You Tube. I would like to parse the response to get results when view counts cannot be retrieved. Example “This video is private” or “The uploader has not made this video available”
I need to retrieve this part “This video is private”.
Here is a snippet of my code
Using Google.Apis.Youtube.v3.YoutubeService
private YoutubeService youtube;
var YTVideo = youtube.Videos.List(ytidobj.ToString(), "statistics");
var ViewCountResponse = YTVideo.Fetch()
I am able to get view counts from this call without any issues but I can’t seem to get the error responses?
How can get the error responses back from the the call : var ViewCountResponse = YTVideo.Fetch()