Music Album and Playlist Tracks API

API ID 14624

Resolve a Spotify album or playlist link into its info and a paginated list of tracks, with each track's url for mp3 conversion.

API Documentation

Endpoints

Request
Parses an album URL and returns album metadata along with a paginated list of tracks. Each track includes a URL that can be passed to the Download Track endpoint to retrieve its MP3 download link.
Endpoint ID: 37586
POST https://zylalabs.com/api/14624/music+album+and+playlist+tracks+api/37586/spotify+album+to+mp3
INPUT PARAMETERS

Spotify Album To Mp3 — Endpoint Features

Object Description
url Required Full Spotify album URL
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

url
API EXAMPLE RESPONSE
JSON
{
    "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
            }
        ]
    }
}
Spotify Album To Mp3 — CODE SNIPPETS

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
}'

    
Request
Parses a music collection URL and returns its metadata along with a paginated list of tracks. Each track includes a URL that can be passed to the Download Track endpoint to retrieve its MP3 download link.
Endpoint ID: 37587
POST https://zylalabs.com/api/14624/music+album+and+playlist+tracks+api/37587/spotify+playlist+to+mp3
INPUT PARAMETERS

Spotify Playlist To Mp3 — Endpoint Features

Object Description
url Required Full Spotify playlist URL
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

url
API EXAMPLE RESPONSE
JSON
{
    "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"
}
Spotify Playlist To Mp3 — CODE SNIPPETS

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 Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Music Album and Playlist Tracks API simply include your bearer token in the Authorization header.

Headers
Header Description
Authorization Required Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.

Starts at
$10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • Specialized Customer Support
  • Real-Time API Monitoring

Overview

Resolve a Spotify album or playlist link into its info and a paginated list of tracks, with each track's url for mp3 conversion.

Music Album and Playlist Tracks API FAQs

Each endpoint returns metadata for either a Spotify album or playlist, including details like the title, release date, and artist information, along with a paginated list of tracks. Each track entry includes its name and a URL for further actions, such as MP3 conversion.

Key fields in the response include "type" (album or playlist), "id," "url," "name," "releaseDate," "artists," "totalTracks," and "tracks." Each track entry contains "id," "url," and "name," providing essential information for users.

The response data is structured in a JSON format, with a top-level "data" object containing metadata and a "tracks" array. Each track object within the array includes relevant details, allowing for easy access and manipulation of track information.

Each endpoint provides information about the album or playlist, including its title, description, owner, total tracks, and a list of tracks with their respective URLs. This allows users to gather comprehensive details about the music collection.

The primary parameter for both endpoints is the Spotify URL of the album or playlist. Users must provide a valid URL to retrieve the corresponding metadata and track list. No additional parameters are specified for customization.

Users can utilize the returned data to display album or playlist information in applications, create music libraries, or facilitate MP3 downloads by using the track URLs provided. The pagination feature allows for handling large collections efficiently.

Typical use cases include building music applications that display album or playlist details, creating music recommendation systems, and enabling users to download tracks for offline listening through MP3 conversion.

Data accuracy is maintained by sourcing information directly from Spotify's API, ensuring that the metadata and track details are up-to-date and reliable. Regular updates from Spotify help maintain the quality of the data provided.

General FAQs

To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.

You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.

The free trial lasts for 7 days and allows you to make up to 50 API requests.

No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.

Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world's most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

You can monitor your API usage through the response headers included with every request:

x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.

The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.

Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.

Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

Please have a look at our Refund Policy: https://zylalabs.com/terms#refund


Related APIs