Skip to content

Latest commit

 

History

History
67 lines (60 loc) · 1.48 KB

artistDetails.md

File metadata and controls

67 lines (60 loc) · 1.48 KB

Artist Details

Get artist details based on given id

URL : API/artistDetails

METHOD : GET

PARAMETERS

  • id=[string]
    • Artist id to query

RESULT

  • success: bool
  • result: object
    • name: string
    • image: string
    • begin_year: bool
    • end_year: string
    • type: string
    • origin: string
    • albums: array
      • id: string
      • title: string
    • official_website: string
    • allmusic: string
    • discogs: string
    • rate_your_music: string

Success Response Example

{
  "success": true,
  "result": {
    "name": "Green Day",
    "image": "https://commons.wikimedia.org/wiki/File:Greenday2010.jpg",
    "begin_year": null,
    "end_year": null,
    "origin": null,
    "type": "Group",
    "albums": [
      {
        "albumId": "c58228d1-05e9-3ce0-83f6-b0d33ffcaa90",
        "title": "39/Smooth"
      },
      {
        "albumId": "a0603694-2422-3a40-b946-d0bcea5e8254",
        "title": "Kerplunk!"
      }
    ],
    "official_website": "http://www.greenday.com/",
    "allmusic": "https://www.allmusic.com/artist/mn0000154544",
    "discogs": "https://www.discogs.com/artist/251593",
    "rate_your_music": "http://rateyourmusic.com/artist/green_day"
  }

Failure Response Example

{
	"success": false,
	"result": "Artist with given id not found"
}

Notes