Spotify API in Python’s FastAPI 🎵
App Functionality 🚀
🎵 Retrieve artist statistics from Spotify:
- Fetch the number of monthly listeners for a specific artist.
- Access essential artist data and insights.
🔑 Secure Spotify API Access:
- Utilize
spotipylibrary for secure access. - Load API credentials from environment variables.
🎤 Easy-to-Use FastAPI Application:
- Simple and user-friendly FastAPI-based interface.
- Query by artist’s Spotify ID to get quick statistics.
Quick Start 🏃♂️
- Set your Spotify API credentials in the
.envfile. - Install required dependencies using
pip install -r requirements.txt. - Run the application with
uvicorn.
Usage 🎯
- Access artist statistics by sending a GET request to
/get_artist_stats?artist_id=<spotify_artist_id>. - Retrieve monthly listeners and other artist data effortlessly.
Subscribe and Stay Tuned! 🎉
Join our YouTube channel for more tech tutorials and quick hacks!
Like, share, and subscribe to support the channel and stay updated with more exciting content. Enjoy your coding adventures! 🚀