{"id":13477971,"url":"https://github.com/spotipy-dev/spotipy","last_synced_at":"2025-12-12T01:02:36.068Z","repository":{"id":15728734,"uuid":"18467027","full_name":"spotipy-dev/spotipy","owner":"spotipy-dev","description":"A light weight Python library for the Spotify Web API","archived":false,"fork":false,"pushed_at":"2025-04-26T11:11:04.000Z","size":1372,"stargazers_count":5202,"open_issues_count":53,"forks_count":966,"subscribers_count":79,"default_branch":"master","last_synced_at":"2025-05-07T19:47:41.749Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://spotipy.readthedocs.org","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spotipy-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-04-05T13:11:25.000Z","updated_at":"2025-05-06T22:27:50.000Z","dependencies_parsed_at":"2023-07-27T19:03:35.229Z","dependency_job_id":"d92daebc-77b0-4531-9d6c-8d13c46f2d5e","html_url":"https://github.com/spotipy-dev/spotipy","commit_stats":{"total_commits":576,"total_committers":195,"mean_commits":2.953846153846154,"dds":0.7777777777777778,"last_synced_commit":"db3fb9a5eea6e7c48c716fa554d497a12a78b677"},"previous_names":["plamere/spotipy"],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spotipy-dev%2Fspotipy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spotipy-dev%2Fspotipy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spotipy-dev%2Fspotipy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spotipy-dev%2Fspotipy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spotipy-dev","download_url":"https://codeload.github.com/spotipy-dev/spotipy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254227603,"owners_count":22035667,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T16:01:50.713Z","updated_at":"2025-12-12T01:02:30.680Z","avatar_url":"https://github.com/spotipy-dev.png","language":"Python","funding_links":[],"categories":["Python","Third-party Web APIs","Music Recommendation \u0026 Discovery","Playback \u0026 Services"],"sub_categories":["Text-to-Speech"],"readme":"# Spotipy\n\n##### Spotipy is a lightweight Python library for the [Spotify Web API](https://developer.spotify.com/documentation/web-api). With Spotipy you get full access to all of the music data provided by the Spotify platform.\n\n![Integration tests](https://github.com/spotipy-dev/spotipy/actions/workflows/integration_tests.yml/badge.svg?branch=master) [![Documentation Status](https://readthedocs.org/projects/spotipy/badge/?version=master)](https://spotipy.readthedocs.io/en/latest/?badge=master) [![Discord server](https://img.shields.io/discord/1244611850700849183?style=flat\u0026logo=discord\u0026logoColor=7289DA\u0026color=7289DA)](https://discord.gg/HP6xcPsTPJ)\n\n## Table of Contents\n\n- [Features](#features)\n- [Installation](#installation)\n- [Quick Start](#quick-start)\n- [Reporting Issues](#reporting-issues)\n- [Contributing](#contributing)\n\n## Features\n\nSpotipy supports all of the features of the Spotify Web API including access to all end points, and support for user authorization. For details on the capabilities you are encouraged to review the [Spotify Web API](https://developer.spotify.com/web-api/) documentation.\n\n## Installation\n\n```bash\npip install spotipy\n```\n\nalternatively, for Windows users \n\n```bash\npy -m pip install spotipy\n```\n\nor upgrade\n\n```bash\npip install spotipy --upgrade\n```\n\n## Quick Start\n\nA full set of examples can be found in the [online documentation](http://spotipy.readthedocs.org/) and in the [Spotipy examples directory](https://github.com/spotipy-dev/spotipy-examples).\n\nTo get started, [install spotipy](#installation), create a new account or log in on https://developers.spotify.com/. Go to the [dashboard](https://developer.spotify.com/dashboard), create an app and add your new ID and SECRET (ID and SECRET can be found on an app setting) to your environment:\n\n### Example without user authentication\n\n```python\nimport spotipy\nfrom spotipy.oauth2 import SpotifyClientCredentials\n\nsp = spotipy.Spotify(auth_manager=SpotifyClientCredentials(client_id=\"YOUR_APP_CLIENT_ID\",\n                                                           client_secret=\"YOUR_APP_CLIENT_SECRET\"))\n\nresults = sp.search(q='weezer', limit=20)\nfor idx, track in enumerate(results['tracks']['items']):\n    print(idx, track['name'])\n```\nExpected result:\n```\n0 Island In The Sun\n1 Say It Ain't So\n2 Buddy Holly\n.\n.\n.\n18 Troublemaker\n19 Feels Like Summer\n```\n\n\n### Example with user authentication\n\nA redirect URI must be added to your application at [My Dashboard](https://developer.spotify.com/dashboard/applications) to access user authenticated features.\n\n```python\nimport spotipy\nfrom spotipy.oauth2 import SpotifyOAuth\n\nsp = spotipy.Spotify(auth_manager=SpotifyOAuth(client_id=\"YOUR_APP_CLIENT_ID\",\n                                               client_secret=\"YOUR_APP_CLIENT_SECRET\",\n                                               redirect_uri=\"YOUR_APP_REDIRECT_URI\",\n                                               scope=\"user-library-read\"))\n\nresults = sp.current_user_saved_tracks()\nfor idx, item in enumerate(results['items']):\n    track = item['track']\n    print(idx, track['artists'][0]['name'], \" – \", track['name'])\n```\nExpected result will be the list of music that you liked. For example if you liked Red and Sunflower, the result will be:\n```\n0 Post Malone  –  Sunflower - Spider-Man: Into the Spider-Verse\n1 Taylor Swift  –  Red\n```\n\n\n## Reporting Issues\n\nFor common questions please check our [FAQ](FAQ.md).\n\nYou can ask questions about Spotipy on\n[Stack Overflow](http://stackoverflow.com/questions/ask).\nDon’t forget to add the *Spotipy* tag, and any other relevant tags as well, before posting.\n\nIf you have suggestions, bugs or other issues specific to this library,\nfile them [here](https://github.com/plamere/spotipy/issues).\nOr just send a pull request.\n\n## Contributing\n\nIf you are a developer with Python experience, and you would like to contribute to Spotipy, please be sure to follow the guidelines listed on documentation page\n\n\u003e #### [Visit the guideline](https://spotipy.readthedocs.io/en/#contribute)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspotipy-dev%2Fspotipy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspotipy-dev%2Fspotipy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspotipy-dev%2Fspotipy/lists"}