v1/listening

Get's Voidem's current playing song on LastFM. If not currently playing, it will return the last song that was played.

Example URL

https://api.voidem.com/v1/listening/?api_key=YOUR_API_KEY

Parameters

api_key (Required): Your VoidemAPI API key generated in your dashboard.

Sample Response

{
    "listeningData": {
        "nowPlaying": true,
        "artist": "Swedish House Mafia",
        "song": "Don't You Worry Child - Radio Edit",
        "album": "Don't You Worry Child",
        "image": "https://lastfm.freetls.fastly.net/i/u/300x300/9197b5257450b996ef3ad79d1ed11437.jpg",
        "url": "https://www.last.fm/music/Swedish+House+Mafia/_/Don%27t+You+Worry+Child+-+Radio+Edit"
    }
}

Errors

Invalid API Key

{"error":"Invalid API Key"}

A valid API key must be provided from the dashboard

Maximum uses limit

{"error":"User has reached maximum uses limit, please refer to the docs: https://apidocs.voidem.com/endpoints/v1-listening"}

The API key that was provided has hit the limit, by default this is 30. Please contact support to get it reset.

No track data found

{"error":"No track data found"}

There was an issue requesting information from the LastFM API, please contact support.

API Key is restricted

{"error":"API Key is restricted"}

The API key that is being used has been marked as restricted, this can be disabled in the dashboard. Restricted API keys can only be accessed by voidem.com services and not IP Addresses outside of it

Last updated

Was this helpful?