[GH-ISSUE #1] Spotify might've changed API URLs or restricted them #2

Closed
opened 2026-02-27 20:07:38 +03:00 by kerem · 4 comments
Owner

Originally created by @lumirth on GitHub (Mar 17, 2025).
Original GitHub issue: https://github.com/misiektoja/spotify_profile_monitor/issues/1

Similar issue to spotify_monitor, as seen here.

The app is no longer functioning, and changing the sp_dc token does not fix the problem.

Image

@misiektoja any chance at a fix anytime soon?

Originally created by @lumirth on GitHub (Mar 17, 2025). Original GitHub issue: https://github.com/misiektoja/spotify_profile_monitor/issues/1 Similar issue to spotify_monitor, as seen [here](https://github.com/misiektoja/spotify_monitor/issues/2). The app is no longer functioning, and changing the sp_dc token does not fix the problem. <img width="786" alt="Image" src="https://github.com/user-attachments/assets/d813fd3a-fb80-4e8a-922f-4a7f3917ddaa" /> @misiektoja any chance at a fix anytime soon?
kerem closed this issue 2026-02-27 20:07:38 +03:00
Author
Owner

@misiektoja commented on GitHub (Mar 17, 2025):

Thanks Lukas, more details in another ticket: Spotify Web Player token endpoint issue

<!-- gh-comment-id:2730317447 --> @misiektoja commented on GitHub (Mar 17, 2025): Thanks Lukas, more details in another ticket: [Spotify Web Player token endpoint issue](https://github.com/misiektoja/spotify_monitor/issues/2#issuecomment-2730297484)
Author
Owner

@misiektoja commented on GitHub (Mar 18, 2025):

Okay, so the first version of the updated spotify_profile_monitor with support for TOTP parameters is here: spotify_profile_monitor.py

It works, but the endpoint is not very reliable, requiring several attempts to obtain a valid token. Spotify seems to be returning incorrect tokens intentionally. You might want to adjust the values of TOKEN_MAX_RETRIES and TOKEN_RETRY_TIMEOUT.

Don't forget to install pyotp pip module: pip3 install pyotp

Let me know your feedback, some slight adjustments will most likely still be needed.

<!-- gh-comment-id:2731398956 --> @misiektoja commented on GitHub (Mar 18, 2025): Okay, so the first version of the updated spotify_profile_monitor with support for TOTP parameters is here: [spotify_profile_monitor.py](https://github.com/misiektoja/spotify_profile_monitor/blob/dev/spotify_profile_monitor.py) It works, but the endpoint is not very reliable, requiring several attempts to obtain a valid token. Spotify seems to be returning incorrect tokens intentionally. You might want to adjust the values of TOKEN_MAX_RETRIES and TOKEN_RETRY_TIMEOUT. Don't forget to install pyotp pip module: pip3 install pyotp Let me know your feedback, some slight adjustments will most likely still be needed.
Author
Owner

@misiektoja commented on GitHub (Mar 19, 2025):

Final fully functioning code is here: spotify_profile_monitor.py

Similar fixes as done for spotify_monitor, more info here.

<!-- gh-comment-id:2735197865 --> @misiektoja commented on GitHub (Mar 19, 2025): Final fully functioning code is here: [spotify_profile_monitor.py](https://github.com/misiektoja/spotify_profile_monitor/blob/dev/spotify_profile_monitor.py) Similar fixes as done for spotify_monitor, more info [here](https://github.com/misiektoja/spotify_monitor/issues/2#issuecomment-2734952004).
Author
Owner

@misiektoja commented on GitHub (Mar 20, 2025):

I further improved the code and it works really well now. I'm making a release today so I'm closing the ticket.

<!-- gh-comment-id:2741340060 --> @misiektoja commented on GitHub (Mar 20, 2025): I further improved the code and it works really well now. I'm making a release today so I'm closing the ticket.
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/spotify_profile_monitor#2
No description provided.