Spotify Lyrics API

Provides synchronized lyrics and song metadata from Spotify, allowing lyric visualization to be integrated into music applications or interactive platforms.
Use this API from your AI agent via MCP
Works with OpenClaw, Claude Code/Desktop, Cursor, Windsurf, Cline and any MCP-compatible AI client.
Docs & setup
Create a skill by wrapping this MCP: https://mcp.zylalabs.com/mcp?apikey=YOUR_ZYLA_API_KEY

The Spotify Lyrics API is a tool designed to provide easy and efficient access to song lyrics available on Spotify, along with complementary information such as artists, albums, synchronization times, and related metadata. Its main objective is to give developers and content creators the ability to enrich their music applications with real-time lyrics, improving the user experience through direct integration with the Spotify ecosystem.

This API allows you to obtain complete lyrics based on the exact playback point of a track. In this way, it can be used to build players with dynamic lyrics display, interactive karaoke, or semantic analysis of lyrical content. Thanks to its REST-based structure, requests are simple and fast, ensuring compatibility with multiple languages and frameworks.

In addition, the API can be used in both personal and commercial projects, always respecting Spotify's usage and intellectual property policies. Its modular design and clear documentation make implementation easy even for developers with little experience in streaming services.

In short, the Spotify Lyrics API represents a complete solution for incorporating song lyrics and music data in a dynamic, accurate, and attractive way, enhancing the interaction between the user, music, and technology.

API Documentation

Endpoints


Provides synchronized song lyrics by simply entering the track ID.



                                                                            
GET https://www.zylalabs.com/api/10985/spotify+lyrics+api/20708/get+lyrics
                                                                            
                                                                        

Get Lyrics - Endpoint Features

Object Description
trackId [Required] Enter a track id
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {"success":true,"cached":false,"data":{"lrc":"[00:34.45] Look\n[00:36.81] If you had\n[00:39.37] One shot\n[00:41.21] Or one opportunity\n[00:43.82] To seize everything you ever wanted\n[00:46.74] In one moment\n[00:48.94] Would you capture it?\n[00:50.91] Or just let it slip? Yo\n[00:53.65] His palms are sweaty\n[00:55.08] Knees weak arms are heavy\n[00:56.53] There's vomit on his sweater already\n[00:58.46] Mom's spaghetti\n[00:59.55] He's nervous\n[01:00.49] But on the surface he looks calm and ready\n[01:02.32] To drop bombs, but he keeps on forgetting\n[01:05.07] What he wrote down\n[01:06.17] The whole crowd grows so loud\n[01:07.95] He opens his mouth\n[01:09.06] But the words won't come out\n[01:10.60] He's choking how\n[01:12.07] Everybody's joking now\n[01:13.53] The clock's run out, time's up, over, blaow\n[01:16.40] Snap back to reality\n[01:18.07] Oh, there goes gravity\n[01:19.55] Oh, there goes Rabbit, he choked\n[01:21.22] He's so mad, but he won't give up that easy, no\n[01:23.80] He won't have it, he knows his whole back's to these ropes\n[01:26.95] It don't matter, he's dope\n[01:28.21] He knows that but he's broke\n[01:29.67] He's so sad that he knows\n[01:30.81] When he goes back to his mobile home, that's when it's\n[01:33.46] Back to the lab again, yo\n[01:35.18] This whole rhapsody\n[01:36.29] He better go capture this moment and hope it don't pass him\n[01:38.47] You better lose yourself in the music\n[01:40.80] The moment you own it, you better never let it go (go)\n[01:43.83] You only get one shot, do not miss your chance to blow\n[01:46.91] This opportunity comes once in a lifetime (yo)\n[01:49.91] You better lose yourself in the music\n[01:51.78] The moment you own it, you better never let it go (go)\n[01:55.00] You only get one shot, do not miss your chance to blow\n[01:58.35] This opportunity comes once in a lifetime (You better)\n[02:01.15] The soul's escaping, through this hole that is gaping\n[02:04.35] This world is mine for the taking\n[02:06.35] Make me king, as we move toward a New World Order\n[02:09.69] A normal life is boring, but superstardom's close to post-mortem\n[02:13.82] It only grows harder, homie grows hotter\n[02:16.52] He blows, it's all over, these hoes is all on him\n[02:19.63] Coast-to-coast shows, he's known as the globetrotter\n[02:22.28] Lonely roads, God only knows\n[02:24.23] He's grown farther from home, he's no father\n[02:26.50] He goes home and barely knows his own daughter\n[02:29.32] But hold your nose 'cause here goes the cold water\n[02:32.13] These hoes don't want him no more, he's cold product\n[02:34.78] They moved on to the next schmoe who flows\n[02:37.17] He nose-dove and sold nada, and so the soap opera\n[02:40.65] Is told, it unfolds, I suppose it's old, partner\n[02:43.49] But the beat goes on, da-da-dom, da-dom, dah-dah, dah-dah\n[02:45.73] You better lose yourself in the music\n[02:47.97] The moment you own it, you better never let it go (go)\n[02:51.06] You only get one shot, do not miss your chance to blow\n[02:54.15] This opportunity comes once in a lifetime (yo)\n[02:56.73] You better lose yourself in the music\n[02:59.05] The moment you own it, you better never let it go (go)\n[03:02.44] You only get one shot, do not miss your chance to blow\n[03:05.50] This opportunity comes once in a lifetime (you better)\n[03:08.46] No more games, I'm a change what you call rage\n[03:11.07] Tear this motherfucking roof off like two dogs caged\n[03:14.01] I was playing in the beginning, the mood all changed\n[03:16.88] I've been chewed up and spit out and booed off stage\n[03:19.45] But I kept rhyming and stepped right into the next cypher\n[03:22.51] Best believe somebody's paying the Pied Piper\n[03:25.23] All the pain inside amplified by the\n[03:28.21] Fact that I can't get by with my nine-to-five\n[03:31.37] And I can't provide the right type of life for my family\n[03:34.99] 'Cause man, these goddamn food stamps don't buy diapers\n[03:38.19] And it's no movie, there's no Mekhi Phifer, this is my life\n[03:41.89] And these times are so hard, and it's getting even harder\n[03:44.62] Trying to feed and water my seed, plus\n[03:46.73] Teeter-totter caught up between being a father and a prima donna\n[03:50.38] Baby, mama drama's screaming on her\n[03:52.05] Too much for me to wanna\n[03:53.34] Stay in one spot, another day of monotony's gotten me\n[03:56.70] To the point, I'm like a snail\n[03:58.19] I've got to formulate a plot or I end up in jail or shot\n[04:01.42] Success is my only motherfucking option, failure's not\n[04:04.88] Mom, I love you, but this trailer's got to go\n[04:07.55] I cannot grow old in Salem's Lot\n[04:09.82] So here I go it's my shot\n[04:11.11] Feet, fail me not\n[04:12.52] This may be the only opportunity that I got\n[04:15.49] You better lose yourself in the music\n[04:17.37] The moment you own it, you better never let it go (go)\n[04:20.85] You only get one shot, do not miss your chance to blow\n[04:23.74] This opportunity comes once in a lifetime (yo)\n[04:26.22] You better lose yourself in the music\n[04:28.66] The moment you own it, you better never let it go (go)\n[04:32.00] You only get one shot, do not miss your chance to blow\n[04:35.28] This opportunity comes once in a lifetime (you better)\n[04:39.96] You can do anything you set your mind to, man\n[04:42.27] ","source":"v2"}}
                                                                                                                                                                                                                    
                                                                                                    

Get Lyrics - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/10985/spotify+lyrics+api/20708/get+lyrics?trackId=1v7L65Lzy0j0vdpRjJewt1' --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 Lyrics 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 commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.

🚀 Enterprise

Starts at
$ 10,000/Year


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

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

Spotify Lyrics API FAQs

The Get Lyrics endpoint returns synchronized song lyrics along with metadata such as album name, artist name, track duration, and a URL for the lyrics file. This allows developers to display lyrics in real-time as the song plays.

The key fields in the response include "albumName," "artistName," "duration," "lrc_url," "spotify_track_id," and "title." These fields provide essential information for displaying lyrics and related song details.

The response data is structured in JSON format, with key-value pairs for each field. This makes it easy to parse and utilize in applications, allowing developers to access specific information like the song title or artist name directly.

The Get Lyrics endpoint provides information on song lyrics, artist and album details, track duration, and a link to the lyrics file. This comprehensive data supports various applications, from lyric display to karaoke features.

Users can customize their requests by specifying the track ID in the GET request. This allows them to retrieve lyrics for any specific song available on Spotify, tailoring the output to their application's needs.

Typical use cases include building music players with dynamic lyrics display, creating interactive karaoke applications, and performing semantic analysis of lyrics for music-related insights or content creation.

Data accuracy is maintained through direct integration with Spotify's database, ensuring that the lyrics and metadata are up-to-date and reliable. Regular updates and checks help uphold the quality of the information provided.

Users can effectively utilize the returned data by integrating it into their applications to display synchronized lyrics, enhance user engagement, and provide additional context about the song, such as artist and album information.

General FAQs

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.

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

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 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 give you the opportunity to experience our APIs without any commitment, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost. This trial can be used only once, so we recommend applying it to the API that interests you the most. While most of our APIs offer a free trial, some may not. The trial concludes after 7 days or once you've made 50 requests, whichever occurs first. If you reach the 50 request limit during the trial, you will need to "Start Your Paid Plan" to continue making requests. You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab. Alternatively, if you don't cancel your subscription before the 7th day, your free trial will end, and your plan will automatically be billed, granting you access to all the API calls specified in your plan. Please keep this in mind to avoid unwanted charges.

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.

Payout Orders are processed between the 20th and the 30th of each month. If you submit your request before the 20th, your payment will be processed within this timeframe.


Related APIs