欢迎使用 WOW API 平台!
WOWAPI 合成展示图
当前时间
运行正常

我的QQ音乐

接口地址
https://api.wq.cgdey.cn/API/qq_music_mine/qq_music_mine.php
请求方式GET
返回格式JSON
请求参数:
名称必填类型描述
name string 搜索关键词(歌曲名称或歌手名)。
n integer 歌曲列表索引,传入则直接获取歌曲播放URL及歌词等详情,不传则仅返回歌曲列表。
返回参数:
名称类型描述
keyword string 【列表模式】搜索关键词。
count integer 【列表模式】返回歌曲列表数量。
data array 【列表模式】歌曲列表数据,包含 index, name, singer, mid。
title string 【详情模式】歌曲名称。
singer string 【详情模式】歌手名称。
cover string 【详情模式】封面图片URL。
link string 【详情模式】歌曲QQ音乐详情链接。
music_url string 【详情模式】音乐播放/流媒体URL。
quality string 【详情模式】音质说明。
lyric string 【详情模式】歌词内容(LRC格式)。
状态码说明:
HTTP 状态业务状态说明
200success请求成功,已返回我的QQ音乐数据。
503maintain接口临时维护中。
系统级错误:
状态码错误标识说明
400bad_request请求格式错误或参数不符合要求。
429too_many_requests请求过于频繁,请稍后重试。
500server_error服务器内部异常,未正常返回内容。
GET 请求:
<?php
echo file_get_contents('https://api.wq.cgdey.cn/API/qq_music_mine/qq_music_mine.php');
POST 请求:
<?php
$ch = curl_init('https://api.wq.cgdey.cn/API/qq_music_mine/qq_music_mine.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(['key' => 'value']));
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
GET 请求:
import requests

response = requests.get('https://api.wq.cgdey.cn/API/qq_music_mine/qq_music_mine.php')
print(response.text)
POST 请求:
import requests

response = requests.post(
    'https://api.wq.cgdey.cn/API/qq_music_mine/qq_music_mine.php',
    json={'key': 'value'}
)
print(response.text)
GET 请求:
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://api.wq.cgdey.cn/API/qq_music_mine/qq_music_mine.php"))
    .GET()
    .build();

HttpResponse<String> response = HttpClient.newHttpClient()
    .send(request, HttpResponse.BodyHandlers.ofString());

System.out.println(response.body());
POST 请求:
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://api.wq.cgdey.cn/API/qq_music_mine/qq_music_mine.php"))
    .header("Content-Type", "application/json")
    .POST(HttpRequest.BodyPublishers.ofString("{\"key\":\"value\"}"))
    .build();

HttpResponse<String> response = HttpClient.newHttpClient()
    .send(request, HttpResponse.BodyHandlers.ofString());

System.out.println(response.body());
复制成功