Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get_video_info YouTube endpoint suddenly returning 404 not found

https://www.youtube.com/get_video_info?video_id={videoId} is throwing

Response status code does not indicate success: 404 (Not Found).

like image 592
Dhruv Gohil Avatar asked May 20 '21 06:05

Dhruv Gohil


2 Answers

EDIT: I found this can work. I don't why. But it really works.

https://www.youtube.com/get_video_info?video_id=onz2k4zoLjQ&eurl=https%3A%2F%2Fyoutube.googleapis.com%2Fv%2Fonz2k4zoLjQ&html5=1&c=TVHTML5&cver=6.20180913


You can add &html5=1 in the url to fix it.

like image 122
EricZhao Avatar answered Nov 19 '22 06:11

EricZhao


For some reason, Google is trying to make it harder.


Edit Aug 2021:


I just published a new NuGet for C# developers that brings URLs of get_video_info. Enjoy! https://www.nuget.org/packages/Youtube.VideoInfo


The initial value was
https://www.youtube.com/get_video_info?video_id={videoId}&eurl=https://youtube.googleapis.com/v/{videoId}

Then the HTML5 tag was added:
https://www.youtube.com/get_video_info?html5=1&video_id={videoId}&eurl=https://youtube.googleapis.com/v/{videoId}

And now (June 2021) the new solution is:
https://www.youtube.com/get_video_info?video_id={videoId}&eurl=https%3A%2F%2Fyoutube.googleapis.com%2Fv%2Fonz2k4zoLjQ&html5=1&c=TVHTML5&cver=6.20180913

We need to keep our eyes open. looks like someone in google doesn't like the fact that YouTube enables this feature.

like image 13
Ami Vaknin Avatar answered Nov 19 '22 05:11

Ami Vaknin