{
"code": 200,
"codeMsg": "success",
"data": {
"type": "album",
"id": "2ANVost0y2y52ema1E9xAZ",
"url": "https://open.spotify.com/album/2ANVost0y2y52ema1E9xAZ",
"name": "Thriller",
"albumType": "ALBUM",
"releaseDate": "1982-11-30",
"artists": [
{
"id": "3fMbdgg4jU18AjLCKBhRSm",
"name": "Michael Jackson"
}
],
"imageUrl": "https://i.scdn.co/image/ab67616d0000b27332a7d87248d1b75463483df5",
"totalTracks": 9,
"pagination": {
"page": 1,
"size": 40,
"total": 9,
"totalPages": 1,
"hasMore": false
},
"tracks": [
{
"id": "1hu2s7qkm5bo03eODpRQO3",
"url": "https://open.spotify.com/track/1hu2s7qkm5bo03eODpRQO3",
"name": "Wanna Be Startin' Somethin'",
"artists": [
{
"id": "3fMbdgg4jU18AjLCKBhRSm",
"name": "Michael Jackson"
}
],
"durationMs": 363400,
"coverUrl": "https://i.scdn.co/image/ab67616d0000b27332a7d87248d1b75463483df5",
"playable": true
},
{
"id": "6XYbMGvtl6tlPoGWaiH7EY",
"url": "https://open.spotify.com/track/6XYbMGvtl6tlPoGWaiH7EY",
"name": "Baby Be Mine",
"artists": [
{
"id": "3fMbdgg4jU18AjLCKBhRSm",
"name": "Michael Jackson"
}
],
"durationMs": 260368,
"coverUrl": "https://i.scdn.co/image/ab67616d0000b27332a7d87248d1b75463483df5",
"playable": true
},
{
"id": "4IT6vDuKprKl6jyVndlY8V",
"url": "https://open.spotify.com/track/4IT6vDuKprKl6jyVndlY8V",
"name": "The Girl Is Mine (with Paul McCartney)",
"artists": [
{
"id": "3fMbdgg4jU18AjLCKBhRSm",
"name": "Michael Jackson"
},
{
"id": "4STHEaNw4mPZ2tzheohgXB",
"name": "Paul McCartney"
}
],
"durationMs": 222152,
"coverUrl": "https://i.scdn.co/image/ab67616d0000b27332a7d87248d1b75463483df5",
"playable": true
},
{
"id": "2LlQb7Uoj1kKyGhlkBf9aC",
"url": "https://open.spotify.com/track/2LlQb7Uoj1kKyGhlkBf9aC",
"name": "Thriller",
"artists": [
{
"id": "3fMbdgg4jU18AjLCKBhRSm",
"name": "Michael Jackson"
}
],
"durationMs": 358807,
"coverUrl": "https://i.scdn.co/image/ab67616d0000b27332a7d87248d1b75463483df5",
"playable": true
},
{
"id": "3BovdzfaX4jb5KFQwoPfAw",
"url": "https://open.spotify.com/track/3BovdzfaX4jb5KFQwoPfAw",
"name": "Beat It",
"artists": [
{
"id": "3fMbdgg4jU18AjLCKBhRSm",
"name": "Michael Jackson"
}
],
"durationMs": 258296,
"coverUrl": "https://i.scdn.co/image/ab67616d0000b27332a7d87248d1b75463483df5",
"playable": true
},
{
"id": "7J1uxwnxfQLu4APicE5Rnj",
"url": "https://open.spotify.com/track/7J1uxwnxfQLu4APicE5Rnj",
"name": "Billie Jean",
"artists": [
{
"id": "3fMbdgg4jU18AjLCKBhRSm",
"name": "Michael Jackson"
}
],
"durationMs": 293802,
"coverUrl": "https://i.scdn.co/image/ab67616d0000b27332a7d87248d1b75463483df5",
"playable": true
},
{
"id": "4cgjA7B4fJBHyB9Ya2bu0t",
"url": "https://open.spotify.com/track/4cgjA7B4fJBHyB9Ya2bu0t",
"name": "Human Nature",
"artists": [
{
"id": "3fMbdgg4jU18AjLCKBhRSm",
"name": "Michael Jackson"
}
],
"durationMs": 245837,
"coverUrl": "https://i.scdn.co/image/ab67616d0000b27332a7d87248d1b75463483df5",
"playable": true
},
{
"id": "1CgmY8fVN7kstVDZmsdM5k",
"url": "https://open.spotify.com/track/1CgmY8fVN7kstVDZmsdM5k",
"name": "P.Y.T. (Pretty Young Thing)",
"artists": [
{
"id": "3fMbdgg4jU18AjLCKBhRSm",
"name": "Michael Jackson"
}
],
"durationMs": 238333,
"coverUrl": "https://i.scdn.co/image/ab67616d0000b27332a7d87248d1b75463483df5",
"playable": true
},
{
"id": "07L1pzoVerhRSSaDGZHrKy",
"url": "https://open.spotify.com/track/07L1pzoVerhRSSaDGZHrKy",
"name": "The Lady in My Life",
"artists": [
{
"id": "3fMbdgg4jU18AjLCKBhRSm",
"name": "Michael Jackson"
}
],
"durationMs": 298251,
"coverUrl": "https://i.scdn.co/image/ab67616d0000b27332a7d87248d1b75463483df5",
"playable": true
}
]
}
}
curl --location --request POST 'https://zylalabs.com/api/14624/music+album+and+playlist+tracks+api/37586/spotify+album+to+mp3?url=https://open.spotify.com/album/2ANVost0y2y52ema1E9xAZ' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"url": "https://open.spotify.com/album/2ANVost0y2y52ema1E9xAZ",
"page": 1,
"size": 40
}'
{
"code": 200,
"codeMsg": "success",
"data": {
"type": "playlist",
"id": "37i9dQZF1E35w1blCGl9fw",
"url": "https://open.spotify.com/playlist/37i9dQZF1E35w1blCGl9fw",
"name": "Daily Mix 1",
"description": "makko, Maroon 5, The Chainsmokers and more",
"owner": {
"name": "Spotify",
"id": "spotify"
},
"followers": 0,
"collaborative": false,
"shareUrl": "https://open.spotify.com/playlist/37i9dQZF1E35w1blCGl9fw?si=Q9y2QQzOR_egCdzcSfd5hw",
"imageUrl": "https://pickasso.spotifycdn.com/image/ab67c0de0000deef/dt/v1/img/daily/1/ab6761610000e5eba3e7233b6b2cdca73ec4a00c/en",
"totalTracks": 50,
"pagination": {
"page": 1,
"size": 40,
"total": 50,
"totalPages": 2,
"hasMore": true
},
"tracks": [
{
"id": "4gbVRS8gloEluzf0GzDOFc",
"url": "https://open.spotify.com/track/4gbVRS8gloEluzf0GzDOFc",
"name": "Maps",
"artists": [
{
"id": "04gDigrS5kc9YWfZHwBETP",
"name": "Maroon 5"
}
],
"durationMs": 189960,
"coverUrl": "https://i.scdn.co/image/ab67616d0000b273442b53773d50e1b5369bb16c",
"playable": true
},
{
"id": "4cktbXiXOapiLBMprHFErI",
"url": "https://open.spotify.com/track/4cktbXiXOapiLBMprHFErI",
"name": "Memories",
"artists": [
{
"id": "04gDigrS5kc9YWfZHwBETP",
"name": "Maroon 5"
}
],
"durationMs": 189486,
"coverUrl": "https://i.scdn.co/image/ab67616d0000b27386a8ab515de4b7aef28cd631",
"playable": true
},
{
"id": "7BKLCZ1jbUBVqRi2FVlTVw",
"url": "https://open.spotify.com/track/7BKLCZ1jbUBVqRi2FVlTVw",
"name": "Closer",
"artists": [
{
"id": "69GGBxA162lTqCwzJG5jLp",
"name": "The Chainsmokers"
},
{
"id": "26VFTg2z8YR0cCuwLzESi2",
"name": "Halsey"
}
],
"durationMs": 244960,
"coverUrl": "https://i.scdn.co/image/ab67616d0000b273495ce6da9aeb159e94eaa453",
"playable": true
},
{
"id": "2tpWsVSb9UEmDRxAl1zhX1",
"url": "https://open.spotify.com/track/2tpWsVSb9UEmDRxAl1zhX1",
"name": "Counting Stars",
"artists": [
{
"id": "5Pwc4xIPtQLFEnJriah9YJ",
"name": "OneRepublic"
}
],
"durationMs": 257265,
"coverUrl": "https://i.scdn.co/image/ab67616d0000b2739e2f95ae77cf436017ada9cb",
"playable": true
},
{
"id": "5jsw9uXEGuKyJzs0boZ1bT",
"url": "https://open.spotify.com/track/5jsw9uXEGuKyJzs0boZ1bT",
"name": "Stitches",
"artists": [
{
"id": "7n2wHs1TKAczGzO7Dd2rGr",
"name": "Shawn Mendes"
}
],
"durationMs": 206880,
"coverUrl": "https://i.scdn.co/image/ab67616d0000b273d26246b23c8bfa8ce543b3bb",
"playable": true
},
{
"id": "21jGcNKet2qwijlDFuPiPb",
"url": "https://open.spotify.com/track/21jGcNKet2qwijlDFuPiPb",
"name": "Circles",
"artists": [
{
"id": "246dkjvS1zLTtiykXe5h60",
"name": "Post Malone"
}
],
"durationMs": 215280,
"coverUrl": "https://i.scdn.co/image/ab67616d0000b2739478c87599550dd73bfa7e02",
"playable": true
},
{
"id": "567e29TDzLwZwfDuEpGTwo",
"url": "https://open.spotify.com/track/567e29TDzLwZwfDuEpGTwo",
"name": "STAY (with Justin Bieber)",
"artists": [
{
"id": "2tIP7SsRs7vjIcLrU85W8J",
"name": "The Kid LAROI"
},
{
"id": "1uNFoZAHBGtllmzznpCI3s",
"name": "Justin Bieber"
}
],
"durationMs": 141805,
"coverUrl": "https://i.scdn.co/image/ab67616d0000b273b4d59e6fa7e5e7cbc57ac33a",
"playable": true
},
{
"id": "3USxtqRwSYz57Ewm6wWRMp",
"url": "https://open.spotify.com/track/3USxtqRwSYz57Ewm6wWRMp",
"name": "Heat Waves",
"artists": [
{
"id": "4yvcSjfu4PC0CYQyLy4wSq",
"name": "Glass Animals"
}
],
"durationMs": 238805,
"coverUrl": "https://i.scdn.co/image/ab67616d0000b273712701c5e263efc8726b1464",
"playable": true
},
{
"id": "5Hroj5K7vLpIG4FNCRIjbP",
"url": "https://open.spotify.com/track/5Hroj5K7vLpIG4FNCRIjbP",
"name": "Best Day Of My Life",
"artists": [
{
"id": "0MlOPi3zIDMVrfA9R04Fe3",
"name": "American Authors"
}
],
"durationMs": 194240,
"coverUrl": "https://i.scdn.co/image/ab67616d0000b273cc761ba55b0e7abad4539abe",
"playable": true
},
{
"id": "0lYBSQXN6rCTvUZvg9S0lU",
"url": "https://open.spotify.com/track/0lYBSQXN6rCTvUZvg9S0lU",
"name": "Let Me Love You",
"artists": [
{
"id": "540vIaP2JwjQb9dm3aArA4",
"name": "DJ Snake"
},
{
"id": "1uNFoZAHBGtllmzznpCI3s",
"name": "Justin Bieber"
}
],
"durationMs": 205946,
"coverUrl": "https://i.scdn.co/image/ab67616d0000b273212d776c31027c511f0ee3bc",
"playable": true
},
{
"id": "2P4OICZRVAQcYAV2JReRfj",
"url": "https://open.spotify.com/track/2P4OICZRVAQcYAV2JReRfj",
"name": "Waiting For Love",
"artists": [
{
"id": "1vCWHaC5f2uS3yhpwWbIA6",
"name": "Avicii"
}
],
"durationMs": 230613,
"coverUrl": "https://i.scdn.co/image/ab67616d0000b2735393c5d3cac806092a9bc468",
"playable": true
},
{
"id": "7JJmb5XwzOO8jgpou264Ml",
"url": "https://open.spotify.com/track/7JJmb5XwzOO8jgpou264Ml",
"name": "There's Nothing Holdin' Me Back",
"artists": [
{
"id": "7n2wHs1TKAczGzO7Dd2rGr",
"name": "Shawn Mendes"
}
],
"durationMs": 199440,
"coverUrl": "https://i.scdn.co/image/ab67616d0000b273ea3ef7697cfd5705b8f47521",
"playable": true
},
{
"id": "6RUKPb4LETWmmr3iAEQktW",
"url": "https://open.spotify.com/track/6RUKPb4LETWmmr3iAEQktW",
"name": "Something Just Like This",
"artists": [
{
"id": "69GGBxA162lTqCwzJG5jLp",
"name": "The Chainsmokers"
},
{
"id": "4gzpq5DPGxSnKTe4SA8HAU",
"name": "Coldplay"
}
],
"durationMs": 247160,
"coverUrl": "https://i.scdn.co/image/ab67616d0000b2730c13d3d5a503c84fcc60ae94",
"playable": true
},
{
"id": "1XGmzt0PVuFgQYYnV2It7A",
"url": "https://open.spotify.com/track/1XGmzt0PVuFgQYYnV2It7A",
"name": "Payphone",
"artists": [
{
"id": "04gDigrS5kc9YWfZHwBETP",
"name": "Maroon 5"
},
{
"id": "137W8MRPWKqSmrBGDBFSop",
"name": "Wiz Khalifa"
}
],
"durationMs": 231173,
"coverUrl": "https://i.scdn.co/image/ab67616d0000b273fc8633e22a7dba6aab817bff",
"playable": true
}
]
},
"_note": "Response truncated for documentation purposes"
}
curl --location --request POST 'https://zylalabs.com/api/14624/music+album+and+playlist+tracks+api/37587/spotify+playlist+to+mp3?url=https://open.spotify.com/playlist/37i9dQZF1E35w1blCGl9fw' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"url": "https://open.spotify.com/playlist/37i9dQZF1E35w1blCGl9fw",
"page": 1,
"size": 40
}'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 音乐专辑和播放列表曲目 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
每个端点返回Spotify专辑或播放列表的元数据,包括标题、发行日期和艺术家信息等详细信息,以及分页的曲目列表。每个曲目条目包括其名称和用于进一步操作的URL,例如MP3转换
响应中的关键字段包括“类型”(专辑或播放列表)“id”“网址”“名称”“发行日期”“艺术家”“总曲目数”和“曲目”每个曲目条目包含“id”“网址”和“名称”为用户提供必要的信息
响应数据采用JSON格式结构,顶层的“data”对象包含元数据和“tracks”数组。数组中的每个曲目对象包括相关细节,便于访问和操作曲目信息
每个端点提供有关专辑或播放列表的信息,包括其标题、描述、所有者、总轨道数以及轨道列表及其各自的 URL。这使用户能够收集关于音乐集合的全面细节
两个端点的主要参数是专辑或播放列表的Spotify URL 用户必须提供有效的URL以检索相应的元数据和曲目列表 没有指定额外的参数用于自定义
用户可以利用返回的数据在应用程序中显示专辑或播放列表信息 创建音乐库或通过使用提供的曲目网址来方便MP3下载 分页功能允许高效处理大型集合
典型的用例包括构建显示专辑或播放列表详细信息的音乐应用程序 创建音乐推荐系统 以及允许用户通过MP3转换下载曲目以便离线收听
数据准确性通过直接从Spotify的API获取信息来维持,确保元数据和曲目细节是最新和可靠的。来自Spotify的定期更新帮助维持所提供数据的质量