{"library":"spotifywebapipython","title":"Spotify Web API Python Library","type":"library","description":"A modern, typed Python3 library for the Spotify Web API, supporting OAuth, pagination, and all major endpoints. Current version 1.0.270, released on PyPI with active development.","language":"python","status":"active","last_verified":"Sat May 09","install":{"commands":["pip install spotifywebapipython"],"cli":null},"imports":["from spotifywebapipython import SpotifyClient","from spotifywebapipython import SpotifyError"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/thlucas1/spotifywebapiPython","docs":"https://spotifywebapiPython.readthedocs.io/en/latest/__init__.html","changelog":"https://github.com/thlucas1/spotifywebapiPython/blob/master/CHANGELOG.md","pypi":"https://pypi.org/project/spotifywebapipython/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"from spotifywebapipython import SpotifyClient\n\nclient = SpotifyClient(\n    client_id=os.environ.get('SPOTIFY_CLIENT_ID', ''),\n    client_secret=os.environ.get('SPOTIFY_CLIENT_SECRET', ''),\n    redirect_uri=os.environ.get('SPOTIFY_REDIRECT_URI', '')\n)\n# Authenticate (requires user interaction for authorization code flow)\n# For simplicity, use client credentials flow (no user-specific data):\nclient.authenticate()\n# Search for a track\nresults = client.search('Never Gonna Give You Up', type='track')\nprint(results)","lang":"python","description":"Initialize client, authenticate, and search for a track.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}