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
- Host: GitHub
- URL: https://github.com/mattmajestic/spotify-api
- Owner: mattmajestic
- Created: 2023-11-08T00:49:51.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-03T02:04:29.000Z (over 2 years ago)
- Last Synced: 2025-03-30T08:29:12.430Z (about 1 year ago)
- Topics: fastapi, spotify
- Language: Astro
- Homepage: https://mattmajestic.github.io/spotify-api/
- Size: 81.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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!
[](https://www.youtube.com/@majesticcoding)
Like, share, and subscribe to support the channel and stay updated with more exciting content. Enjoy your coding adventures! 🚀