[GH-ISSUE #679] oauth fixed in 1.9.0 - requires client_id / client_secret #448

Closed
opened 2026-02-27 23:00:50 +03:00 by kerem · 3 comments
Owner

Originally created by @sigma67 on GitHub (Nov 16, 2024).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/679

As discussed in #676 , oauth-based authentication has been disabled for the web client by Google. It is unknown if it will work again in the future.

Therefore, it is advised to use browser-based authentication instead: https://ytmusicapi.readthedocs.io/en/stable/setup/browser.html

Contributions towards improving the browser-based setup option are welcome as always. Please open an issue to discuss the proposed change beforehand.

Originally created by @sigma67 on GitHub (Nov 16, 2024). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/679 As discussed in #676 , oauth-based authentication has been disabled for the web client by Google. It is unknown if it will work again in the future. Therefore, it is advised to use browser-based authentication instead: https://ytmusicapi.readthedocs.io/en/stable/setup/browser.html Contributions towards improving the browser-based setup option are welcome as always. Please open an issue to discuss the proposed change beforehand.
kerem 2026-02-27 23:00:50 +03:00
  • closed this issue
  • added the
    yt-update
    label
Author
Owner

@sigma67 commented on GitHub (Nov 19, 2024):

For discussion, please see here: https://github.com/sigma67/ytmusicapi/discussions/682

<!-- gh-comment-id:2484822375 --> @sigma67 commented on GitHub (Nov 19, 2024): For discussion, please see here: https://github.com/sigma67/ytmusicapi/discussions/682
Author
Owner

@sigma67 commented on GitHub (Dec 15, 2024):

It looks like there will be a way to get it working again. Watch out for an update in the coming weeks.

However, unlike previously it will require you to get a client secret and id from the YouTube Data API.

<!-- gh-comment-id:2544122186 --> @sigma67 commented on GitHub (Dec 15, 2024): It looks like there will be a way to get it working again. Watch out for an update in the coming weeks. However, unlike previously it will require you to get a client secret and id from the YouTube Data API.
Author
Owner

@sigma67 commented on GitHub (Dec 17, 2024):

The documentation has been updated. If you want to use OAuth you will need to provide YTMusic with client_id and client_secret. This is now required because the default id and secret that were previously used (hardcoded TV credentials) no longer worked with the YT web interface.

<!-- gh-comment-id:2549667599 --> @sigma67 commented on GitHub (Dec 17, 2024): The documentation has been updated. If you want to use OAuth you will need to provide `YTMusic` with `client_id` and `client_secret`. This is now required because the default id and secret that were previously used (hardcoded TV credentials) no longer worked with the YT web interface.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ytmusicapi#448
No description provided.