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.

API description

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://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://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://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, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.

Prices are listed in USD. 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 with paying by card, just contact us at [email protected]

Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further

Prices are based on a recurring monthly subscription depending on the plan selected β€” plus overage fees applied when a developer exceeds a plan’s quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.

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.

Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.

Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.

You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]

 Service Level
100%
 Response Time
238ms

Useful links:


Category:


Tags:


Related APIs