libvideo icon indicating copy to clipboard operation
libvideo copied to clipboard

Youtube: 403 Forbidden errors

Open RCTycooner opened this issue 2 months ago • 1 comments

Hi,

Using 3.2.9, and the following code

var youtube = YouTube.Default;
var vid = youtube
  .GetAllVideos("https://www.youtube.com/watch?v=NRvTj2zM5Uw")
  ?.OrderByDescending(s => s.AudioBitrate)
  .FirstOrDefault();
var x = vid.GetBytes();

This gives the following error on the GetBytes()

Response status code does not indicate success: 403 (Forbidden).

RCTycooner avatar Dec 02 '25 13:12 RCTycooner

I was getting those too - but I think it was on the 3.2.8 version - using the 3.2.9 I get Value cannot be null. :(

MNutshell avatar Dec 04 '25 14:12 MNutshell

Fixed at 3.3.0

omansak avatar Jan 02 '26 21:01 omansak