Spotify Tracks API

Spotify Tracks API

The Spotify Tracks API provides programmatic access to information about tracks, including artist, album, and song information. It allows developers to retrieve this data by providing the track's ID.

About the API:

The Spotify Tracks API is a powerful tool for developers looking to access information about tracks on Spotify, including artist, album, and song information. This API provides programmatic access to Spotify's music catalog by allowing developers to retrieve data about a track by providing the track's ID, giving developers the ability to retrieve a wide range of information about the track and its associated content.

The API allows developers to retrieve data in JSON format, making it easy to integrate into any application. The API is also well-documented, providing detailed information about how to use its various features and options.

This API can be useful for a variety of use cases such as music recommendation, playlist creation, lyrics retrieval, and music analytics among others. For example, you can use this API to retrieve the track information and analyze the most popular tracks, artists, and genres among your users.

Additionally, developers can use this API to retrieve the lyrics of a track, information about the artist, the album, and the album cover. It could also be used to check if a track is available on Spotify, and also check if the track has explicit content.

Overall, the Spotify Tracks API is a valuable resource for anyone looking to access information about tracks on Spotify and stay informed about the track's content and associated metadata. Whether you're a developer, marketer, or researcher, this API is sure to provide you with the information you need to create a music-related application or service.

What your API receives and what your API provides (input/output)?

It will receive a parameter and provide you with a JSON.

What are the most common uses cases of this API?

A music streaming app that wants to retrieve information about tracks, such as artist and album information, to display to users.

A music recommendation engine that wants to retrieve information about tracks to recommend similar music to users.

A lyrics website that wants to retrieve information about tracks to display lyrics to users.

A music analytics tool that wants to retrieve information about tracks to understand the popularity of different tracks, artists, and genres.

A music playlist creator that wants to retrieve information about tracks to create personalized playlists for users.

A music search engine that wants to retrieve information about tracks to improve search results and user experience.

A music discovery platform that wants to retrieve information about tracks to recommend new music to users.

A music marketing tool that wants to retrieve information about tracks to understand the target audience and create campaigns that align with them.

A music trivia game that wants to retrieve information about tracks to create questions for users to answer.

A music streaming platform that wants to retrieve information about tracks to check if the track is available on Spotify, retrieve the track's popularity, and check if the track has explicit content.

Are there any limitations to your plans?

Basic Plan: 10,000 API Calls.

Pro Plan: 30,000 API Calls.

Pro Plus Plan: 100,000 API Calls.

Premium Plan: 500,000 API Calls.

API Documentation

Endpoints


The Fetch Spotify Tracks Data endpoint allows developers to retrieve information about tracks on Spotify, including artist, album and song information. This endpoint can be used to retrieve data by providing the track's ID and returning the data in JSON format. It allows developers to access a wide range of information about the track, including the track's name, artist, album, and lyrics among other information. This endpoint can be useful for a variety of use cases such as music recommendation, playlist creation, lyrics retrieval, and music analytics among others. It allows developers to easily retrieve the data associated with a track and use it for different purposes.



                                                                            
GET https://www.zylalabs.com/api/1103/spotify+tracks+api/961/fetch+spotify+tracks+data
                                                                            
                                                                        

Fetch Spotify Tracks Data - Endpoint Features
Object Description
ids [Required] Track IDs from Spotify, you can use comma separated, for example: 2HSmyk2qMN8WQjuGhaQgCk for individual searches or 2HSmyk2qMN8WQjuGhaQgCk,4jPy3l0RUwlUI9T5XHBW2m for multiple searches.
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"tracks":[{"album":{"album_type":"album","artists":[{"external_urls":{"spotify":"https:\/\/open.spotify.com\/artist\/3TVXtAsR1Inumwj472S9r4"},"id":"3TVXtAsR1Inumwj472S9r4","name":"Drake","type":"artist","uri":"spotify:artist:3TVXtAsR1Inumwj472S9r4"}],"external_urls":{"spotify":"https:\/\/open.spotify.com\/album\/3SpBlxme9WbeQdI9kx7KAV"},"id":"3SpBlxme9WbeQdI9kx7KAV","images":[{"height":640,"url":"https:\/\/i.scdn.co\/image\/ab67616d0000b273cd945b4e3de57edd28481a3f","width":640},{"height":300,"url":"https:\/\/i.scdn.co\/image\/ab67616d00001e02cd945b4e3de57edd28481a3f","width":300},{"height":64,"url":"https:\/\/i.scdn.co\/image\/ab67616d00004851cd945b4e3de57edd28481a3f","width":64}],"name":"Certified Lover Boy","release_date":"2021-09-03","release_date_precision":"day","total_tracks":21,"type":"album","uri":"spotify:album:3SpBlxme9WbeQdI9kx7KAV"},"artists":[{"external_urls":{"spotify":"https:\/\/open.spotify.com\/artist\/3TVXtAsR1Inumwj472S9r4"},"id":"3TVXtAsR1Inumwj472S9r4","name":"Drake","type":"artist","uri":"spotify:artist:3TVXtAsR1Inumwj472S9r4"}],"disc_number":1,"duration_ms":336511,"explicit":true,"external_ids":{"isrc":"USUG12104397"},"external_urls":{"spotify":"https:\/\/open.spotify.com\/track\/2HSmyk2qMN8WQjuGhaQgCk"},"id":"2HSmyk2qMN8WQjuGhaQgCk","is_local":false,"is_playable":true,"name":"Champagne Poetry","popularity":76,"preview_url":"https:\/\/p.scdn.co\/mp3-preview\/e6e5094db94b0a8b165e8d76b5d075485e03fdf8?cid=d8a5ed958d274c2e8ee717e6a4b0971d","track_number":1,"type":"track","uri":"spotify:track:2HSmyk2qMN8WQjuGhaQgCk"}]}
                                                                                                                                                                                                                    
                                                                                                    

Fetch Spotify Tracks Data - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/1103/spotify+tracks+api/961/fetch+spotify+tracks+data?ids=2HSmyk2qMN8WQjuGhaQgCk' --header 'Authorization: Bearer YOUR_API_KEY' 

    

The Fetch Spotify Track Lyrics endpoint allows developers to retrieve the lyrics of a specific track on Spotify. This endpoint can be used to retrieve lyrics by providing the track's IDThe endpoint provides full lyrics of the track, including verse, chorus, and bridge. This endpoint can be useful for music websites, music apps, and other services that want to display the lyrics of a song to their users. With this endpoint, developers can easily retrieve the lyrics of a song and display them on their website or application. The lyrics can also be used for other purposes such as language learning, karaoke apps, and lyrics games among others.



                                                                            
GET https://www.zylalabs.com/api/1103/spotify+tracks+api/962/fetch+spotify+track+lyrics
                                                                            
                                                                        

Fetch Spotify Track Lyrics - Endpoint Features
Object Description
id [Required] Track ID From Spotify, for example: 4jPy3l0RUwlUI9T5XHBW2m
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"lyrics":{"syncType":"UNSYNCED","lines":[{"startTimeMs":"0","words":"(Oh-oh-oh)","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"(Yeah, yeah, yeah, yeah, yeah)","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Why you always in a mood?","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Fuckin' 'round, actin' brand new","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"I ain't tryna tell you what to do","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"But try to play it cool","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Baby, I ain't playing by your rules","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Everything look better with a view","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Why you always in a mood?","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Fuckin' 'round, actin' brand new","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"I ain't tryna tell you what to do","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"But try to play it cool","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Baby, I ain't playing by your rules","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Everything look better with a view, yeah","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"I could never get attached","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"When I start to feel, I unattach","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Somehow always end up feeling bad","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Baby, I am not your dad","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"It's not all you want from me","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"I just want your company","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Girl, it's obvious, elephant in the room","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"And we're a part of it, don't act so confused","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"And you love startin' it, now I'm in a mood","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Now we arguin' in my bedroom","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"We play games of love to avoid the depression","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"We been here before, and I won't be your victim","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Why you always in a mood?","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Fuckin' 'round, actin' brand new","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"I ain't tryna tell you what to do","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"But try to play it cool","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Baby, I ain't playing by your rules","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Everything look better with a view","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Why you always in a mood?","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Fuckin' 'round, actin' brand new","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"I ain't tryna tell you what to do","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"But try to play it cool","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Baby, I ain't playing by your rules","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Everything look better with a view","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"So why you tryin' to fake your love on the regular?","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"When you could be blowin' up just like my cellular","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"I won't ever let a shorty go and set me up","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Only thing I need to know is if you wet enough","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"I'm talking slick back, kick back, gang sippin' Fourties","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"You keep playin', not another day with you shorty","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Mismatch, bitch, that was way before you know me","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Got a lot of love, well you better save it for me","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"We play games of love to avoid the depression","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"We been here before, and I won't be your victim","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Why you always in a mood?","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Fuckin' 'round, actin' brand new","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"I ain't tryna tell you what to do","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"But try to play it cool","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Baby, I ain't playing by your rules","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Everything look better with a view","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Why you always in a mood?","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Fuckin' 'round, actin' brand new","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"I ain't tryna tell you what to do","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"But try to play it cool","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Baby, I ain't playing by your rules","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"Everything look better with a view, yeah","syllables":[],"endTimeMs":"0"},{"startTimeMs":"0","words":"","syllables":[],"endTimeMs":"0"}],"provider":"MusixMatch","providerLyricsId":"113838056","providerDisplayName":"Musixmatch","syncLyricsUri":"","isDenseTypeface":false,"alternatives":[],"language":"en","isRtlLanguage":false,"fullscreenAction":"FULLSCREEN_LYRICS"}}
                                                                                                                                                                                                                    
                                                                                                    

Fetch Spotify Track Lyrics - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/1103/spotify+tracks+api/962/fetch+spotify+track+lyrics?id=2HSmyk2qMN8WQjuGhaQgCk' --header 'Authorization: Bearer YOUR_API_KEY' 

    

The Fetch Spotify Track Credits endpoint allows developers to retrieve information about the people who contributed to the creation of a specific track on Spotify. This includes information about the songwriters, producers, and other contributors. This endpoint can be used to retrieve data by providing the track's ID. The endpoint provides a detailed breakdown of the credits of a track, including the names of the contributors, their roles, and the percentage of the track they contributed to. This endpoint can be useful for a variety of use cases such as music research, music analytics, and music licensing among others. It allows developers to easily retrieve the credits of a track and use them for different purposes.



                                                                            
GET https://www.zylalabs.com/api/1103/spotify+tracks+api/963/fetch+spotify+track+credits
                                                                            
                                                                        

Fetch Spotify Track Credits - Endpoint Features
Object Description
id [Required] Track ID From Spotify, for example: 4jPy3l0RUwlUI9T5XHBW2m
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"trackUri":"spotify:track:4jPy3l0RUwlUI9T5XHBW2m","trackTitle":"Mood (feat. iann dior)","roleCredits":[{"roleTitle":"Performers","artists":[{"uri":"spotify:artist:6fWVd57NKTalqvmjRd2t8Z","name":"24kGoldn","subroles":["main artist"],"weight":0.8999000191688538},{"uri":"spotify:artist:6ASri4ePR7RlsvIQgWPJpS","name":"iann dior","subroles":["main artist"],"weight":0.8996000289916992}]},{"roleTitle":"Writers","artists":[{"uri":"spotify:artist:0bZ6okOw38nKBX6me9oD6l","name":"Blake Slatkin","subroles":["composer","lyricist"],"weight":0.6987000107765198},{"uri":"spotify:artist:7HZUOnpX33XMOsI8bwNoy3","name":"Golden Landis Von Jones","subroles":["composer","lyricist"],"weight":0.699400007724762},{"uri":"spotify:artist:263c4Y2ogeRrV23vNSqw7A","name":"Keegan Bach","subroles":["composer","lyricist"],"weight":0.6976000070571899},{"uri":"spotify:artist:1apyeklMi8rdPv7zR5mMcu","name":"Michael Olmo","subroles":["composer","lyricist"],"weight":0.6973999738693237},{"uri":"spotify:artist:7bSjyGxtaKaPxfyDB2Dc7v","name":"Omer Fedi","subroles":["composer","lyricist"],"weight":0.6980000138282776}]},{"roleTitle":"Producers","artists":[{"uri":"spotify:artist:2wlIcFaInAxBm28QdEmtuQ","name":"KBeaZy","subroles":["producer"],"weight":0.5490999817848206},{"uri":"spotify:artist:0bZ6okOw38nKBX6me9oD6l","name":"Blake Slatkin","subroles":["producer"],"weight":0.5483999848365784},{"uri":"spotify:artist:7bSjyGxtaKaPxfyDB2Dc7v","name":"Omer Fedi","subroles":["producer"],"weight":0.5476999878883362}]}],"extendedCredits":[],"sourceNames":["Records\/Columbia"]}
                                                                                                                                                                                                                    
                                                                                                    

Fetch Spotify Track Credits - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/1103/spotify+tracks+api/963/fetch+spotify+track+credits?id=3mlMpmY8oZIBFc39D9zLbh' --header 'Authorization: Bearer YOUR_API_KEY' 

    

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 Spotify Tracks API REST 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.

Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

🚀 Enterprise
Starts at
$ 10,000/Year

  • Custom Volume
  • Dedicated account manager
  • Service-level agreement (SLA)

Customer favorite features

  • ✔︎ Only Pay for Successful Requests
  • ✔︎ Free 7-Day Trial
  • ✔︎ Multi-Language Support
  • ✔︎ One API Key, All APIs.
  • ✔︎ Intuitive Dashboard
  • ✔︎ Comprehensive Error Handling
  • ✔︎ Developer-Friendly Docs
  • ✔︎ Postman Integration
  • ✔︎ Secure HTTPS Connections
  • ✔︎ Reliable Uptime

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, look at the ‘X-Zyla-API-Calls-Monthly-Remaining’ header. For example, if your plan allows 1000 requests per month and you've used 100, this header will show 900.

To see the maximum number of API requests your plan allows, check the ‘X-Zyla-RateLimit-Limit’ header. For instance, if your plan includes 1000 requests per month, this header will display 1000.

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 3600, it means 3600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

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]

To let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.

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 trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.

 Service Level
100%
 Response Time
241ms

Category:


Related APIs