ytdl icon indicating copy to clipboard operation
ytdl copied to clipboard

The YouTube get_video_info API seems to be dead

Open Prcuvu opened this issue 3 years ago • 2 comments

The API https://www.youtube.com/get_video_info?video_id=${id}&el=detailpage returns HTTP 404. Therefore your JSON API https://ytdl.maple3142.net/api?id=${id} always returns "Adblock conflict".

Prcuvu avatar May 20 '21 20:05 Prcuvu

The video info JSON is now embedded inside the watch?v=${id} response. Inside a <script> block there is var ytInitialPlayerResponse = {video info JSON};. The formats are recorded inside its .streamingData.formats.

Prcuvu avatar May 20 '21 20:05 Prcuvu

Yes it is. Here is an example to resolve the problem. https://github.com/snakx/YouTubeApiSharp/commit/e0432b36f7416974548d56f33e27a48576b36e98

thisistorsten avatar Jun 18 '21 12:06 thisistorsten