# 运营推荐接口
# 接口描述
适用于推荐位的数据获取。包括歌曲推荐、专辑推荐、艺人推荐、歌单推荐、电台推荐。
接口最多返回 100 条数据。
# 调用接口
请求接口:/RECOMMEND/recommendBySet.json
请求方法:POST
# 输入参数
参数名 | 参数类型 | 是否必传 | 说明 |
---|---|---|---|
type | numeric | 必传 | 0:推荐歌曲,1:推荐专辑,2:推荐艺人,3:推荐歌单,4:推荐电台 |
# 返回结果
当入参为 0 时,返回歌曲列表:
{
"state": true,
"errcode": "",
"errmsg": "",
"data": [
{
"recommendSort": 8,
"type": 0,
"baseId": 199,
"albumAssetCode": "P10000023243",
"artist": [
{
"artistCode": "A14373504",
"gender": "未知",
"name": "ペンギンラッシュ",
"artistType": 38,
"artistTypeName": "歌手",
"pic": "",
"region": ""
}
],
"releaseDate": "2019-05-08T00:00:00.000Z",
"pic": "https://img01.dmhmusic.com/0412/M00/38/39/ChAKEl9Yl_KAI0X1AABZ-Qq_gmM849.jpg",
"sort": 1,
"meanVolume": 0,
"title": "悪の花",
"maxVolume": 0,
"duration": 307,
"lyric": "",
"assetId": "T10000196522",
"_trackId": 12089108,
"genre": "流行",
"albumTitle": "悪の花",
"id": "T10000196522",
"lang": "日语",
"TSID": "T10000196522",
"allRate": ["64", "128", "320"],
"pushTime": "2020-09-27T00:00:00+08:00",
"downTime": "2037-01-01T00:00:00+08:00",
"bizList": ["sdk_ts", "sdk_pb", "sdk_device", "sdk_cpm"],
"rateFileInfo": {
"64": {
"size": 1896584,
"format": "aac"
},
"128": {
"size": 3791769,
"format": "mp3"
},
"320": {
"size": 9479358,
"format": "mp3"
}
},
"backing": []
}
]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
当入参为 1 时,返回专辑列表:
{
"state": true,
"errcode": "",
"errmsg": "",
"data": [
{
"recommendSort": 39,
"type": 1,
"baseId": 199,
"albumAssetCode": "P10001372903",
"releaseDate": "1995-10-01T00:00:00.000Z",
"artist": [
{
"artistCode": "A13341210",
"birthday": "1961-06-18",
"gender": "男",
"name": "赵传",
"artistType": 38,
"artistTypeName": "歌手",
"pic": "https://img01.dmhmusic.com/0206/M00/6F/6E/ChR47FtMH7CAMeGCAAFr2kWqiTM065.jpg",
"region": "内地"
}
],
"introduce": "",
"genre": "流行",
"pic": "https://img01.dmhmusic.com/0102/M00/A3/75/ChR45Fmo9QqACHQrAAShsw95llQ074.jpg",
"title": "当初应该爱你",
"lang": "英语",
"pushTime": "2020-06-24T15:00:41+08:00",
"downTime": "2037-01-01T00:00:00+08:00",
"available": true,
"availableErrMsg": "",
"trackList": [
{
"duration": 280,
"artist": [
{
"artistCode": "A13341210",
"birthday": "1961-06-18",
"gender": "男",
"name": "赵传",
"artistType": 38,
"artistTypeName": "歌手",
"pic": "https://img01.dmhmusic.com/0206/M00/6F/6E/ChR47FtMH7CAMeGCAAFr2kWqiTM065.jpg",
"region": "内地"
}
],
"assetId": "T10032434775",
"sort": 1,
"title": "始终有你"
}
]
}
]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
当入参为 2 时,返回艺人列表:
{
"state": true,
"errcode": "",
"errmsg": "",
"data": [
{
"recommendSort": 55,
"type": 2,
"baseId": 199,
"artistCode": "A14373448",
"birthPlace": "",
"gender": "男",
"introduce": "薛之谦,中国内地男歌手,籍贯上海市。",
"name": "薛之谦",
"weight": 0,
"pic": "https://img01.dmhmusic.com/0101/M00/F8/AE/ChR45V7XEJWAZJ8KAAL8wj6aS4w115.jpg",
"region": "",
"blood": "O型",
"height": 172,
"albumTotal": 1,
"trackTotal": 8
}
]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
当入参为 3 或 4 时,返回歌单/电台列表(结构一致):
{
"state": true,
"errcode": "",
"errmsg": "",
"data": [
{
"recommendSort": 1,
"type": 3,
"baseId": 217,
"tagList": ["汽车", "流行", "旅行", "国语流行"],
"pic": "https://img01.dmhmusic.com/0412/M00/10/7F/ChAKEl_S2siASd1LAAGOFm_g8jw423.jpg",
"id": 270406,
"cateList": [2420, 2376, 2427],
"title": "为爱穿行 | 卡罗拉全新绽放",
"menu": [],
"addDate": "2020-12-04T22:45:10.000Z",
"desc": "",
"resourceType": 1,
"_score": 1.000065,
"trackCount": 30
}
]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23