Get Queue
curl --request GET \
--url https://{spoofify_url}/api/queueconst options = {method: 'GET'};
fetch('https://{spoofify_url}/api/queue', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://{spoofify_url}/api/queue';
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/queue"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{spoofify_url}/api/queue"
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/queue")
.get()
.build()
val response = client.newCall(request).execute()HttpResponse<String> response = Unirest.get("https://{spoofify_url}/api/queue")
.asString();Endpoints
Get Queue
Get information about each song in the Spotify queue.
GET
/
api
/
queue
Get Queue
curl --request GET \
--url https://{spoofify_url}/api/queueconst options = {method: 'GET'};
fetch('https://{spoofify_url}/api/queue', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://{spoofify_url}/api/queue';
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/queue"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{spoofify_url}/api/queue"
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/queue")
.get()
.build()
val response = client.newCall(request).execute()HttpResponse<String> response = Unirest.get("https://{spoofify_url}/api/queue")
.asString();JSON Response
- Success
- Error
An array of BasicTrack objects
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"
},
{
id: "1mCsF9Tw4AkIZOjvZbZZdT",
album: "I Don't Speak The Language",
artist: "Matthew Wilder",
href: "https://api.spotify.com/v1/tracks/1mCsF9Tw4AkIZOjvZbZZdT",
imageUrl: "https://i.scdn.co/image/ab67616d0000b2739824c6e084b02d24b2e22e94",
title: "Break My Stride",
uri: "spotify:track:1mCsF9Tw4AkIZOjvZbZZdT"
},
...
]
⌘I

