Spotify歌词数据 API

API ID 7563

通过同步歌词获取来转换听歌应用程序;从Spotify曲目中获取开始时间、单词串、替代预览、背景颜色和RTL指示器

100% 正常运行时间 379 ms 平均响应

API 文档

端点

请求
提供通过简单输入曲目ID来同步歌词
Endpoint ID: 22040
GET https://zylalabs.com/api/7563/spotify+lyric+data+api/22040/get+track+lyrics
输入参数

获取曲目歌词 — 端点功能

对象 描述
trackId 必需 Enter a track id

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


输入参数

trackId
API 示例响应
JSON
{"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"}}
获取曲目歌词 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/7563/spotify+lyric+data+api/22040/get+track+lyrics?trackId=7MJQ9Nfxzh8LPZ9e9u68Fq' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API 访问密钥和身份验证

注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 Spotify歌词数据 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。

标头
标头 描述
授权 必需 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

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

(年度计费可节省 2 个月 🎉)

🚀 企业版套餐

起价
$ 10,000/年


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

概览

Spotify歌词数据API提供对Spotify上数百万首歌曲的同步歌词的即时访问。该API旨在为开发者、音乐爱好者和应用程序创作者服务,只需传递一个Spotify曲目ID即可实时获取完整的歌曲歌词。无论您是在构建一个卡拉OK应用程序、音乐教育平台,还是一个用于展示歌词的互动工具,该API都提供准确、高质量的歌词,增强用户参与感和音乐体验

每个API响应都包含干净、结构化的歌词数据,可以与播放同步,以便动态展示或分析。该API支持流行和小众音乐类型,确保了广泛的歌曲覆盖,从畅销热门歌曲到独立发行。此外,它的优化性能和可扩展性使其能够无缝集成到大型平台和轻量级移动应用程序中

Spotify歌词数据 API FAQs

获取歌词端点返回指定Spotify曲目的同步歌词。响应包含完整的歌词文本、同步的时间信息以及有关歌曲的元数据,例如曲目ID和艺术家名称

响应数据中的关键字段包括“歌词”(完整歌词文本)、“track_id”(Spotify 曲目 ID)、“艺术家”(艺术家的名字)和“时间戳”(用于歌词同步的时间数据)

响应数据以JSON格式构建,具有清晰的键值对。歌词通常作为一个字符串呈现,而元数据字段则组织得便于访问,使开发人员能够高效解析和显示信息

获取歌词端点提供歌曲的实时歌词,包括完整的歌词文本,同步时间和相关的元数据,如曲目ID和艺术家名称,涵盖广泛的音乐风格和艺术家

数据准确性通过与音乐版权组织的合作以及来自验证来源的持续更新得以维持 定期的质量检查确保提供的歌词是正确和最新的

典型的使用案例包括卡拉OK应用程序音乐教育平台和互动歌词展示工具开发者可以使用API通过将歌词与音乐播放同步来增强用户参与度

用户可以通过在端点参数中指定Spotify曲目ID来定制他们的请求。这允许针对特定歌曲检索歌词,从而在应用程序中实现个性化体验

如果API返回部分或空结果,开发者应实现错误处理以通知用户。他们还可以提供后备选项,比如显示消息或建议有歌词的其他曲目

获取歌词端点主要需要 "track_id" 参数,这是 Spotify 曲目的唯一标识符。这允许用户指定他们想要检索哪首歌的歌词

该API涵盖了多种音乐类型的广泛歌曲,包括流行音乐、摇滚、嘻哈和独立音乐。它包括主流热门歌曲和鲜为人知的曲目,确保全球用户的广泛可访问性

"track_id"参数接受任何有效的Spotify曲目ID,通常是一个字母数字字符的字符串。用户必须确保该ID对应于Spotify目录中已存在的曲目以便成功检索

在响应中 "lyrics" 包含歌曲的完整歌词 "track_id" 标识歌曲 "artist" 提供艺术家的名字 "timestamp" 表示歌词同步的时间 允许在播放时动态显示

用户可以解析 JSON 响应以提取歌词和元数据以在他们的应用程序中显示 通过使用“时间戳”数据 开发人员可以将歌词与音乐播放同步 增强用户参与感

质量检查包括来自经过验证来源的定期审核和更新,确保歌词准确且反映最新版本。与音乐版权组织的合作进一步增强数据的可靠性

响应通常包括一个结构化的JSON对象,其中包含歌词、曲目ID、艺术家名称和时间戳的字段。用户可以期待一致的格式,使其易于集成到各种应用程序中

用户应实现错误处理以捕获无效的轨道 ID,向用户提供反馈。这可以包括显示错误信息或建议替代轨道,以确保顺畅的用户体验

一般常见问题

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]