Skip to content

Latest commit

 

History

History
56 lines (49 loc) · 1.05 KB

searchAlbum.md

File metadata and controls

56 lines (49 loc) · 1.05 KB

Search Album

Get a list of album releases matching given query

URL : API/searchAlbum

METHOD : GET

PARAMETERS

  • name=[string]
    • Name of albumto query

RESULT

  • success: bool
  • result: object
    • id: string
    • track_count: int
    • title: string
    • artist_credit: array
      • id: string
      • name: string
    • genre: string

Success Response Example

{
  "success": true,
  "result": {
    "albums": [
      {
        "id": "37608ff2-3168-3e7c-a77e-04a4b7300c1b",
        "track_count": 13,
        "title": "21st Century Breakdown",
        "artist_credit": [
          {
            "id": "084308bd-1654-436f-ba03-df6697104e19",
            "name": "Green Day"
          }
        ],
        "tags": "rock, punk"
      }
    ]
  }
}

Failure Response Example

{
	"success": false,
	"result": "No result found matching query"
}

Notes