https://github.com/power0matin/spotify-api-test
A simple Python script to test access to the Spotify API from your VPS and log the results with detailed response information.
https://github.com/power0matin/spotify-api-test
api-test spotify spotify-api tester-apps tools
Last synced: 8 months ago
JSON representation
A simple Python script to test access to the Spotify API from your VPS and log the results with detailed response information.
- Host: GitHub
- URL: https://github.com/power0matin/spotify-api-test
- Owner: power0matin
- License: mit
- Created: 2025-08-11T08:07:07.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-08-11T08:19:59.000Z (8 months ago)
- Last Synced: 2025-08-11T10:24:10.158Z (8 months ago)
- Topics: api-test, spotify, spotify-api, tester-apps, tools
- Language: Python
- Homepage:
- Size: 83 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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.


## 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:
```bash
git clone https://github.com/power0matin/Spotify-API-Test.git
cd Spotify-API-Test
```
2. Install dependencies:
```bash
pip install requests
```
3. Run the test script:
```bash
python spotify_api_test.py
```
4. Check the console output and review the generated log file inside the `Log/` folder.
## Example Output 🖥️
```plaintext
[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](LICENSE).
© Created by power0matin