Caution
The method has stopped working, and the native parameters (password and username) that were used to log in to the client no longer function. Whether they were intentionally disabled or it's a server-side bug is up for discussion. I've archived the repository until they fix it or another way to log in to the client is found
Bypassing Regional Restrictions for a Free Spotify Account
This solution is designed for users residing in countries where Spotify is not officially available and they are forced to register through other countries and also confirm their fake location every 14 days using a VPN.
This method employs GitHub Actions to run a runner with a USA location one day a week. It logs into the desktop Spotify client using your username and password, allowing you to access Spotify as if you were in the USA.
Before getting started, make sure you have the following:
- A GitHub account
- A free Spotify account
- Your Spotify account must have the USA selected as the country ( if you have another country specified, then you can change it yourself to Usa, use Vpn )
Important
After successfully setting up the runner and initial authorization in the client, you do not need to use a VPN or other similar tools for the Spotify client, this may trigger their algorithms to reset your current password, and you will have to change it again in the fork settings and go through initial authorization, just use Spotify on your regular home network
Note
The country of your Spotify account should already be changed to the USA
Text tutorial
Follow these steps to set up and use this method:
-
Fork this Repository
-
Repository Settings
- In your fork's
Settings
- navigate to
Secrets and Variables
=>Actions
- In your fork's
-
Create Repository Secrets:
- Click on
New Repository Secret
- In the
Name
field, enterLOGIN
- In the
Secret
field, enter your Spotify account login. ClickAdd Secret
- Click on
-
Password Secret:
- Repeat the same process for your password
- Click
New Repository Secret
- Enter
PASS
in theName
field - Enter your Spotify account password in the
Secret
field. (Remember to update it here if you change your password)
-
Activate the Runner:
- Go to the
Actions
tab in your forked repository - Confirm the activation of runners for your fork
- In the upper left part of the screen, find two actions with the names:
- Run SpotifyGeoFreedom Scrip
- Keepalive Workflow
- You need to activate these two runners. To do this, click on each of them in turn and select "enable workflow" on the right side of the screen
- Go to the
Warning
It is not recommended to frequently use manual runner launches as Spotify may reset your current password due to "suspicious activity"
If the time trigger has not yet activated, and you want to check if your runner is working successfully, manual launch is provided. Follow these steps:
Steps
-
In the left sidebar, click the "Run SpotifyGeoFreedom Script" button
-
On the right side, a dropdown menu "Run workflow" will appear, inside of which there will be a green "Run workflow" button. Click on it to start the runner
-
Wait for a couple of minutes until the script completes, and its icon turns green
-
Go to the runner actions "Run SpotifyGeoFreedom Script" => "run-powershell"
-
Expand the "Сlient download and login" action
-
If the script outputs "Client response: Successful authentication," then everything is fine; your runner has successfully opened the Spotify client using your login and password
-
If you see the message "Client response: Failed authenticating: login5_invalid_credentials," then most likely you did not correctly set your login and password in the secret variables. Try doing it again. If you are sure that your login and password were set correctly, then in 99% of cases, Spotify has reset your password. Check your email; there should be a password reset form. You need to reset it and set the new password in the secret variable
The launch occurs every Thursday at 2:37 UTC
Login and password are required to access your account from an Usa IP address, thus resetting the 14-day regional restriction counter. While setting up the method, you input your login and password into actions secrets, they are stored there in encrypted form, and only you have access to them. This is absolutely secure
It's relatively rare, but Spotify can detect false suspicious activities. If this happens, you will receive an email with instructions to reset your password. After creating a new password, don't forget to update the PASS secret in your fork's settings.
As of now (15.07.2024), this method has been working for me for about a year. In the very beginning, Spotify's algorithms reset my password a few times. After that, these resets stopped, and I have been using my main account without any problems for over 8-9 months.
I created a thread for the general flow of your thoughts
You are using this method at your own risk; the developer is not responsible for any potential issues.