-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
API stopped working #26
Comments
I thought it was my network that's causing the error, the API no longer works. |
It's funny because it was the day after I finished my project. Regardless, I am trying to understand how the updated spotify api works, but so far I discovered that lyric-related responses from requests made by the Spotify Web Client remain the same format as the ones on the API. I now plan on discovering how to make requests to this API directly. |
Okay so after further research, to query https://spclient.wg.spotify.com/color-lyrics/v2/track/(trackid)/, the required headers and values are: Where it says (token), replace it with the value https://open.spotify.com/get_access_token?reason=transport&productType=web_player gives you for accessToken. |
@yagdev any way to make it return .lrc format? |
I haven't experimented with that in particular, but I assume you can by changing a header. |
I use Web API to get Authentication AccessToken but when I get https://spclient.wg.spotify.com/color-lyrics/v2/track/ request, it always return 403 error. How to fix? |
Hey, my bad for the delayed response—I've been caught up in real life stuff. I've just kicked the dynos back into action, updating the account in the process. Quick heads up, though—Spotify rolled out a policy tweak. Free accounts don't get full access to all lyrics anymore; you'll need premium for that. Check out the info below for more details! Some song lyrics are still accessible for free. https://www.theverge.com/2023/9/5/23860124/spotify-lyrics-premium-only-feature Hey, if anyone's got a premium account they're willing to share for the API, shoot me a message! |
It is possible to add itunes link support? |
I have commented on the issue you had opened. akashrchandran/syrics-web#12 (comment) |
I wonder if they'll implement the check on the API end or just the client end... |
I bet they'll check on the API end. Probably check if the account associated with the token is subscribed to Premium or not. For now the API has started working again though.... |
If you don't mind could you tell me what happened to your API to make it stop working? |
my API? i'm using this repo's api in my project (more specifically, @akashrchandran's heroku instance). what do you mean my api? |
Oh sorry, I mistook you for the repo owner |
The API stopped working because the old token expired. I didn't notice it had expired because I was focused on my exams and wasn't online that much. But now I have replaced it with a new one. I am still using a token from my free account, so API has limited Free tier lyrics. If you have a premium account then you can either host the API yourself or share the token with me. I will add it to the public API. |
Thanks for the reply! I unfortunately use Spotify free though, so I can't share a premium token, but if I ever get access to one I'll make sure to share it with you so you can add it to the API. I'd also like to report a strange finding I've made on the Spotify API (I am pulling directly from Spotify now), which is that some weeks ago a lot of songs stopped having their lyrics available, but for some reason sometimes (like twice a day) I'm able to get them through the API. |
Hello! @yagdev @akashrchandran @maxrave-dev (sorry for tag) I'm beginner and doing some searching and i have found MusixMatch API for getting synced lyrics, and i'm trying making it in php. https://github.com/Paxsenix0/MusixMatch-Lyrics And big thanks to @akashrchandran for making spotify lyrics api! :) |
How do you research the API? |
I'm doing research on Github, and found this So i'm trying to make it on php :) |
Hey! I definitely appreciate your efforts, but something has me confused. If I recall correctly, didn't MusixMatch have lots of limits for free API usage and if so, how did you bypass those? (Synced lyrics were not a free feature I think) |
If I'm not mistaken, to get the lyrics / search track, require parameter And for doing this i need to doing request to this url
and i will get response like this {
"message": {
"header": {
"status_code": 200,
"execute_time": 0.757,
"pid": 35,
"surrogate_key_list": []
},
"body": {
"user_token": "231007a34e149af2971c68af864dca419f440b4ada543546fceb6e",
....
"app_config": {
....
"missions": {
"enabled": true,
"community": [
"all",
"contribute_section"
]
}
.....
}
} And If i'm not mistaken, this token will expire after 10 minutes. Correct me if i wrong, because i still beginner:) |
Thanks for your research. It's working. Cheers 🥂 |
You're welcome! 🥂 |
Hey @Paxsenix0 good job. but I saw MusixMatch API free user can only access to 30% of lyrics per song is that ture? |
I have tried to find translations API, but I found nothing. Did you know any references @Paxsenix0 ? |
Sorry, but i didn't get any references, i'm also tried to find, but the translate result is weird. :/ but if i found one, I'll let you know |
Hmm, i can't say is that true or not, but so far I got the full lyrics and it was synched. |
@akashrchandran The API is up now but I get "lyrics for this track is not available on spotify!" for about 98% of responses starting sometime in the last week. Is this related to the Spotify account being free and not premium? Would you be willing to buy a premium account if people contributed money for it? I have invested significantly in a project that relies heavily on this API, so it would be unfortunate for that to go to waste. Thanks |
I have noticed that Spotify in general has lost a lot of song lyrics. This is not something related to the way I've programmed my API in my usage, so I assume this is the same with this project, but it mirrors the lyrics availability of the normal Spotify client. |
Please check the issue #29 |
As of 28/9 the API no longer works.
The text was updated successfully, but these errors were encountered: