-
Notifications
You must be signed in to change notification settings - Fork 425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Findings] Getting cipher protected URLs from YouTube without any need to decrypt anything #562
Comments
@FireMasterK Are you going to open a PR with changes for this or should someone from us handle it? |
I'm a bit busy currently, if anyone wants to go ahead, then do so. Otherwise, I could try in few days hopefully. |
I tested this and it works for normal videos, but it does not work for age-restricted videos. Did you come across any similar APIs that do work for those now that get_video_info looks to be on its way out? |
I'm able to bypass the age-gate by setting I tested this with age-gated, embeddable videos ( |
Note: These cipher protected URLs are only provided for the client name |
URL: {
"videoId": "jNQXAC9IVRw",
"context": {
"client": {
"hl": "en",
"gl": "US",
"clientName": "MWEB",
"clientVersion": "2.20210330.08.00"
}
}
} I found this new client name this morning by analyzing the requests made while browsing on https://m.youtube.com/?persist_app=1&app=m You can find other client names here: https://github.com/yt-dlp/yt-dlp/pull/328/files#diff-b7b9f6790de4427214b61939432e667d95b929d07fd918b9da1a36d7996cc506R302 By the way, we are getting out of topic of this GitHub issue, even though it's still a talk about Innertube API/Youtube internal API ;). |
to get INNERTUBE_API_KEY you can go at the bottom line you can find the
|
example response
The text was updated successfully, but these errors were encountered: