mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-05-23 19:17:41 +08:00
2 lines
5.4 KiB
JavaScript
2 lines
5.4 KiB
JavaScript
import{_ as t}from"./plugin-vue_export-helper-DlAUqK2U.js";import{o as e,c as a,e as d}from"./app-BWmVz1M3.js";const i={},r=d('<h1 id="接口列表" tabindex="-1"><a class="header-anchor" href="#接口列表"><span>接口列表</span></a></h1><h2 id="_1-获取播放链接-获取会员歌曲请自行充值会员后在配置文件内填写cookie" tabindex="-1"><a class="header-anchor" href="#_1-获取播放链接-获取会员歌曲请自行充值会员后在配置文件内填写cookie"><span>1.获取播放链接(获取会员歌曲请自行充值会员后在配置文件内填写cookie)</span></a></h2><table><thead><tr><th>平台</th><th>请求方法</th><th>路径</th></tr></thead><tbody><tr><td>Kuwo</td><td>GET</td><td>/url/kw/m/q</td></tr><tr><td>Tencent</td><td>GET</td><td>/url/tx/m/q</td></tr><tr><td>Kugou</td><td>GET</td><td>/url/kg/h/q</td></tr><tr><td>Netease</td><td>GET</td><td>/url/wy/m/q</td></tr><tr><td>Migu</td><td>GET</td><td>/url/mg/c/q</td></tr></tbody></table><p>参数详解:</p><p>m : 各大平台歌曲详情页最后面的一串字符(tx是字母+数字混合,其它都是纯数字)</p><p>h : 酷狗音乐歌曲的哈希(hash)值,最好通过搜索接口获得</p><p>q : 歌曲的音质,</p><ol><li>128k</li><li>320k</li><li>flac</li><li>flac24bit</li><li>master</li><li>dolby</li><li>sky</li></ol><h2 id="_2-搜索" tabindex="-1"><a class="header-anchor" href="#_2-搜索"><span>2.搜索</span></a></h2><table><thead><tr><th>平台</th><th>请求方法</th><th>路径</th></tr></thead><tbody><tr><td>Kugou</td><td>GET</td><td>/search/kg/song?query=k&page=p</td></tr></tbody></table><p>参数详解:</p><p>k : 你需要搜索的歌曲的名称</p><p>p : 页数</p><h2 id="_3-mv" tabindex="-1"><a class="header-anchor" href="#_3-mv"><span>3.MV</span></a></h2><table><thead><tr><th>平台</th><th>请求方法</th><th>路径</th></tr></thead><tbody><tr><td>Kugou</td><td>GET</td><td>/mv/kg/mvid</td></tr></tbody></table><p>参数详解:</p><p>mvid : 调用搜索接口获得</p><h2 id="_4-歌曲详情" tabindex="-1"><a class="header-anchor" href="#_4-歌曲详情"><span>4.歌曲详情</span></a></h2><table><thead><tr><th>平台</th><th>请求方法</th><th>路径</th></tr></thead><tbody><tr><td>Kugou</td><td>GET</td><td>/info/kg/h</td></tr><tr><td>Tencent</td><td>GET</td><td>/info/tx/m</td></tr></tbody></table><p>参数详解:</p><p>h : 经典hash值</p><p>m : 经典歌曲ID</p>',22),o=[r];function l(h,n){return e(),a("div",null,o)}const s=t(i,[["render",l],["__file","api.html.vue"]]),m=JSON.parse('{"path":"/guide/api/api.html","title":"API接口","lang":"zh-CN","frontmatter":{"head":[["meta",{"name":"keywords","content":"API接口"}],["meta",{"property":"og:url","content":"https://apidoc.zcmonety.xyz/guide/api/api.html"}],["meta",{"property":"og:site_name","content":"LX Music Api Server"}],["meta",{"property":"og:title","content":"API接口"}],["meta",{"property":"og:description","content":"接口列表 1.获取播放链接(获取会员歌曲请自行充值会员后在配置文件内填写cookie) 参数详解: m : 各大平台歌曲详情页最后面的一串字符(tx是字母+数字混合,其它都是纯数字) h : 酷狗音乐歌曲的哈希(hash)值,最好通过搜索接口获得 q : 歌曲的音质, 128k 320k flac flac24bit master dolby sky ..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2024-07-26T04:22:16.000Z"}],["meta",{"property":"article:author","content":"ikun0014"}],["meta",{"property":"article:published_time","content":"2024-04-10T00:00:00.000Z"}],["meta",{"property":"article:modified_time","content":"2024-07-26T04:22:16.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"API接口\\",\\"image\\":[\\"\\"],\\"datePublished\\":\\"2024-04-10T00:00:00.000Z\\",\\"dateModified\\":\\"2024-07-26T04:22:16.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"ikun0014\\"}]}"]],"title":"API接口","icon":"fas fa-file-alt","author":"ikun0014","date":"2024-04-10T00:00:00.000Z","index":false,"description":"接口列表 1.获取播放链接(获取会员歌曲请自行充值会员后在配置文件内填写cookie) 参数详解: m : 各大平台歌曲详情页最后面的一串字符(tx是字母+数字混合,其它都是纯数字) h : 酷狗音乐歌曲的哈希(hash)值,最好通过搜索接口获得 q : 歌曲的音质, 128k 320k flac flac24bit master dolby sky ..."},"headers":[{"level":2,"title":"1.获取播放链接(获取会员歌曲请自行充值会员后在配置文件内填写cookie)","slug":"_1-获取播放链接-获取会员歌曲请自行充值会员后在配置文件内填写cookie","link":"#_1-获取播放链接-获取会员歌曲请自行充值会员后在配置文件内填写cookie","children":[]},{"level":2,"title":"2.搜索","slug":"_2-搜索","link":"#_2-搜索","children":[]},{"level":2,"title":"3.MV","slug":"_3-mv","link":"#_3-mv","children":[]},{"level":2,"title":"4.歌曲详情","slug":"_4-歌曲详情","link":"#_4-歌曲详情","children":[]}],"git":{"createdTime":1712763316000,"updatedTime":1721967736000,"contributors":[{"name":"ikun","email":"ikun0014@qq.com","commits":4}]},"readingTime":{"minutes":0.86,"words":257},"filePathRelative":"guide/api/api.md","localizedDate":"2024年4月10日","autoDesc":true}');export{s as comp,m as data};
|