Find ways to get InnerTube's client version and API key of WEB and WEB_REMIX clients without using YouTube and YouTube's Music HTML pages #872
Labels
discussion
This needs to be discussed before anything is done
enhancement
help wanted
Help is wanted in fixing this issue
youtube
service, https://www.youtube.com/
I'd like to avoid parsing YouTube and YouTube Music HTML pages to get InnerTube's client version and API key of the
WEB
andWEB_REMIX
clients (even if for the last one, the hardcoded version is always used first if it is considered as valid), as it also help to avoid reCAPTCHA issues.Previously, we were able to do so by using YouTube and YouTube Music's service workers (https://www.youtube.com/sw.js and https://music.youtube.com/sw.js) but they do not contain these information anymore.
The "obfuscated versions" of these scripts (which use JSON protobuf) (https://www.youtube.com/sw.js_data and https://music.youtube.com/sw.js_data) still contain them, but their unreadable form makes a bit difficult to be sure to parse the correct data.
I also know that we can use the embed HTML page of a video for the
WEB
client, but versions provided are not the same as the ones of theWEB
client, but the ones of theWEB_EMBEDDED_CLIENT
instead. Even if using the last digits of theWEB_EMBEDDED_CLIENT
as the ones of theWEB
client would work, this would probably allow YouTube to fingerprint more the extractor.That's the reason why I am asking all members working on YouTube projects to share there researches and findings about getting client version and API key of these InnerTube clients without using YouTube and YouTube Music's HTML pages in this issue.
The text was updated successfully, but these errors were encountered: