Skip to content

Player #294

Closed
Closed

Description

@Wert1209yt

What response does yt2009 give to a request for a YouTube player from 2005-2015 (HTML/Flash). I need it for my PHP project.

Activity

  1. ftde0 commented on Sep 25, 2025

    @ftde0
    Owner

    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

  2. Repository owner locked and limited conversation to collaborators on Sep 25, 2025
  3. converted this issue into a discussion #295 on Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions