Get an Album's Tracks
GET
/albums/{id}/tracks
category-albums
Optional parameters can be used to limit the number of tracks returned.
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.spotify.com/albums//tracks' \
--header 'Authorization;'
响应示例响应示例
200 - 示例 1
{
"href": "string",
"items": [
{
"artists": [
{
"external_urls": {
"spotify": "string"
},
"href": "string",
"id": "string",
"name": "string",
"type": "string",
"uri": "string"
}
],
"available_markets": [
"string"
],
"disc_number": 0,
"duration_ms": 0,
"explicit": true,
"external_urls": {
"spotify": "string"
},
"href": "string",
"id": "string",
"is_local": true,
"is_playable": true,
"linked_from": {
"external_urls": {
"spotify": "string"
},
"href": "string",
"id": "string",
"type": "string",
"uri": "string"
},
"name": "string",
"preview_url": "string",
"restrictions": {
"reason": "string"
},
"track_number": 0,
"type": "string",
"uri": "string"
}
],
"limit": 0,
"next": "string",
"offset": 0,
"previous": "string",
"total": 0
}
请求参数
Path 参数
id
必需
Query 参数
market
可选
limit
可选
offset
可选
Header 参数
Authorization
必需