Spotify歌词数据提取API是一个旨在提供对Spotify上可用歌曲歌词及相关信息的简单高效访问的工具,这些信息包括艺术家、专辑、同步时间和相关元数据。它的主要目标是为开发者和内容创作者提供能力,以实时歌词丰富他们的音乐应用,通过与Spotify生态系统的直接集成改善用户体验。
该API允许您根据曲目的精确播放点获取完整歌词。通过这种方式,它可用于构建具有动态歌词显示的播放器、互动卡拉OK或歌词内容的语义分析。得益于其基于REST的结构,请求简单快捷,确保与多种语言和框架的兼容性。
此外,API可以用于个人和商业项目,同时始终尊重Spotify的使用和知识产权政策。其模块化设计和清晰文档使得即使是对流媒体服务经验较少的开发者也能轻松实现。
总之,Spotify歌词数据提取API代表了一种将歌曲歌词和音乐数据动态、准确和吸引人地整合的完整解决方案,增强用户、音乐和技术之间的互动。
获取歌词 - 端点功能
| 对象 | 描述 |
|---|---|
trackId |
[必需] Enter a track id |
{"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/10997/spotify+lyrics+data+extractor+api/20733/get+lyrics?trackId=1v7L65Lzy0j0vdpRjJewt1' --header 'Authorization: Bearer YOUR_API_KEY'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
获取歌词端点返回同步的歌曲歌词以及元数据,例如专辑名称、艺术家名称、曲目时长和歌词文件的 URL。这使开发者能够在歌曲播放时实时显示歌词
响应中的关键字段包括“albumName”“artistName”“duration”“lrc_url”“spotify_track_id”和“title” 这些字段提供了显示歌词和相关歌曲细节所需的基本信息
响应数据采用JSON格式结构,每个字段都有键值对。这使得在应用程序中解析和利用变得简单,允许开发人员直接访问特定信息,如歌曲标题或艺术家姓名
获取歌词接口提供歌曲歌词、艺术家和专辑详情、曲目时长以及歌词文件的链接。这些综合数据支持各种应用,从歌词显示到卡拉OK功能
用户可以通过在GET请求中指定曲目ID来自定义他们的请求。这使他们能够检索Spotify上任何特定歌曲的歌词,按照应用程序的需求定制输出
典型的使用案例包括构建具有动态歌词显示的音乐播放器 创建交互式卡拉OK应用程序 以及对歌词进行语义分析以获取与音乐相关的见解或内容创作
数据准确性通过与Spotify数据库的直接集成得以保持 确保歌词和元数据是最新和可靠的 定期更新和检查帮助保持所提供信息的质量
用户可以通过将返回的数据集成到他们的应用程序中有效利用这些数据,以显示同步歌词、增强用户参与度,并提供有关歌曲的额外上下文,例如艺术家和专辑信息
服务级别:
100%
响应时间:
1,063ms
服务级别:
100%
响应时间:
379ms
服务级别:
100%
响应时间:
2,438ms
服务级别:
100%
响应时间:
979ms
服务级别:
100%
响应时间:
361ms
服务级别:
100%
响应时间:
308ms
服务级别:
100%
响应时间:
1,273ms
服务级别:
100%
响应时间:
827ms
服务级别:
82%
响应时间:
1,580ms
服务级别:
100%
响应时间:
2,906ms
服务级别:
100%
响应时间:
825ms
服务级别:
100%
响应时间:
670ms
服务级别:
100%
响应时间:
806ms
服务级别:
100%
响应时间:
1,267ms
服务级别:
100%
响应时间:
1,939ms
服务级别:
100%
响应时间:
0ms
服务级别:
100%
响应时间:
601ms
服务级别:
100%
响应时间:
482ms
服务级别:
100%
响应时间:
605ms
服务级别:
100%
响应时间:
334ms