2.0.0 • Published 6 years ago

spotify-webplayer-accesstoken v2.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

spotify-webplayer-accesstoken

This simple script provide an extended API access token extracted from Spotify Web Player to interact with all kind of API that Spotify provides.

It doesn't require any OAuth client configured, you have to provide your Spotify credentials.

UPDATE 2018/07/03: The getAccessToken method no longer works as Spotify introduced reCaptcha in login process, use getCredentials instead

WARNING: this is only a proof-of-concept hack, do not use in your commercial applications

Usage

Install with NPM:

npm i spotify-webplayer-accesstoken

View example.js for how to use.

Get initial cookies

To obtain the initial cookies, simply login with your account into https://open.spotify.com/browse and copy the cookies you found in the initial XHR request.

License

MIT