Get Current Track Artist
curl --request GET \
--url http://localhost:1234/api/tracks/nowplaying/artistconst options = {method: 'GET'};
fetch('http://localhost:1234/api/tracks/nowplaying/artist', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'http://localhost:1234/api/tracks/nowplaying/artist';
const options = {method: 'GET'};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "http://localhost:1234/api/tracks/nowplaying/artist"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:1234/api/tracks/nowplaying/artist"
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("http://localhost:1234/api/tracks/nowplaying/artist")
.get()
.build()
val response = client.newCall(request).execute()HttpResponse<String> response = Unirest.get("http://localhost:1234/api/tracks/nowplaying/artist")
.asString();Endpoints
Get Current Track Artist
Get the artist of the song that is currently playing in plain text.
GET
/
api
/
tracks
/
nowplaying
/
artist
Get Current Track Artist
curl --request GET \
--url http://localhost:1234/api/tracks/nowplaying/artistconst options = {method: 'GET'};
fetch('http://localhost:1234/api/tracks/nowplaying/artist', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'http://localhost:1234/api/tracks/nowplaying/artist';
const options = {method: 'GET'};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "http://localhost:1234/api/tracks/nowplaying/artist"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:1234/api/tracks/nowplaying/artist"
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("http://localhost:1234/api/tracks/nowplaying/artist")
.get()
.build()
val response = client.newCall(request).execute()HttpResponse<String> response = Unirest.get("http://localhost:1234/api/tracks/nowplaying/artist")
.asString();⌘I

