Skip to content

Latest commit

 

History

History
59 lines (52 loc) · 1.46 KB

albumDetails.md

File metadata and controls

59 lines (52 loc) · 1.46 KB

Album Details

Get album details based on given id

URL : API/albumDetails

METHOD : GET

PARAMETERS :

  • id=[string]
    • Album id to query

RESULT :

  • success: bool
  • result: object
    • title: string
    • id: string
    • artist: object
      • id: string
      • name: string
    • track_count: int
    • allmusic: string
    • discogs: string
    • rate_your_music: string

Success Response Example

{
  "success": true,
  "result": {
    "title": "Kerplunk!",
    "image": null,
    "id": "a0603694-2422-3a40-b946-d0bcea5e8254",
    "artists": [
      {
        "id": "084308bd-1654-436f-ba03-df6697104e19",
        "name": "Green Day"
      }
    ],
    "track_count": 0,
    "allmusic": "https://www.allmusic.com/album/mw0000096356",
    "discogs": "https://www.discogs.com/master/33172",
    "rate_your_music": "https://rateyourmusic.com/release/album/green_day/kerplunk/"
  }
}

Failure Response Example

{
	"success": false,
	"response": "Album with given id not found"
}

Notes