Get an Artist's Albums
GET
/artists/{id}/albums
category-artists
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.spotify.com/artists//albums' \
--header 'Authorization;'
响应示例响应示例
200 - 示例 1
{
"href": "string",
"items": [
{
"album_group": "string",
"album_type": "string",
"artists": [
{
"external_urls": {
"spotify": "string"
},
"href": "string",
"id": "string",
"name": "string",
"type": "string",
"uri": "string"
}
],
"available_markets": [
"string"
],
"external_urls": {
"spotify": "string"
},
"href": "string",
"id": "string",
"images": [
{
"height": 0,
"url": "string",
"width": 0
}
],
"name": "string",
"release_date": "string",
"release_date_precision": "string",
"restrictions": {
"reason": "string"
},
"total_tracks": 0,
"type": "string",
"uri": "string"
}
],
"limit": 0,
"next": "string",
"offset": 0,
"previous": "string",
"total": 0
}
请求参数
Path 参数
id
必需
Query 参数
include_groups
可选
album
single
appears_on
compilation
For example:
include_groups=album,single
.market
可选
country
. An ISO 3166-1 alpha-2 country code or the string from_token
.Supply this parameter to limit the response to one particular geographical market. For example, for albums available in Sweden:
market=SE
.If not given, results will be returned for all markets and you are likely to get duplicate results per album, one for each market in which the album is available!
limit
可选
limit=2
offset
可选
limit
to get the next set of albums.Header 参数
Authorization
必需