- 使用须知
- 首页中心
- 登录
- 个人中心
- 视频中心
- 通用
根据关键字进行搜索
开发中
GET
/search
请求参数
Query 参数
keywords
string
可选
示例值:
海阔天空
type
string
可选
示例值:
1
limit
string
可选
示例值:
30
offset
string
可选
示例值:
0
示例代码
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/search?keywords=海阔天空&type=1&limit =30 &offset =0'
返回响应
🟢200成功
application/json
Body
result
object
必需
songs
array [object {15}]
必需
hasMore
boolean
必需
songCount
integer
必需
code
integer
必需
示例
{ "result": { "songs": [ { "id": 1357374736, "name": "海阔天空", "artists": [ { "id": 11127, "name": "Beyond", "picUrl": null, "alias": [], "albumSize": 0, "picId": 0, "fansGroup": null, "img1v1Url": "https://p2.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg", "img1v1": 0, "trans": null } ], "album": { "id": 78372154, "name": "华纳超极品音色系列", "artist": { "id": 0, "name": "", "picUrl": null, "alias": [], "albumSize": 0, "picId": 0, "fansGroup": null, "img1v1Url": "https://p2.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg", "img1v1": 0, "trans": null }, "publishTime": 820425600000, "size": 14, "copyrightId": 7002, "status": 1, "picId": 109951163984007060, "mark": 0 }, "duration": 239506, "copyrightId": 7002, "status": 0, "alias": [], "rtype": 0, "ftype": 0, "mvid": 0, "fee": 8, "rUrl": null, "mark": 8192 }, { "id": 1357375695, "name": "海阔天空", "artists": [ { "id": 11127, "name": "Beyond", "picUrl": null, "alias": [], "albumSize": 0, "picId": 0, "fansGroup": null, "img1v1Url": "https://p2.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg", "img1v1": 0, "trans": null } ], "album": { "id": 78372827, "name": "华纳廿三周年纪念精选系列 - Beyond", "artist": { "id": 0, "name": "", "picUrl": null, "alias": [], "albumSize": 0, "picId": 0, "fansGroup": null, "img1v1Url": "https://p2.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg", "img1v1": 0, "trans": null }, "publishTime": 999273600000, "size": 15, "copyrightId": 7002, "status": 1, "picId": 109951163984013010, "mark": 0 }, "duration": 239506, "copyrightId": 7002, "status": 0, "alias": [], "rtype": 0, "ftype": 0, "mvid": 5501497, "fee": 1, "rUrl": null, "mark": 8192 }, { "id": 469391964, "name": "海阔天空", "artists": [ { "id": 11127, "name": "Beyond", "picUrl": null, "alias": [], "albumSize": 0, "picId": 0, "fansGroup": null, "img1v1Url": "https://p2.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg", "img1v1": 0, "trans": null } ], "album": { "id": 35336928, "name": "超越BEYOND精选", "artist": { "id": 0, "name": "", "picUrl": null, "alias": [], "albumSize": 0, "picId": 0, "fansGroup": null, "img1v1Url": "https://p2.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg", "img1v1": 0,