{"id":28211,"library":"spotify-token","title":"Spotify Token","description":"Python wrapper for fetching Spotify Webplayer access tokens, useful for interacting with the Spotify Webplayer API. Current version 1.0.0. Low maintenance cadence.","status":"active","version":"1.0.0","language":"python","source_language":"en","source_url":"https://github.com/enriquegh/spotify-webplayer-token","tags":["spotify","token","webplayer","authentication"],"install":[{"cmd":"pip install spotify-token","lang":"bash","label":"Install via pip"}],"dependencies":[],"imports":[{"wrong":"from spotify_token import SpotifyToken","symbol":"start_session","correct":"from spotify_token import start_session"}],"quickstart":{"code":"from spotify_token import SpotifyToken\n\n# You need a valid Spotify client token (from webplayer session)\nclient_token = os.environ.get('SPOTIFY_CLIENT_TOKEN', '')\nst = SpotifyToken(client_token)\ntry:\n    access_token = st.get_access_token()\n    print(f\"Access token: {access_token}\")\nexcept Exception as e:\n    print(f\"Error: {e}\")","lang":"python","description":"Instantiate SpotifyToken with a client token and fetch an access token."},"warnings":[{"fix":"Obtain the client token from a logged-in Spotify web session (look for sp_dc or sp_key cookies).","message":"The library requires a valid Spotify webplayer client token, not a regular API client ID/secret. Common mistake: passing a client ID instead of the webplayer token.","severity":"gotcha","affected_versions":"all"},{"fix":"Consider using the official Spotify Web API with proper OAuth if possible.","message":"The library may break when Spotify changes its internal webplayer authentication flow. There has been no recent update.","severity":"deprecated","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'1.0.0':21 'access':9 'api':18 'authent':28 'cadenc':24 'current':19 'fetch':6 'interact':13 'low':22 'mainten':23 'python':3 'spotifi':1,7,16,25 'token':2,10,26 'use':11 'version':20 'webplay':8,17,27 'wrapper':4","created_at":"2026-05-09T05:54:18.616218+00:00","updated_at":"2026-05-09T05:54:18.616218+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/enriquegh/spotify-webplayer-token","docs":null,"changelog":null,"pypi":"https://pypi.org/project/spotify-token/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["http-networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}