File size: 3,936 Bytes
0aee47a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
  "audio_info": {
    "audio_list": {
      "url": "https://api.bilibili.com/x/mv/list?type=1&genre=&lang=&keyword=2&pn=1&ps=30",
      "method": "GET",
      "verify": false,
      "params": {
        "type": "排序方式. 1 最新, 2 最火",
        "genre": "类型, 见 https://api.bilibili.com/x/mv/tag",
        "lang": "语言, 见 https://api.bilibili.com/x/mv/tag",
        "keyword": "关键字",
        "pn": "int: 页码",
        "ps":"const int: 每页项数"
      }
    },
    "homepage_recommend": {
      "url": "https://api.bilibili.com/x/web-show/res/locs?pf=0&ids=3715,3721,3727,3729,3737,3739,3745,3747,3749,3751,3756",
      "method": "GET",
      "comment": "获取首页推荐"
    },
    "info": {
      "url": "https://www.bilibili.com/audio/music-service-c/web/song/info",
      "method": "GET",
      "verify": false,
      "params": {
        "sid": "int: 音频 au 号"
      },
      "comment": "获取音频信息"
    },
    "tag": {
      "url": "https://www.bilibili.com/audio/music-service-c/web/tag/song",
      "method": "GET",
      "verify": false,
      "params": {
        "sid": "int: 音频 au 号"
      },
      "comment": "获取音频 tag"
    },
    "user": {
      "url": "https://www.bilibili.com/audio/music-service-c/web/stat/user",
      "method": "GET",
      "verify": false,
      "params": {
        "uid": "int: 用户 UID"
      },
      "comment": "获取用户数据(收听数,粉丝数等)"
    },
    "download_url": {
      "url": "https://www.bilibili.com/audio/music-service-c/web/url",
      "method": "GET",
      "verify": false,
      "params": {
        "sid": "int: 音频 au 号",
        "privilege": "const int: 2",
        "quality": "const int: 2"
      },
      "comment": "获取音频文件下载链接,目前音质貌似不可控"
    }
  },
  "audio_operate": {
    "coin": {
      "url": "https://www.bilibili.com/audio/music-service-c/web/coin/add",
      "method": "POST",
      "verify": true,
      "data": {
        "sid": "int: 歌单 ID",
        "multiply": "int: 硬币数量,最大 2"
      },
      "comment": "投币"
    }
  },
  "list_info": {
    "info": {
      "url": "https://www.bilibili.com/audio/music-service-c/web/menu/info",
      "method": "GET",
      "verify": false,
      "params": {
        "sid": "int: 歌单 ID"
      },
      "comment": "获取歌单信息"
    },
    "tag": {
      "url": "https://www.bilibili.com/audio/music-service-c/web/tag/menu",
      "method": "GET",
      "verify": false,
      "params": {
        "sid": "int: 歌单 ID"
      },
      "comment": "获取歌单 tag"
    },
    "song_list": {
      "url": "https://www.bilibili.com/audio/music-service-c/web/song/of-menu",
      "method": "GET",
      "verify": false,
      "params": {
        "sid": "int: 歌单 ID",
        "pn": "int: 页码",
        "ps": "const int: 100"
      },
      "comment": "获取歌单歌曲列表"
    },
    "hot": {
      "url": "https://www.bilibili.com/audio/music-service-c/web/menu/hit",
      "method": "GET",
      "verify": false,
      "params": {
        "pn": "int: 页码",
        "ps": "const int: 100"
      },
      "comment": "获取热门歌曲列表"
    }
  },
  "list_operate": {
    "set_favorite": {
      "url": "https://www.bilibili.com/audio/music-service-c/web/collect/menu",
      "method": "POST",
      "verify": true,
      "data": {
        "sid": "int: 歌单 ID"
      },
      "comment": "收藏歌单"
    },
    "del_favorite": {
      "url": "https://www.bilibili.com/audio/music-service-c/web/collect/menu",
      "method": "DELETE",
      "verify": true,
      "params": {
        "sid": "int: 歌单 ID"
      },
      "data": {
        "csrf": "csrf"
      },
      "comment": "取消收藏歌单"
    }
  }
}