Last.fm is disabling API Keys for non-paid accounts December 1st.Learn More
Get now-playing-options
GET
/api/dashboard/now-playing-options
const url = 'https://example.com/api/dashboard/now-playing-options';const options = {method: 'GET', headers: {cookie: 'ms.session_token=<ms.session_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/dashboard/now-playing-options \ --cookie ms.session_token=<ms.session_token>Sources and clients that can be used as Now Playing for the public dashboard
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Success
Media typeapplication/json
Array<object>
A Source or client that can be picked as the public dashboard’s Now Playing
object
from
required
string
uid
required
string
name
required
string
type
required
string
Example
[ { "from": "client" }]