[GH-ISSUE #26] [Bug] open.spotify.com/get_access_token No longer works #17

Closed
opened 2026-02-27 19:06:27 +03:00 by kerem · 5 comments
Owner

Originally created by @yodaluca23 on GitHub (Mar 14, 2025).
Original GitHub issue: https://github.com/Aran404/SpotAPI/issues/26

I don't know what Spotify changed but open.spotify.com/get_access_token no longer gives an accessToken, giving the error

{
  "error": {
    "code": 400,
    "message": "Invalid TOTP"
  }
}

This really sucks for a lot of small OSS projects like this one that depend on this for getting anonymous tokens.

Related issue:
https://github.com/librespot-org/librespot/issues/1475

Originally created by @yodaluca23 on GitHub (Mar 14, 2025). Original GitHub issue: https://github.com/Aran404/SpotAPI/issues/26 I don't know what Spotify changed but ```open.spotify.com/get_access_token``` no longer gives an accessToken, giving the error ``` { "error": { "code": 400, "message": "Invalid TOTP" } } ``` This really sucks for a lot of small OSS projects like this one that depend on this for getting anonymous tokens. Related issue: https://github.com/librespot-org/librespot/issues/1475
kerem closed this issue 2026-02-27 19:06:27 +03:00
Author
Owner

@Aran404 commented on GitHub (Mar 15, 2025):

Looking into it right now.

<!-- gh-comment-id:2726107020 --> @Aran404 commented on GitHub (Mar 15, 2025): Looking into it right now.
Author
Owner

@Aran404 commented on GitHub (Mar 15, 2025):

Please let me know if this works as intended. Thank you

<!-- gh-comment-id:2726133212 --> @Aran404 commented on GitHub (Mar 15, 2025): Please let me know if this works as intended. Thank you
Author
Owner

@yodaluca23 commented on GitHub (Mar 15, 2025):

Looking into it right now.

Great! Right now it just triggers this error when using no other auth:

github.com/Aran404/SpotAPI@1cc28bd180/spotapi/client.py (L116)

<!-- gh-comment-id:2726136481 --> @yodaluca23 commented on GitHub (Mar 15, 2025): > Looking into it right now. Great! Right now it just triggers this error when using no other auth: https://github.com/Aran404/SpotAPI/blob/1cc28bd18079b65a9b127d1621dcfded27e8f032/spotapi/client.py#L116
Author
Owner

@Aran404 commented on GitHub (Mar 15, 2025):

Could you explain more please?

<!-- gh-comment-id:2726160703 --> @Aran404 commented on GitHub (Mar 15, 2025): Could you explain more please?
Author
Owner

@yodaluca23 commented on GitHub (Mar 15, 2025):

Oh sorry, I didn't see the new commit. Yes it works now 🥳 thank you so much!

<!-- gh-comment-id:2726175969 --> @yodaluca23 commented on GitHub (Mar 15, 2025): Oh sorry, I didn't see the new commit. Yes it works now 🥳 thank you so much!
Sign in to join this conversation.
No labels
pull-request
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/SpotAPI#17
No description provided.