- 使用须知
- 首页中心
- 登录
- 个人中心
- 视频中心
- 通用
获取歌曲url
开发中
GET
/song/url
请求参数
Query 参数
id
string
可选
示例值:
33894312
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:3000/song/url?id=33894312'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"data": [
{
"id": 33894312,
"url": "http://m8.music.126.net/20230702153649/e182a634103e551903b0200404c891ee/ymusic/0fd6/4f65/43ed/a8772889f38dfcb91c04da915b301617.mp3",
"br": 320000,
"size": 10691439,
"md5": "a8772889f38dfcb91c04da915b301617",
"code": 200,
"expi": 1200,
"type": "mp3",
"gain": -6.3072,
"peak": 1,
"fee": 0,
"uf": null,
"payed": 0,
"flag": 1081345,
"canExtend": false,
"freeTrialInfo": null,
"level": "exhigh",
"encodeType": "mp3",
"freeTrialPrivilege": {
"resConsumable": false,
"userConsumable": false,
"listenType": null,
"cannotListenReason": null
},
"freeTimeTrialPrivilege": {
"resConsumable": false,
"userConsumable": false,
"type": 0,
"remainTime": 0
},
"urlSource": 0,
"rightSource": 0,
"podcastCtrp": null,
"effectTypes": null,
"time": 267232
}
],
"code": 200
}