DEV Community

Aran Services
Aran Services

Posted on

πŸš€ Introducing SpotAPI: A Python Library for Effortless Spotify Integration πŸš€

Hey DEV Community! πŸ‘‹

I'm excited to introduce SpotAPI, a powerful and easy-to-use Python library designed to simplify your interactions with Spotify's private and public APIs. Whether you're building a music app or just experimenting with Spotify data, SpotAPI offers a seamless way to access Spotify's rich features programmatically.

What is SpotAPI? 🎡

SpotAPI is a Python library that emulates the requests made through a web browser to interact with Spotify's APIs. It provides an intuitive interface to work with both public and private Spotify data, making it easier to integrate Spotify features into your applications.

Key Features ✨

  • No Premium Required: Access Spotify’s features without needing a Premium account.
  • Public API Access: Retrieve and manage public Spotify data like playlists, albums, and tracks.
  • Private API Access: Explore private endpoints for tailored application needs.
  • Easy Integration: Start using SpotAPI with minimal setupβ€”no API key required!
  • Browser-like Requests: Replicate Spotify's web requests for a true-to-web experience.

Quick Start Guide πŸš€

Without User Authentication:

from spotapi import Song

song = Song()
gen = song.paginate_songs("weezer")

for batch in gen:
    for idx, item in enumerate(batch):
        print(idx, item['item']['data']['name'])
Enter fullscreen mode Exit fullscreen mode

Import Cookies πŸ› οΈ

Prefer not to use a CAPTCHA solver? You can import cookies to manage your session. Simply follow the steps in our documentation to use SpotAPI with a fully functional session.


License πŸ“

SpotAPI is licensed under the GPL 3.0 License. Learn more about the license.


Feel free to check out the SpotAPI GitHub repository for more details and to get started. Let me know if you have any questions or feedback!

Happy coding! πŸš€

Top comments (0)