从Spotify提取歌词 API API ID: 10996

无缝地从Spotify中检索歌曲歌词以增强您的音乐应用程序
通过 MCP 从您的 AI 代理使用此 API
支持 OpenClaw、Claude Code/Desktop、Cursor、Windsurf、Cline 以及任何兼容 MCP 的 AI 客户端。
文档和设置
通过封装此 MCP 创建技能: https://mcp.zylalabs.com/mcp?apikey=YOUR_ZYLA_API_KEY

从Spotify API检索歌词是一个旨在提供对Spotify上可用的歌曲歌词以及艺术家、专辑、同步时间和相关元数据等补充信息的简便高效访问的工具。它的主要目标是使开发者和内容创作者能够丰富他们的音乐应用程序,通过与Spotify生态系统的直接集成,改善用户体验。

此API允许您根据曲目的确切播放点获取完整歌词。通过这种方式,它可以用于构建动态歌词显示的播放器、互动卡拉OK或歌词内容的语义分析。得益于其基于REST的结构,请求简单快速,确保与多种语言和框架的兼容性。

此外,该API可用于个人和商业项目,同时始终尊重Spotify的使用和知识产权政策。其模块化设计和清晰的文档使得即使是对流媒体服务经验较少的开发者也能轻松实现。

简而言之,从Spotify API检索歌词代表了以动态、准确和吸引人的方式将歌曲歌词和音乐数据融入项目的完整解决方案,增强用户、音乐和技术之间的互动。

API 文档

端点


提供通过简单输入曲目ID 来同步歌词


                                                                            
GET https://pr180-testing.zylalabs.com/api/10996/retrieve+lyrics+from+spotify+api/20732/get+lyrics
                                                                            
                                                                        

获取歌词 - 端点功能

对象 描述
trackId [必需] Enter a track id

剩余免费测试请求:3 / 3。


输入参数

trackId

API 示例响应

{"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"}}

获取歌词 - 代码片段


curl --location --request GET 'https://zylalabs.com/api/10996/retrieve+lyrics+from+spotify+api/20732/get+lyrics?trackId=1v7L65Lzy0j0vdpRjJewt1' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API 访问密钥和身份验证

注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 从Spotify提取歌词 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
标头
标头 描述
授权 [必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

简单透明的定价

无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。

🚀 企业版

起价
$ 10,000/年


  • 自定义数量
  • 自定义速率限制
  • 专业客户支持
  • 实时 API 监控

客户喜爱的功能

  • ✔︎ 仅支付成功请求
  • ✔︎ 7 天免费试用
  • ✔︎ 多语言支持
  • ✔︎ 一个 API 密钥,所有 API。
  • ✔︎ 直观的仪表板
  • ✔︎ 全面的错误处理
  • ✔︎ 开发者友好的文档
  • ✔︎ Postman 集成
  • ✔︎ 安全的 HTTPS 连接
  • ✔︎ 可靠的正常运行时间

从Spotify提取歌词 API FAQs

获取歌词接口返回同步的歌曲歌词以及元数据,如专辑名称、艺术家名称、曲目时长和歌词文件的URL。这使得开发者能够在歌曲播放时实时显示歌词

响应中的关键字段包括“albumName”“artistName”“duration”“lrc_url”“spotify_track_id”和“title”这些字段提供了显示歌词和相关歌曲详细信息的基本信息

响应数据采用JSON格式结构化,每个字段都有键值对。这使得在应用程序中解析和利用变得简单,允许开发者直接访问特定信息,如歌曲标题或艺术家名称

获取歌词接口提供有关歌曲歌词、艺术家和专辑详情、曲目时长以及歌词文件链接的信息。这些综合数据支持各种应用,从歌词显示到卡拉OK功能

用户可以通过在GET请求中指定曲目ID来自定义他们的请求。这使他们能够检索Spotify上任何特定歌曲的歌词,从而使输出符合他们应用程序的需求

典型的用例包括构建具有动态歌词显示的音乐播放器 创建互动卡拉OK应用程序 以及对歌词进行语义分析以获取与音乐相关的洞察或内容创作

数据准确性通过与Spotify数据库的直接集成得以维护,确保歌词和元数据是最新且可靠的 定期更新和检查有助于保持所提供信息的质量

用户可以通过将返回的数据集成到他们的应用程序中,有效利用这些数据来显示同步歌词 增强用户参与度 并提供有关歌曲的额外背景信息,例如艺术家和专辑信息

一般常见问题

Zyla API Hub 就像一个大型 API 商店,您可以在一个地方找到数千个 API。我们还为所有 API 提供专门支持和实时监控。注册后,您可以选择要使用的 API。请记住,每个 API 都需要自己的订阅。但如果您订阅多个 API,您将为所有这些 API 使用相同的密钥,使事情变得更简单。
价格以 USD(美元)、EUR(欧元)、CAD(加元)、AUD(澳元)和 GBP(英镑)列出。我们接受所有主要的借记卡和信用卡。我们的支付系统使用最新的安全技术,由 Stripe 提供支持,Stripe 是世界上最可靠的支付公司之一。如果您在使用卡片付款时遇到任何问题,请通过 [email protected]

此外,如果您已经以这些货币中的任何一种(USD、EUR、CAD、AUD、GBP)拥有有效订阅,该货币将保留用于后续订阅。只要您没有任何有效订阅,您可以随时更改货币。
定价页面上显示的本地货币基于您 IP 地址的国家/地区,仅供参考。实际价格以 USD(美元)为单位。当您付款时,即使您在我们的网站上看到以本地货币显示的等值金额,您的卡片对账单上也会以美元显示费用。这意味着您不能直接使用本地货币付款。
有时,银行可能会因其欺诈保护设置而拒绝收费。我们建议您首先联系您的银行,检查他们是否阻止了我们的收费。此外,您可以访问账单门户并更改关联的卡片以进行付款。如果这些方法不起作用并且您需要进一步帮助,请通过 [email protected]
价格由月度或年度订阅决定,具体取决于所选计划。
API 调用根据成功请求从您的计划中扣除。每个计划都包含您每月可以进行的特定数量的调用。只有成功的调用(由状态 200 响应指示)才会计入您的总数。这确保失败或不完整的请求不会影响您的月度配额。
Zyla API Hub 采用月度订阅系统。您的计费周期将从您购买付费计划的那一天开始,并在下个月的同一日期续订。因此,如果您想避免未来的费用,请提前取消订阅。
要升级您当前的订阅计划,只需转到 API 的定价页面并选择您要升级到的计划。升级将立即生效,让您立即享受新计划的功能。请注意,您之前计划中的任何剩余调用都不会转移到新计划,因此在升级时请注意这一点。您将被收取新计划的全部金额。
要检查您本月剩余多少 API 调用,请参考响应标头中的 "X-Zyla-API-Calls-Monthly-Remaining" 字段。例如,如果您的计划允许每月 1,000 个请求,而您已使用 100 个,则响应标头中的此字段将显示 900 个剩余调用。
要查看您的计划允许的最大 API 请求数,请检查 "X-Zyla-RateLimit-Limit" 响应标头。例如,如果您的计划包括每月 1,000 个请求,此标头将显示 1,000。
"X-Zyla-RateLimit-Reset" 标头显示您的速率限制重置之前的秒数。这告诉您何时您的请求计数将重新开始。例如,如果它显示 3,600,则意味着还有 3,600 秒直到限制重置。
是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。
为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。
7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。
当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。
付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。
您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]

相关 API