Skip to content

A simple Python script to test access to the Spotify API from your VPS and log the results with detailed response information.

License

Notifications You must be signed in to change notification settings

power0matin/Spotify-API-Test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎧 Spotify-API-Test 🚀

📝 Overview

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.

✨ Features

  • ✅ 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.

🛡️ Requirements

  • 🐍 Python 3.7+

  • 📦 Python package: requests

    pip install requests

📥 Installation & Usage

  1. Clone the repository:

    git clone https://github.com/power0matin/Spotify-API-Test.git
    cd Spotify-API-Test
  2. Install dependencies:

    pip install requests
  3. Run the test script:

    python spotify_api_test.py
  4. 📄 Check the console output and the generated log in the Log/ directory.

🖥️ Example Output

[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

🤝 Contributing

Contributions, issues, and feature requests are welcome! To contribute:

  1. Fork the repository.
  2. Create your branch: git checkout -b feature/your-feature.
  3. Commit your changes: git commit -m "Add new feature".
  4. Push to the branch: git push origin feature/your-feature.
  5. Open a Pull Request.

📜 License

This project is licensed under the MIT License.

© Created by power0matin

docs(readme): improve Spotify-API-Test README formatting and clarity

About

A simple Python script to test access to the Spotify API from your VPS and log the results with detailed response information.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages