- 看见音乐公共开放平台概述
- 新手指引
- 认证接入指引
- 星接开发能力
- 公共开放数据
- 看见标准
星接站内歌曲歌词获取接口
云端 Mock
云端 Mock
GET
/lyric
星接站内歌曲的歌词获取接口,核心入参为给到客户的uid或完整歌名,暂不支持模糊搜索#
请求参数
Query 参数
content
string
必需
示例值:
I4M3H4F2zrspkckiwwSc006bjuL26nno8G9l8idydO1Seu4I76wcIdYrrojaZiNG
version
string
必需
示例值:
1
sign
string
必需
示例值:
97aad82f5478cc6d5b3e76984246038e
appKey
string
必需
timestamp
string
必需
示例值:
1695117468792
deviceId
string
可选
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://m1.apifoxmock.com/m1/3789893-0-a3c12929/lyric?content=I4M3H4F2zrspkckiwwSc006bjuL26nno8G9l8idydO1Seu4I76wcIdYrrojaZiNG&version=1&sign=97aad82f5478cc6d5b3e76984246038e&appKey=×tamp=1695117468792&deviceId'
返回响应
🟢200成功
application/json
Body
uid
string
必需
instrumental
boolean
必需
viewable
boolean
必需
has_lrc
boolean
必需
lrc_verified
boolean
必需
title
string
必需
duration
string
必需
artists
array [object {2}]
必需
name
string
可选
is_primary
boolean
可选
artist
object
必需
name
string
必需
last_update
string
必需
lyrics
string
必需
lrc_version
string
必需
lrc
array [object {4}]
必需
lrc_timestamp
string
必需
milliseconds
string
必需
duration
string
必需
line
string
必需
copyright
string
必需
writer
string
必需
示例
{
"uid": "xxxxxx",
"instrumental": false,
"viewable": true,
"has_lrc": true,
"lrc_verified": true,
"title": "BlitzkriegBop",
"duration": "2:12",
"artists": [
{
"name": "TheRamones",
"is_primary": true
}
],
"artist": {
"name": "TheRamones"
},
"last_update": "2018-07-1814:31:55",
"lyrics": "Heyho,let'sgo!heyho,let'sgo!Heyho,let'sgo!heyho,let'sgo!They'reforminginstraightlineThey'regoingthroughatightwindThekidsarelosingtheirmindsTheblitzkriegbop",
"lrc_version": "1.1",
"lrc": [
{
"lrc_timestamp": "[00:21.63]",
"milliseconds": "21630",
"duration": "5340",
"line": "Heyho,let'sgo!heyho,let'sgo!"
},
{
"lrc_timestamp": "[00:26.97]",
"milliseconds": "26970",
"duration": "5250",
"line": "Heyho,let'sgo!heyho,let'sgo!"
},
{
"line": ""
},
{
"lrc_timestamp": "[00:32.22]",
"milliseconds": "32220",
"duration": "1940",
"line": "They'reforminginstraightline"
},
{
"lrc_timestamp": "[00:34.16]",
"milliseconds": "34160",
"duration": "3390",
"line": "They'regoingthroughatightwind"
},
{
"lrc_timestamp": "[00:37.55]",
"milliseconds": "37550",
"duration": "2370",
"line": "Thekidsarelosingtheirminds"
},
{
"lrc_timestamp": "[00:39.92]",
"milliseconds": "39920",
"duration": "2830",
"line": "Theblitzkriegbop"
}
],
"copyright": "Lyrics©BMGRightsManagement",
"writer": "TommyRamone,DeeDeeRamone,JohnnyRamone,JoeyRamone"
}
修改于 2024-09-21 05:06:30