An open API service indexing awesome lists of open source software.

https://github.com/mattmajestic/spotify-api

Query Spotify Artist Stats from Spotify API
https://github.com/mattmajestic/spotify-api

fastapi spotify

Last synced: about 2 months ago
JSON representation

Query Spotify Artist Stats from Spotify API

Awesome Lists containing this project

README

          

# 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 `spotipy` library 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 🏃‍♂️

1. Set your Spotify API credentials in the `.env` file.
2. Install required dependencies using `pip install -r requirements.txt`.
3. Run the application with `uvicorn`.

## Usage 🎯

- Access artist statistics by sending a GET request to `/get_artist_stats?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!

[![Subscribe to Our YouTube Channel](https://img.shields.io/badge/Subscribe-OurChannel-red)](https://www.youtube.com/@majesticcoding)

Like, share, and subscribe to support the channel and stay updated with more exciting content. Enjoy your coding adventures! 🚀