akashrchandran / spotify-lyrics-api

A Rest API for fetching lyrics from Spotify which is powered by Musixmatch. Commandline version is available at akashrchandran/syrics.
http://github.akashrchandran.in/spotify-lyrics-api/
GNU General Public License v3.0
369 stars 29 forks source link

Always return "lyrics for this track is not available on spotify!" #31

Closed Mann202 closed 10 months ago

Mann202 commented 10 months ago

image I'm cloning your repo and run it locally but it seem encountered problem, can you help me solve this problem

my cache file image

akashrchandran commented 10 months ago

Is the track ID you provided correct? It doesn't seem to work when I try it. Also, do you have a premium account?

Mann202 commented 10 months ago

yes, i have premium account and using it in spotify web playback sdk as well

i tried to get lyric from track that i can get lyric from your api but it return the same image

Mann202 commented 10 months ago

As metioned in email, i find that your api only facing problem to get random lyric from some tracks of Taylor Swift, Charlie Puth,... but another artist's track can get lyrics. Do you think it because blocked region?

akashrchandran commented 10 months ago

Are there any error messages showing up on the terminal where you're running the application?

Mann202 commented 10 months ago

in further research based on your app, now i can fetch lyrics without your api

axios.get(https://spclient.wg.spotify.com/color-lyrics/v2/track/${trackID}/image/https%3A%2F%2Fi.scdn.co%2Fimage%2Fab67616d0000b27325e6b25d49687cd63f7a034e?format=json&vocalRemoval=false&market=from_token, { headers: { "App-platform": "WebPlayer", "Authorization": Bearer ${access_token}, "Client-Token": "Client-token here" } })

akashrchandran commented 10 months ago

Impressive! Thanks for experimenting and discovering a superior solution on your own. That's one of the wonderful aspects of open source!