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

Region locked lyrics #15

Closed SpookyO closed 1 year ago

SpookyO commented 1 year ago

So sometimes, the track id is correct and spotify has the lyrics but this api throw an error, like couldn't find the lyrics! But when i try with the api u guys are using works fine! So maybe try fixing the problem?

akashrchandran commented 1 year ago

Could you share the track id, would like to recreate the problem.

SpookyO commented 1 year ago

Here it is: URL: https://open.spotify.com/track/23zmOYPltaN6KTgloPQGLX Track ID: 23zmOYPltaN6KTgloPQGLX Note: The language is NOT English and Both URL and Track ID returns the error! (Sorry for late reply)

akashrchandran commented 1 year ago

I tried recreating the issue but there is no error in the code base. Spotify does actually respond that there is no lyrics for the track, so I tried playing the song on Spotify app and there was no lyrics option. Even I tried playing it in two different accounts and still no lyrics option.

image

Both the account used where Indian based accounts, so just to check if lyrics is region locked or not, I tried with a Germany account. To my surprise the lyrics option was available.

image

As the API also uses Indian account, it wasn't able to get the lyrics.

It will be better if you self-host the API with an account based on any other country to get the lyrics.

I have no idea why Spotify region locks lyrics. If I find any way to bypass it I will update.

SpookyO commented 1 year ago

I tried recreating the issue but there is no error in the code base. Spotify does actually respond that there is no lyrics for the track, so I tried playing the song on Spotify app and there was no lyrics option. Even I tried playing it in two different accounts and still no lyrics option.

image

Both the account used where Indian based accounts, so just to check if lyrics is region locked or not, I tried with a Germany account. To my surprise the lyrics option was available.

image

As the API also uses Indian account, it wasn't able to get the lyrics.

It will be better if you self-host the API with an account based on any other country to get the lyrics.

I have no idea why Spotify region locks lyrics. If I find any way to bypass it I will update.

Ohk, Thanks for the update!

ego-lay-atman-bay commented 8 months ago

I have no idea why Spotify region locks lyrics. If I find any way to bypass it I will update.

Pretty sure it's just a licensing issue. There are some songs that I've put lyrics onto musixmatch, but they only show up on yt music and spotify outside the US. I talked to some musixmatch people about it, and they said it was just licensing.