API 文档
-
接口地址:
https://apicx.asia/api/qqmusic_extractor
-
返回格式:
JOSN
-
请求方式:
GET
-
请求示例:
https://apicx.asia/api/qqmusic_extractor?id=7512819693&limit=30
请求参数说明:
返回参数说明:
| 名称 |
类型 |
说明 |
| code |
integer |
返回的状态码 |
| data |
object |
返回的数据/数据对象 |
| msg |
string |
返回的消息 |
| time |
string |
请求时间 |
| data.playlist_info.playlist_id | string | playlist_id |
| data.playlist_info.title | string | title |
| data.playlist_info.description | string | description |
| data.playlist_info.total_songs | number | total_songs |
| data.playlist_info.play_count | number | play_count |
| data.playlist_info.creator | string | creator |
| data.playlist_info.cover_url | string | cover_url |
| data.songs[].index | number | index |
| data.songs[].song_id | number | song_id |
| data.songs[].song_mid | string | song_mid |
| data.songs[].song_name | string | song_name |
| data.songs[].singer | string | singer |
| data.songs[].album_name | string | album_name |
| data.songs[].duration | string | duration |
| data.songs[].cover_url | string | cover_url |
| data.count | number | count |
| data.message | string | message |
{
"code": 200,
"data": {
"playlist_info": {
"playlist_id": "7512819693",
"title": "催泪警告!抖音最火伤感歌曲",
"description": "精选抖音最火伤感歌曲,哪一首能打动你呢? 图源Pinterest 侵删 持续更新喔 有任何建议欢迎评论区指出♪",
"total_songs": 309,
"play_count": 505158891,
"creator": "",
"cover_url": "https://qpic.y.qq.com/music_cover/hKFribMhwH4ClwNWJxicuCxuQIpoIRtGZuTvQ2VLkSAPIUpGC9kR34AA/600"
},
"songs": [
{
"index": 1,
"song_id": 592439788,
"song_mid": "000hKfle04aRFw",
"song_name": "善后",
"singer": "马师傅",
"album_name": "善后",
"duration": "04:14",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000003X8gxs0lyMef.jpg"
},
{
"index": 2,
"song_id": 587113869,
"song_mid": "000ZT8Tf42yZ9I",
"song_name": "黑白的海",
"singer": "小心空隙Mind The Gaps、辻原一郎",
"album_name": "白鸟投林!",
"duration": "04:44",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000003oh7lB2GpwNP.jpg"
},
{
"index": 3,
"song_id": 625382767,
"song_mid": "0011RWVz2CV3Ac",
"song_name": "有时候想变成一只猫",
"singer": "张靓颖",
"album_name": "音乐缘计划2 第8期",
"duration": "03:41",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000003GPOqj1bHVA4.jpg"
},
{
"index": 4,
"song_id": 620113270,
"song_mid": "002eeVBV0WHwZI",
"song_name": "直行不转弯 (说不通的谎言)",
"singer": "头不疼",
"album_name": "直行不转弯",
"duration": "03:30",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000001yJJHl0Sq5Uk.jpg"
},
{
"index": 5,
"song_id": 617828847,
"song_mid": "004UVWbs3b758r",
"song_name": "You Still",
"singer": "Lunar Rey",
"album_name": "You Still",
"duration": "02:14",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000003S3jdv2YLBUr.jpg"
},
{
"index": 6,
"song_id": 618308267,
"song_mid": "002KECl511bypV",
"song_name": "烟花叹",
"singer": "鬼鬼",
"album_name": "烟花叹",
"duration": "03:07",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M0000037S7Px3JSrYx.jpg"
},
{
"index": 7,
"song_id": 619304894,
"song_mid": "000Al4263lc6Zh",
"song_name": "间距",
"singer": "进一",
"album_name": "间距(摇滚版)",
"duration": "04:19",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000000Ey3NS2zOqxd.jpg"
},
{
"index": 8,
"song_id": 496054946,
"song_mid": "001auUcH4WQs2V",
"song_name": "恋人",
"singer": "李荣浩",
"album_name": "黑马",
"duration": "04:35",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000004HaG7p4ZkhXA.jpg"
},
{
"index": 9,
"song_id": 560063927,
"song_mid": "001P6YOB0eXLlj",
"song_name": "第57次取消发送",
"singer": "菲菲公主(陆绮菲)",
"album_name": "第57次取消发送",
"duration": "03:00",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000000KrDC019mc82.jpg"
},
{
"index": 10,
"song_id": 105905415,
"song_mid": "004fneUm24gD2c",
"song_name": "爱错",
"singer": "王力宏",
"album_name": "心中的日月",
"duration": "03:58",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000002ElVxf43rOue.jpg"
},
{
"index": 11,
"song_id": 5020468,
"song_mid": "000Me4AK0rsrHo",
"song_name": "坠落",
"singer": "蔡健雅",
"album_name": "天使与魔鬼的对话",
"duration": "04:10",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000001mQj2U1r3FDQ.jpg"
},
{
"index": 12,
"song_id": 102367085,
"song_mid": "000edAg12jLBrN",
"song_name": "不将就",
"singer": "李荣浩",
"album_name": "有理想",
"duration": "05:12",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000001fi1zG0EjU2u.jpg"
},
{
"index": 13,
"song_id": 253383943,
"song_mid": "001GOlCd2HImcY",
"song_name": "离开我的依赖",
"singer": "王艳薇",
"album_name": "离开我的依赖",
"duration": "03:53",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000004CSyAN1oc97b.jpg"
},
{
"index": 14,
"song_id": 438910555,
"song_mid": "001NgljR0RUhy1",
"song_name": "唯一",
"singer": "G.E.M. 邓紫棋",
"album_name": "T.I.M.E.",
"duration": "04:13",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000002d6m7k0xCbSv.jpg"
},
{
"index": 15,
"song_id": 104775877,
"song_mid": "003ouHMP12glVD",
"song_name": "其实",
"singer": "薛之谦",
"album_name": "意外",
"duration": "04:02",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000000QgFcm0v8WaF.jpg"
},
{
"index": 16,
"song_id": 232308458,
"song_mid": "002jebZ81XtRhS",
"song_name": "孤身",
"singer": "徐秉龙",
"album_name": "孤身",
"duration": "03:31",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000002IEan70tkXOC.jpg"
},
{
"index": 17,
"song_id": 542574330,
"song_mid": "0029vb0r2T9PE4",
"song_name": "跳楼机",
"singer": "LBI利比(时柏尘)",
"album_name": "跳楼机",
"duration": "03:21",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000000SDUwR2buEUa.jpg"
},
{
"index": 18,
"song_id": 231504820,
"song_mid": "0004jeEe4XTtjU",
"song_name": "寂寞寂寞不好",
"singer": "曹格",
"album_name": "寂寞寂寞不好",
"duration": "04:02",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000003q6Wa245VTGh.jpg"
},
{
"index": 19,
"song_id": 422061155,
"song_mid": "0040SY053uSb7r",
"song_name": "瞬",
"singer": "郑润泽",
"album_name": "瞬",
"duration": "04:44",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000001qvyI10urb5z.jpg"
},
{
"index": 20,
"song_id": 565650348,
"song_mid": "003r2LKK47LlEJ",
"song_name": "四点的海棠花未眠",
"singer": "渡",
"album_name": "四点的海棠花未眠",
"duration": "03:20",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000004WoEPd365Omb.jpg"
},
{
"index": 21,
"song_id": 108787382,
"song_mid": "002FsceO4WxKyF",
"song_name": "下完这场雨",
"singer": "后弦",
"album_name": "下完这场雨",
"duration": "04:31",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000004ZXlA63dZBCa.jpg"
},
{
"index": 22,
"song_id": 200150419,
"song_mid": "0037sebg23jTFg",
"song_name": "舍得",
"singer": "王唯旖",
"album_name": "舍得",
"duration": "04:22",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M0000015NN8K2RJVPv.jpg"
},
{
"index": 23,
"song_id": 1021078,
"song_mid": "00184ejM4XouuN",
"song_name": "孤独患者",
"singer": "陈奕迅",
"album_name": "?",
"duration": "04:33",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000003YQ8lP3NBXKl.jpg"
},
{
"index": 24,
"song_id": 5646,
"song_mid": "003PSWcB4EDl6P",
"song_name": "开始懂了",
"singer": "孙燕姿",
"album_name": "我要的幸福",
"duration": "04:31",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000004KRIQr1oCp2A.jpg"
},
{
"index": 25,
"song_id": 471040573,
"song_mid": "004XJHyS3QhnMs",
"song_name": "如果爱忘了",
"singer": "汪苏泷、单依纯",
"album_name": "声生不息·家年华 第12期",
"duration": "04:05",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000001rd1S93gcWUF.jpg"
},
{
"index": 26,
"song_id": 470336,
"song_mid": "003upMMS1zgYzc",
"song_name": "我知道",
"singer": "BY2",
"album_name": "Twins",
"duration": "04:10",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000001P410a0Iq4K0.jpg"
},
{
"index": 27,
"song_id": 102204539,
"song_mid": "002MFDAV3rPFlo",
"song_name": "青花",
"singer": "周传雄",
"album_name": "蓝色土耳其",
"duration": "04:57",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000001Vj7aX0PixwV.jpg"
},
{
"index": 28,
"song_id": 218661419,
"song_mid": "001tZG6r2hDJDI",
"song_name": "只为你着迷",
"singer": "李秉成",
"album_name": "只为你着迷",
"duration": "04:00",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000004ElclD13xtcl.jpg"
},
{
"index": 29,
"song_id": 278198183,
"song_mid": "001OKasF2hhpiE",
"song_name": "爱你(把我们衣服纽扣互扣)",
"singer": "徐俊雅",
"album_name": "我的秘密-翻唱",
"duration": "03:26",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000000dZOPZ1sD86T.jpg"
},
{
"index": 30,
"song_id": 106709555,
"song_mid": "004N7kVg3PpPVQ",
"song_name": "七月七日晴",
"singer": "许慧欣",
"album_name": "美丽的爱情",
"duration": "04:04",
"cover_url": "https://y.qq.com/music/photo_new/T002R800x800M000003rj5xK4VfpxG.jpg"
}
],
"count": 30,
"message": "成功获取前 30 首歌曲(歌单总数:309)"
},
"timestamp": "2025-12-20 00:57:49",
"cached_time": "2025-12-20 00:57:49"
}
错误码格式说明:
| 名称 |
类型 |
说明 |
| 200 |
string |
返回状态码(成功) |
| 500 |
string |
返回的状态码(失败) |
代码示例:
-
-
-
-
-
-
-
<?php
// 初始化cURL会话
$ch = curl_init();
// 设置请求URL,用户中心获取token,自行替换其他参数
curl_setopt($ch, CURLOPT_URL, "https://apicx.asia/api/qqmusic_extractor?id=7512819693&limit=30");
// 设置请求头
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Authorization: YOUR_TOKEN'
));
// 返回响应而不是直接输出
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// 执行请求并获取响应
$response = curl_exec($ch);
// 关闭cURL会话
curl_close($ch);
// 将响应解析为JSON格式
$data = json_decode($response, true);
// 输出JSON数据
print_r($data);
?>
import requests
# 设置请求URL和头部,用户中心获取token,自行替换其他参数
url = "https://apicx.asia/api/qqmusic_extractor?id=7512819693&limit=30"
headers = {
'Authorization': 'YOUR_TOKEN'
}
# 发送GET请求
response = requests.get(url, headers=headers)
# 将响应解析为JSON格式
data = response.json()
# 输出JSON数据
print(data)
// 发送GET请求,用户中心获取token,自行替换其他参数
fetch("https://apicx.asia/api/qqmusic_extractor?id=7512819693&limit=30", {
method: "GET",
headers: {
"Authorization": "YOUR_TOKEN"
}
})
.then(response => response.json()) // 将响应解析为JSON格式
.then(data => console.log(data)) // 输出JSON数据
.catch(error => console.error('Error:', error));
import java.io.*;
import java.net.HttpURLConnection;
import java.net.URL;
public class Main {
public static void main(String[] args) throws Exception {
// 创建URL对象,用户中心获取token,自行替换其他参数
URL url = new URL("https://apicx.asia/api/qqmusic_extractor?id=7512819693&limit=30");
// 打开连接
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
// 设置请求方法
conn.setRequestMethod("GET");
// 设置请求头
conn.setRequestProperty("Authorization", "YOUR_TOKEN");
// 读取响应
BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String inputLine;
StringBuffer content = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
content.append(inputLine);
}
in.close();
// 输出JSON数据
System.out.println(content.toString());
}
}
using System;
using System.Net.Http;
using System.Threading.Tasks;
class Program {
static async Task Main() {
using (HttpClient client = new HttpClient()) {
// 设置请求头
client.DefaultRequestHeaders.Add("Authorization", "YOUR_TOKEN");
// 发送GET请求,用户中心获取token,自行替换其他参数
HttpResponseMessage response = await client.GetAsync("https://apicx.asia/api/qqmusic_extractor?id=7512819693&limit=30");
// 将响应解析为字符串
string responseBody = await response.Content.ReadAsStringAsync();
// 输出JSON数据
Console.WriteLine(responseBody);
}
}
}
require 'net/http'
require 'uri'
# 创建URI对象,用户中心获取token,自行替换其他参数
uri = URI.parse("https://apicx.asia/api/qqmusic_extractor?id=7512819693&limit=30")
# 创建GET请求
request = Net::HTTP::Get.new(uri)
# 设置请求头
request["Authorization"] = "YOUR_TOKEN"
# 发送请求并获取响应
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == "https") do |http|
http.request(request)
end
# 输出JSON数据
puts response.body
package main
import (
"fmt"
"io/ioutil"
"net/http"
)
func main() {
client := &http.Client{}
// 创建GET请求,用户中心获取token,自行替换其他参数
req, err := http.NewRequest("GET", "https://apicx.asia/api/qqmusic_extractor?id=7512819693&limit=30", nil)
if err != nil {
panic(err)
}
// 设置请求头
req.Header.Add("Authorization", "YOUR_TOKEN")
// 发送请求并获取响应
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
// 读取响应体
body, err := ioutil.ReadAll(resp.Body)
if err != nil {
panic(err)
}
// 输出JSON数据
fmt.Println(string(body))
}