You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
as2 players (until late 2010) typically only called /get_video?video_id=[id] which returned the video file itself. that was enough to start playback.
as3 (late 2010 onwards) called /get_video_info if they didn't have all the data they needed within flashvars itself (which included everything like formats). yt2009 supports this endpoint so you can call /get_video_info?video_id=[id] on any instance and get a result like this
status=ok&length_seconds=301&keywords=LazerHawk,King,of,The,Streets,dreamwave,electro,80s,rosso,corsa,retro,electronic,outrun,Austin,countache,red&vq=None&muted=0&avg_rating=5.0&thumbnail_url=http%3A%2F%2Fi.ytimg.com%2Fvi%2FeyZQUEMZlCU%2Fhqdefault.jpg&allow_ratings=1&hl=en&ftoken=&allow_embed=1&fmt_map=35%2F0%2F9%2F0%2F115%2C5%2F0%2F7%2F0%2F0&fmt_url_map=35%7Chttp%3A%2F%2F192.168.1.7%3A80%2Fget_480%3Fvideo_id%3DeyZQUEMZlCU%26%2C5%7Chttp%3A%2F%2F192.168.1.7%3A80%2Fget_video%3Fvideo_id%3DeyZQUEMZlCU%2Fmp4&token=amogus&plid=amogus&track_embed=0&author=NewRetroWave&title=LazerHawk - King of The Streets&video_id=eyZQUEMZlCU&fmt_list=35%2F854x480%2F9%2F0%2F115%2C5%2F640x360%2F9%2F0%2F115&fmt_stream_map=35%7Chttp%3A%2F%2F192.168.1.7%3A80%2Fget_480%3Fvideo_id%3DeyZQUEMZlCU%26%2C5%7Chttp%3A%2F%2F192.168.1.7%3A80%2Fget_video%3Fvideo_id%3DeyZQUEMZlCU%2Fmp4
responses are url-encoded, so they are separated with & and the values (after the = sign for each param) need to be urldecoded. there are plenty of url decoders online, or you can call the decodeURIComponent JS function locally.
after that the player should show a list of qualities and start playing one by requesting its link
Repository owner locked and limited conversation to collaborators on Sep 25, 2025
Activity
ftde0 commentedon Sep 25, 2025
as2 players (until late 2010) typically only called
/get_video?video_id=[id]which returned the video file itself. that was enough to start playback.as3 (late 2010 onwards) called
/get_video_infoif they didn't have all the data they needed within flashvars itself (which included everything like formats). yt2009 supports this endpoint so you can call/get_video_info?video_id=[id]on any instance and get a result like thisresponses are url-encoded, so they are separated with
&and the values (after the=sign for each param) need to be urldecoded. there are plenty of url decoders online, or you can call thedecodeURIComponentJS function locally.after that the player should show a list of qualities and start playing one by requesting its link