Skip to main content

Authentication

Some endpoints require a Spoofify API key, which lives as an environment variable in the Spoofify project.

Sending your First Request

Once Spoofify is running, you can test the API’s functionality with a simple GET request.
1

Play Music

Play a song on Spotify. Wait for the app to recognize the playback before continuing.
2

Send GET Request

Navigate to the URL below in your browser:
https://{spoofify_url}/api/now-playing
Opening the link in the browser supplies the cookie required for the endpoint.
3

😎 Observe

You should receive a JSON response. It will either be a BasicTrack object, or null.See Endpoint Documentation

Next Steps

Once you’ve got the API up and running, continue to the Endpoints section to learn about all of the ways to interact with Spoofify over HTTP

API Endpoints