Get Last.FM Playback
curl --request GET \
--url http://localhost:1234/api/services/lastfm/playback/nowplayingconst options = {method: 'GET'};
fetch('http://localhost:1234/api/services/lastfm/playback/nowplaying', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'http://localhost:1234/api/services/lastfm/playback/nowplaying';
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/services/lastfm/playback/nowplaying"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:1234/api/services/lastfm/playback/nowplaying"
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/services/lastfm/playback/nowplaying")
.get()
.build()
val response = client.newCall(request).execute()HttpResponse<String> response = Unirest.get("http://localhost:1234/api/services/lastfm/playback/nowplaying")
.asString();Endpoints
Get Last.FM Playback
Get information about Last.FM’s playback
GET
/
api
/
services
/
lastfm
/
playback
/
nowplaying
Get Last.FM Playback
curl --request GET \
--url http://localhost:1234/api/services/lastfm/playback/nowplayingconst options = {method: 'GET'};
fetch('http://localhost:1234/api/services/lastfm/playback/nowplaying', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'http://localhost:1234/api/services/lastfm/playback/nowplaying';
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/services/lastfm/playback/nowplaying"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:1234/api/services/lastfm/playback/nowplaying"
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/services/lastfm/playback/nowplaying")
.get()
.build()
val response = client.newCall(request).execute()HttpResponse<String> response = Unirest.get("http://localhost:1234/api/services/lastfm/playback/nowplaying")
.asString();JSON Response
- Success
- Error
LastFMNowPlayingResponse
required
A LastFMNowPlayingResponse object
null
required
Example Response
{
data: {
artist: {
mbid: "",
"#text": "Tiffany Stringer"
},
streamable: "0",
image: [
{
size: "small",
"#text": "https://lastfm.freetls.fastly.net/i/u/34s/d140a39f4c7260567f0aacf8737b9440.jpg"
},
{
size: "medium",
"#text": "https://lastfm.freetls.fastly.net/i/u/64s/d140a39f4c7260567f0aacf8737b9440.jpg"
},
{
size: "large",
"#text": "https://lastfm.freetls.fastly.net/i/u/174s/d140a39f4c7260567f0aacf8737b9440.jpg"
},
{
size: "extralarge",
"#text": "https://lastfm.freetls.fastly.net/i/u/300x300/d140a39f4c7260567f0aacf8737b9440.jpg"
}
],
mbid: "",
album: {
mbid: "",
"#text": "The National Anthem (of Independence)"
},
name: "The National Anthem (of Independence)",
url: "https://www.last.fm/music/Tiffany+Stringer/_/The+National+Anthem+(of+Independence)",
date: {
uts: "1776835530",
"#text": "22 Apr 2026, 05:25"
}
},
error: null
}
⌘I

