Spotify-API-Test is a lightweight Python tool designed to test Spotify API accessibility from your VPS or hosting environment.
It sends a simple GET request to Spotify's OAuth token endpoint and logs response details such as status code, headers, and response time — perfect for debugging and connectivity verification.
📊 Use it to quickly check whether your VPS can reach Spotify without being blocked or rate-limited.
- ✅ Tests connection to Spotify OAuth token endpoint.
- 🧾 Logs status code, headers, and response time.
- 🕒 Saves logs in a timestamped file inside the
Log/directory. - 🧰 Minimal dependencies — just
requests. - 🧭 Helps diagnose VPS firewall or blocking issues.
- 🧑💻 Designed and maintained by power0matin.
-
🐍 Python 3.7+
-
📦 Python package:
requestspip install requests
-
Clone the repository:
git clone https://github.com/power0matin/Spotify-API-Test.git cd Spotify-API-Test -
Install dependencies:
pip install requests
-
Run the test script:
python spotify_api_test.py
-
📄 Check the console output and the generated log in the
Log/directory.
[2025-08-11 08:03:27] ========================================
[2025-08-11 08:03:27] Designed by power0matin | GitHub: https://github.com/power0matin/Spotify-API-Test
[2025-08-11 08:03:27] Sending GET request to https://accounts.spotify.com/api/token
[2025-08-11 08:03:27] Status Code: 403
[2025-08-11 08:03:27] Response Time: 0.123 seconds
[2025-08-11 08:03:27] Response Headers:
[2025-08-11 08:03:27] Content-Type: text/html; charset=UTF-8
[2025-08-11 08:03:27] Referrer-Policy: no-referrer
[2025-08-11 08:03:27] Content-Length: 304
[2025-08-11 08:03:27] Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
[2025-08-11 08:03:27] ⛔ Forbidden: Spotify API access blocked on this VPS.
📝 Log has been saved to: Log/spotify_api_test_2025-08-11_08-03-27.log
Contributions, issues, and feature requests are welcome! To contribute:
- Fork the repository.
- Create your branch:
git checkout -b feature/your-feature. - Commit your changes:
git commit -m "Add new feature". - Push to the branch:
git push origin feature/your-feature. - Open a Pull Request.
This project is licensed under the MIT License.
© Created by power0matin
docs(readme): improve Spotify-API-Test README formatting and clarity