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

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify-API-Test 🚀

Overview 📝

A simple Python script to test Spotify API accessibility from your VPS or server.
It performs a GET request to Spotify's OAuth token endpoint, logs the status, response time, and headers for debugging and connectivity verification.

This tool helps you verify if your VPS or hosting environment is able to access Spotify services without being blocked or rate-limited.

Spotify-API-Test

Spotify Logo

Features ✨

  • Tests connection to Spotify API token endpoint.
  • Logs detailed response info including status code, headers, and response time.
  • Saves logs with timestamp in a dedicated Log/ directory.
  • Easy to run with no dependencies other than requests.
  • Useful for troubleshooting VPS access issues to Spotify.
  • Designed and maintained by power0matin.

Requirements 🛡️

  • Python 3.7 or higher.
  • requests library (pip install requests).

Installation & Usage 📥

  1. Clone the repository:
git clone https://github.com/power0matin/Spotify-API-Test.git
cd Spotify-API-Test
  1. Install dependencies:
pip install requests
  1. Run the test script:
python spotify_api_test.py
  1. Check the console output and review the generated log file inside the Log/ folder.

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! Feel free to fork the repo and submit a pull request.

License 📜

This project is licensed under the MIT License.

© Created by power0matin

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