{"id":28227,"library":"spotifywebapi","title":"Spotify Web API for Python","description":"A simple Python wrapper for the Spotify Web API. Current version 1.2.8, supports Python >=3.6. Released under MIT license, maintained on GitHub. Release cadence is irregular.","status":"active","version":"1.2.8","language":"python","source_language":"en","source_url":"https://github.com/Firius0408/spotifywebapi","tags":["spotify","web-api","wrapper","music"],"install":[{"cmd":"pip install spotifywebapi","lang":"bash","label":"Pip install"}],"dependencies":[],"imports":[{"wrong":"from spotifywebapi import SpotifyAPI","symbol":"Spotify","correct":"from spotifywebapi import Spotify"}],"quickstart":{"code":"from spotifywebapi import SpotifyAPI\napi = SpotifyAPI(client_id='YOUR_CLIENT_ID', client_secret='YOUR_CLIENT_SECRET')\napi.authenticate()\ntrack = api.get_track('6y0igZArWVi3k3N9S20QXN')\nprint(track)","lang":"python","description":"Initialize API with credentials, authenticate, then use get_track etc."},"warnings":[{"fix":"Make sure to call api.authenticate() after creating the instance.","message":"Always call authenticate() before making API calls. The library does not auto-refresh tokens.","severity":"gotcha","affected_versions":"all"},{"fix":"Use another library like spotipy if you need user authorization.","message":"The library uses Spotify's Client Credentials Flow only. It does not support Authorization Code flow for user-specific endpoints.","severity":"gotcha","affected_versions":"<2.0 (if ever 2.0 changes this)"},{"fix":"Upgrade to Python 3.8+ for future compatibility.","message":"Python 3.6 support may be deprecated in future releases.","severity":"deprecated","affected_versions":">=1.2.8"}],"env_vars":null,"search_vec":"'1.2.8':17 '3.6':20 'api':3,14,35 'cadenc':29 'current':15 'github':27 'irregular':31 'licens':24 'maintain':25 'mit':23 'music':37 'python':5,8,19 'releas':21,28 'simpl':7 'spotifi':1,12,32 'support':18 'version':16 'web':2,13,34 'web-api':33 'wrapper':9,36","created_at":"2026-05-09T05:54:23.536080+00:00","updated_at":"2026-05-09T05:54:23.536080+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/Firius0408/spotifywebapi","docs":null,"changelog":null,"pypi":"https://pypi.org/project/spotifywebapi/","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}}