Get Current Track
curl --request GET \
--url https://{spoofify_url}/api/now-playingconst options = {method: 'GET'};
fetch('https://{spoofify_url}/api/now-playing', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://{spoofify_url}/api/now-playing';
const options = {method: 'GET'};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://{spoofify_url}/api/now-playing"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{spoofify_url}/api/now-playing"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}val client = OkHttpClient()
val request = Request.Builder()
.url("https://{spoofify_url}/api/now-playing")
.get()
.build()
val response = client.newCall(request).execute()HttpResponse<String> response = Unirest.get("https://{spoofify_url}/api/now-playing")
.asString();Endpoints
Get Current Track
Get information about the song that is currently playing.
GET
/
api
/
now-playing
Get Current Track
curl --request GET \
--url https://{spoofify_url}/api/now-playingconst options = {method: 'GET'};
fetch('https://{spoofify_url}/api/now-playing', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://{spoofify_url}/api/now-playing';
const options = {method: 'GET'};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://{spoofify_url}/api/now-playing"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{spoofify_url}/api/now-playing"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}val client = OkHttpClient()
val request = Request.Builder()
.url("https://{spoofify_url}/api/now-playing")
.get()
.build()
val response = client.newCall(request).execute()HttpResponse<String> response = Unirest.get("https://{spoofify_url}/api/now-playing")
.asString();JSON Response
- Success
- Error
A BasicTrack object
Example Response
{
id: "5jkFvD4UJrmdoezzT1FRoP",
album: "Nightflight to Venus",
artist: "Boney M.",
href: "https://api.spotify.com/v1/tracks/5jkFvD4UJrmdoezzT1FRoP",
imageUrl: "https://i.scdn.co/image/ab67616d0000b2739e77d65619f80436b5cc9d12",
title: "Rasputin",
uri: "spotify:track:5jkFvD4UJrmdoezzT1FRoP"
}
⌘I

