import{_ as e}from"./plugin-vue_export-helper-DlAUqK2U.js";import{c as a,e as d,o as i}from"./app-D0kgoHmn.js";const o={};function r(l,t){return i(),a("div",null,t[0]||(t[0]=[d('

接口列表

平台请求方法请求路径
Kuwo(kw)GET/url?source=kw&songId=m&quality=q
Tencent(tx)GET/url?source=tx&songId=m&quality=q
Kugou(kg)GET/url?source=kg&songId=h&quality=q
Netease(wy)GET/url?source=wy&songId=m&quality=q
Migu(mg)GET/url?source=mg&songId=m&quality=q

参数详解:

m : 各大平台歌曲详情页最后面的一串字符(tx 是字母+数字混合,其它都是纯数字)

h : 酷狗音乐歌曲的哈希(hash)值,最好通过搜索接口获得

q : 歌曲的音质,

  1. 128k
  2. 320k
  3. flac
  4. hires
  5. atmos
  6. atmos_plus
  7. master

2.搜索

平台请求方法路径
KugouGET/search/kg/song?query=k&page=p

参数详解:

k : 你需要搜索的歌曲的名称

p : 页数

3.MV

平台请求方法路径
KugouGET/mv/kg/mvid

参数详解:

mvid : 调用搜索接口获得

4.歌曲详情

平台请求方法路径
KugouGET/info/kg/h
TencentGET/info/tx/m

参数详解:

h : 经典 hash 值

m : 经典歌曲 ID

',22)]))}const h=e(o,[["render",r],["__file","api.html.vue"]]),s=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 hires atmos atmos_plus ma..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2025-05-31T07:40:28.000Z"}],["meta",{"property":"article:author","content":"ikun0014"}],["meta",{"property":"article:published_time","content":"2025-05-31T00:00:00.000Z"}],["meta",{"property":"article:modified_time","content":"2025-05-31T07:40:28.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"API接口\\",\\"image\\":[\\"\\"],\\"datePublished\\":\\"2025-05-31T00:00:00.000Z\\",\\"dateModified\\":\\"2025-05-31T07:40:28.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"ikun0014\\"}]}"]],"title":"API接口","icon":"fas fa-file-alt","author":"ikun0014","date":"2025-05-31T00:00:00.000Z","index":false,"description":"接口列表 1.获取播放链接(获取会员歌曲请自行充值会员后在配置文件内填写 cookie) 参数详解: m : 各大平台歌曲详情页最后面的一串字符(tx 是字母+数字混合,其它都是纯数字) h : 酷狗音乐歌曲的哈希(hash)值,最好通过搜索接口获得 q : 歌曲的音质, 128k 320k flac hires atmos atmos_plus ma..."},"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":1748677228000,"updatedTime":1748677228000,"contributors":[{"name":"ikun0014","email":"ikun0014@qq.com","commits":1}]},"readingTime":{"minutes":0.98,"words":294},"filePathRelative":"guide/api/api.md","localizedDate":"2025年5月31日","autoDesc":true}');export{h as comp,s as data};