key_artist_songs

🟡 Incomplete

This API's output may have additions in the future.


Input an Artist key, retrieve all their Song's.

The Song's are sorted by Album release date, then Track + Disc order.

Inputs

FieldTypeDescription
keyArtist key (unsigned integer)See Key

Outputs

FieldTypeDescription
lenunsigned integerHow many Song's there are
songsarray of Song objectsSee Song

Example Request

festival-cli key_artist_songs --key 62
curl http://localhost:18425 -d '{"jsonrpc":"2.0","id":0,"method":"key_artist_songs","params":{"key":62}}'

Example Response

{
  "jsonrpc": "2.0",
  "result": {
    "len": 2,
    "songs": [
      {
        "title": "SUNFLOWER",
        "key": 2444,
        "album": 222,
        "runtime": 252,
        "sample_rate": 44100,
        "track": 1,
        "disc": null,
        "mime": "audio/mpeg",
        "extension": "mp3"
      },
      {
        "title": "BEST FRIEND",
        "key": 2398,
        "album": 222,
        "runtime": 262,
        "sample_rate": 44100,
        "track": 2,
        "disc": null,
        "mime": "audio/mpeg",
        "extension": "mp3"
      }
    ]
  },
  "id": 0
}