Spotify Song Lyrics API

Fetch real-time song lyrics for any Spotify track instantly, enabling music apps and users to sync, display, and analyze lyrics seamlessly.
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 Song Lyrics API provides instant access to synchronized lyrics for millions of songs available on Spotify. Designed for developers, music enthusiasts, and app creators, this API allows you to retrieve complete song lyrics in real time by simply passing a Spotify track ID. Whether you're building a karaoke app, a music education platform, or an interactive tool for displaying lyrics, this API delivers accurate, high-quality lyrics that enhance user engagement and the music experience.

Each API response contains clean, structured lyrics data that can be synchronized with playback for dynamic display or analysis. With support for both popular and niche genres, the API ensures broad song coverage, from chart-topping hits to indie releases. Plus, its optimized performance and scalability enable seamless integration into both large-scale platforms and lightweight mobile apps.

API Documentation

Endpoints


Provides synchronized song lyrics by simply entering the track ID.



                                                                            
GET https://zylalabs.com/api/7535/spotify+song+lyrics+api/22037/get+track+lyrics
                                                                            
                                                                        

Get Track Lyrics - Endpoint Features

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

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {"success":true,"cached":false,"data":{"lrc":"[00:34.30] Look\n[00:37.19] If you had one shot, or one opportunity\n[00:44.19] To seize everything you ever wanted\n[00:47.12] One moment\n[00:49.33] Would you capture it or just let it slip?\n[00:53.08] Yo\n[00:54.15] His palms are sweaty, knees weak, arms are heavy\n[00:56.84] There's vomit on his sweater already, mom's spaghetti\n[00:59.50] He's nervous, but on the surface he looks calm and ready to drop bombs\n[01:03.39] But he keeps on forgetting what he wrote down, the whole crowd goes so loud\n[01:08.12] He opens his mouth, but the words won't come out\n[01:11.08] He's choking how, everybody's joking now\n[01:13.75] The clock's run out, time's up, over, blaow!\n[01:16.62] Snap back to reality\n[01:18.11] Oh, there goes gravity\n[01:19.82] Oh, there goes Rabbit, he choked\n[01:21.79] He's so mad, but he won't give up that easy, no\n[01:24.17] He won't have it, he knows his whole back's to these ropes\n[01:27.35] It don't matter, he's dope\n[01:28.94] He knows that but he's broke\n[01:30.21] He's so stagnant, he knows when he goes back to his mobile home, that's when it's\n[01:33.85] Back to the lab again, yo\n[01:35.50] This whole rhapsody\n[01:36.78] He better go capture this moment and hope it don't pass him\n[01:39.26] You better lose yourself in the music, the moment\n[01:41.48] You own it, you better never let it go\n[01:44.24] You only get one shot, do not miss your chance to blow\n[01:47.28] This opportunity comes once in a lifetime\n[01:49.92] You better lose yourself in the music, the moment\n[01:52.85] You own it, you better never let it go\n[01:55.46] You only get one shot, do not miss your chance to blow\n[01:58.21] This opportunity comes once in a lifetime\n[02:01.05] You better\n[02:01.95] The soul's escaping, through this hole that is gaping\n[02:04.43] This world is mine for the taking\n[02:06.38] Make me king, as we move toward a new world order\n[02:09.84] A normal life is boring, but superstardom's close to post mortem\n[02:14.09] It only grows harder, homie grows hotter\n[02:16.83] He blows, it's all over\n[02:18.44] These hoes is all on him\n[02:19.98] Coast to coast shows, he's known as the globetrotter\n[02:22.65] Lonely roads, God only knows\n[02:24.43] He's knows is grown farther from home, he's no father\n[02:26.83] He goes home and barely knows his own daughter\n[02:29.38] But hold your nose 'cause here goes the cold water\n[02:32.25] His hoes don't want him no more, he's cold product\n[02:35.15] They moved on to the next schmoe who flows\n[02:37.87] He nose dove and sold nada\n[02:39.33] So the soap opera is told and unfolds\n[02:42.11] I suppose it's old partner but the beat goes on\n[02:44.81] Da da dum, da dum da da\n[02:46.44] You better lose yourself in the music, the moment\n[02:49.06] You own it, you better never let it go\n[02:51.72] You only get one shot, do not miss your chance to blow\n[02:54.62] This opportunity comes once in a lifetime\n[02:57.03] You better lose yourself in the music, the moment\n[03:00.11] You own it, you better never let it go\n[03:02.77] You only get one shot, do not miss your chance to blow\n[03:05.72] This opportunity comes once in a lifetime\n[03:08.13] You better\n[03:09.13] No more games, I'ma change what you call rage\n[03:11.38] Tear this motherfucking roof off like two dogs caged\n[03:14.15] I was playing in the beginning, the mood all changed\n[03:17.09] I've been chewed up and spit out and booed off stage\n[03:19.94] But I kept rhyming and stepped right into the next cypher\n[03:22.99] Best believe somebody's paying the pied piper\n[03:25.77] All the pain inside amplified by the fact\n[03:28.58] That I can't get by with my 9-to-5\n[03:31.78] And I can't provide the right type of life for my family\n[03:35.70] 'Cause man, these goddamn food stamps don't buy diapers\n[03:38.33] And it's no movie, there's no Mekhi Phifer, this is my life\n[03:42.37] And these times are so hard, and it's getting even harder\n[03:45.16] Trying to feed and water my seed, plus\n[03:47.26] Teeter totter caught up between being a father and a prima donna\n[03:50.91] Baby mama drama's screaming on and\n[03:53.14] Too much for me to wanna stay in one spot, another day of monotony\n[03:56.32] Has gotten me to the point, I'm like a snail I've got to formulate a plot or I end up in jail or shot\n[04:01.97] Success is my only motherfucking option, failure's not\n[04:05.31] Mom, I love you, but this trailer's got to go\n[04:07.95] I cannot grow old in Salem's lot\n[04:10.28] So here I go it's my shot\n[04:12.03] Feet, fail me not, this may be the only opportunity that I got\n[04:15.79] You better\n[04:16.45] Lose yourself in the music, the moment\n[04:18.76] You own it, you better never let it go\n[04:21.31] You only get one shot, do not miss your chance to blow\n[04:24.39] This opportunity comes once in a lifetime\n[04:27.07] You better lose yourself in the music, the moment\n[04:29.89] You own it, you better never let it go\n[04:32.31] You only get one shot, do not miss your chance to blow\n[04:35.50] This opportunity comes once in a lifetime\n[04:38.12] You better\n[04:40.09] You can do anything you set your mind to, man\n[04:41.12] ","source":"v2"}}
                                                                                                                                                                                                                    
                                                                                                    

Get Track Lyrics - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/7535/spotify+song+lyrics+api/22037/get+track+lyrics?trackId=7MJQ9Nfxzh8LPZ9e9u68Fq' --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 Song 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 Song Lyrics API FAQs

The Get Lyrics endpoint returns synchronized song lyrics for a specified Spotify track. The response includes the complete lyrics text, timing information for synchronization, and metadata about the song, such as the track ID and artist name.

Key fields in the response data include "lyrics" (the full lyrics text), "track_id" (the Spotify track ID), "artist" (the name of the artist), and "timestamp" (timing data for lyric synchronization).

The response data is structured in a JSON format, with clear key-value pairs. The lyrics are typically presented as a single string, while metadata fields are organized for easy access, allowing developers to parse and display the information efficiently.

The Get Lyrics endpoint provides real-time lyrics for songs, including full lyrics text, synchronization timing, and associated metadata like track ID and artist name, covering a wide range of genres and artists.

Data accuracy is maintained through partnerships with music rights organizations and continuous updates from verified sources. Regular quality checks ensure that the lyrics provided are correct and up-to-date.

Typical use cases include karaoke applications, music education platforms, and interactive lyric display tools. Developers can use the API to enhance user engagement by synchronizing lyrics with music playback.

Users can customize their requests by specifying the Spotify track ID in the endpoint parameter. This allows for targeted retrieval of lyrics for specific songs, enabling tailored experiences in applications.

If the API returns partial or empty results, developers should implement error handling to notify users. They can also provide fallback options, such as displaying a message or suggesting alternative tracks for which lyrics are available.

The Get Lyrics endpoint primarily requires the "track_id" parameter, which is the unique identifier for a Spotify track. This allows users to specify which song's lyrics they want to retrieve.

The API covers a vast range of songs across multiple genres, including pop, rock, hip-hop, and indie. It includes both mainstream hits and lesser-known tracks, ensuring broad accessibility for users worldwide.

The "track_id" parameter accepts any valid Spotify track ID, which is typically a string of alphanumeric characters. Users must ensure the ID corresponds to an existing track in the Spotify catalog for successful retrieval.

In the response, "lyrics" contains the full text of the song, "track_id" identifies the song, "artist" provides the artist's name, and "timestamp" indicates the timing for lyric synchronization, allowing for dynamic display during playback.

Users can parse the JSON response to extract lyrics and metadata for display in their applications. By using the "timestamp" data, developers can synchronize lyrics with music playback, enhancing user engagement.

Quality checks include regular audits and updates from verified sources, ensuring that the lyrics are accurate and reflect the latest versions. Partnerships with music rights organizations further enhance data reliability.

The response typically includes a structured JSON object with fields for lyrics, track ID, artist name, and timestamps. Users can expect consistent formatting, making it easy to integrate into various applications.

Users should implement error handling to catch invalid track IDs, providing feedback to users. This can include displaying an error message or suggesting alternative tracks, ensuring a smooth user experience.

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


You might also like