加载中...

基础信息

查看接口基本信息和返回格式
接口描述

提供网易云音乐搜索和播放功能,支持多种音质选择

七日请求统计
本周总请求: - 日均: -
请求方式
GET POST 推荐
请求地址
https://api.cxzja.cn/api/wyymusic
返回方式
JSON 默认返回格式,包含完整数据结构
返回预览
JSON
{
  "code": 200,
  "msg": "请求成功",
  "data": {
    "id": "108914",
    "name": "江南",
    "singer": "林俊杰",
    "album": "第二天堂",
    "cover": "https://p1.music.126.net/Gk4t93WwafRZtt9nTS77Iw==/109951171891430447.jpg",
    "lyric": "[00:00.000] 作词 : 林秋离
[00:01.000] 作曲 : 林俊杰
[00:02.000] 编曲 : 蔡政勋/陈建玮
[00:03.000] 制作人 : 许环良
[00:37.010] 风到这里就是粘
[00:40.534] 粘住过客的思念
[00:44.795] 雨到了这里缠成线
[00:48.546] 缠着我们流连人世间
[00:53.038] 你在身边就是缘
[00:56.569] 缘分写在三生石上面
[01:01.023] 爱有万分之一甜
[01:04.546] 宁愿我就葬在这一点
[01:09.062] 圈圈圆圆圈圈
[01:10.739] 天天年年天天 的我
[01:13.546] 深深看你的脸
[01:16.041] 生气的温柔
[01:17.994] 埋怨的温柔 的脸
[01:24.058] 不懂爱恨情愁煎熬的我们
[01:27.737] 都以为相爱就像风云的善变
[01:32.017] 相信爱一天 抵过永远
[01:36.279] 在这一刹那冻结了时间
[01:40.009] 不懂怎么表现温柔的我们
[01:43.760] 还以为殉情只是古老的传言
[01:47.751] 离愁能有多痛 痛有多浓
[01:52.247] 当梦被埋在江南烟雨中
[01:55.506] 心碎了才懂
[01:58.921]
[02:20.982] 圈圈圆圆圈圈
[02:22.699] 天天年年天天 的我
[02:25.470] 深深看你的脸
[02:27.948] 生气的温柔
[02:29.933] 埋怨的温柔 的脸
[02:35.984] 不懂爱恨情愁煎熬的我们
[02:39.697] 都以为相爱就像风云的善变
[02:43.951] 相信爱一天 抵过永远
[02:48.195] 在这一刹那冻结了时间
[02:51.964] 不懂怎么表现温柔的我们
[02:55.694] 还以为殉情只是古老的传言
[02:59.698] 离愁能有多痛 痛有多浓
[03:04.200] 当梦被埋在江南烟雨中
[03:07.485] 心碎了才懂
[03:11.231]
[03:19.925] 相信爱一天 抵过永远
[03:24.192] 在这一刹那冻结了时间
[03:27.952] 不懂怎么表现温柔的我们
[03:31.717] 还以为殉情只是古老的传言
[03:35.716] 离愁能有多痛 痛有多浓
[03:40.186] 当梦被埋在江南烟雨中
[03:45.494] 心碎了才懂
[04:22.946] 制作助理 : 冯时泽
[04:23.362] 箫 : 林信有
[04:23.778] 吉他 : Shah Tahir
[04:24.194] 低音吉他 : Gary Lao
[04:24.610] 和声编写 : 许环良
[04:25.026] 和声 : 林俊杰
[04:25.442] 录音室 : The Garden(新加坡)
[04:25.858] 录音师 : 许环良/Acid Pang
[04:26.274] 混音室 : Blue Moon Studio(加利福尼亚州)
[04:26.690] 混音师 : Joe Vanelli/Joe Primeau with 许环良
[04:27.106] OP : 大潮音乐经纪有限公司/Touch Music Publishing Pte Ltd./Compass
[04:27.522] SP : 大潮音乐经纪有限公司
",
    "tlyric": "",
    "url": "https://iot201.music.126.net/Yml6PWlvdCZjaGFubmVsPW5ldGVhc2Umc2NlbmU9YW5kcmNhcg/20260703151717/f0d01512fdfb7875c62d937bb01a4451/ymusic/a6df/db31/b8ae/97166c7f154795d1a818fded34efd54b.flac",
    "quality": "lossless",
    "duration": "04:27"
  },
  "api_source": "API官网:api.cxzja.cn",
  "timestamp": "2026-07-03 14:52:18"
}

计费标准

了解接口的计费方式和价格
免费接口
免费
完全免费
所有用户均可免费调用,无需付费
QPS限制
普通用户
不限
会员用户
不限
每日请求次数
普通用户
不限
会员用户
不限

安全认证

了解接口的认证方式和访问凭证管理
Token 认证

登录后可查看您的Token

立即登录
实名认证
无需实名认证
本接口对所有用户开放,无需实名认证即可访问
认证方式
推荐 Header 认证

通过 HTTP Header 传递认证信息

Authorization
Bearer {access_token}

或通过curl请求参数传递:

curl
curl "https://api.cxzja.cn/api/wyymusic?token=YOUR_TOKEN"

参数文档

查看接口请求参数和返回字段说明
请求参数
参数名 类型 必填 默认值 可选值 说明
token string 必填 登录后显示你的请求token 接口请求唯一认证标识!
msg string 必填 关键词
n string 必填 序号,搜索后按序号取歌曲详情
id string 必填 歌曲ID
br string 必填 默认:lossless,jymaster、dolby、sky、hires、lossless、exhigh、standard
mode string 可选
返回参数
字段名 类型 说明
code
int 返回状态码

状态码

了解接口返回的状态码含义及处理方式
接口状态码
状态码 说明
200 请求成功
201 请求失败
服务器状态码

在线测试

在线调试接口,实时查看响应结果
发起请求
GET/POST

示例代码

多种语言的接口调用示例
PHP
JavaScript
NodeJs
Python
Go
Java
C#
C
C++
易语言
PHP
<?php
$API_TOKEN = 'YOUR_TOKEN';
$API_URL = 'https://api.cxzja.cn/api/wyymusic';

$params = array(
    'token' => 'YOUR_TOKEN',
    'msg' => '参数值',
    'n' => '参数值',
    'id' => '参数值',
    'br' => '参数值',
    'mode' => '参数值',
);

$res = api::send($API_URL, $params, 'GET/POST');
print($res);

class api {
    public static function send($url, $data, $type) {
        $data = http_build_query($data);
        $ch = curl_init();
        if ($type == 'POST') {
            curl_setopt($ch, CURLOPT_URL, $url);
            curl_setopt($ch, CURLOPT_POST, true);
            curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
        } else {
            curl_setopt($ch, CURLOPT_URL, $url . '?' . $data);
        }
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_TIMEOUT, 10);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        $res = curl_exec($ch);
        curl_close($ch);
        return $res;
    }
}
JavaScript
$.ajax({
    url: 'https://api.cxzja.cn/api/wyymusic',
    data: {
        token: 'YOUR_TOKEN',
        msg: '参数值',
        n: '参数值',
        id: '参数值',
        br: '参数值',
        mode: '参数值',
    },
    type: 'GET/POST',
    dataType: 'json',
    success: function(data) {
        console.log(data);
    },
    error: function(err) {
        console.log('请求失败', err);
    }
});
Python
import requests

url = "https://api.cxzja.cn/api/wyymusic"
data = {
    "token": "YOUR_TOKEN",
    "msg": "参数值",
    "n": "参数值",
    "id": "参数值",
    "br": "参数值",
    "mode": "参数值",
}

response = requests.post(url, data=data)
print(response.json())
Java
import java.net.HttpURLConnection;
import java.net.URL;
import java.io.*;

public class ApiRequest {
    public static void main(String[] args) throws Exception {
        URL url = new URL("https://api.cxzja.cn/api/wyymusic");
        HttpURLConnection conn = (HttpURLConnection) url.openConnection();
        conn.setRequestMethod("GET/POST");
        conn.setConnectTimeout(10000);

        BufferedReader reader = new BufferedReader(
            new InputStreamReader(conn.getInputStream()));
        String line;
        StringBuilder result = new StringBuilder();
        while ((line = reader.readLine()) != null) {
            result.append(line);
        }
        reader.close();
        System.out.println(result.toString());
    }
}
Go
package main

import (
    "fmt"
    "io/ioutil"
    "net/http"
"strings"
)

func main() {
    data := "token=YOUR_TOKEN&msg=%E5%8F%82%E6%95%B0%E5%80%BC&n=%E5%8F%82%E6%95%B0%E5%80%BC&id=%E5%8F%82%E6%95%B0%E5%80%BC&br=%E5%8F%82%E6%95%B0%E5%80%BC&mode=%E5%8F%82%E6%95%B0%E5%80%BC"
    resp, _ := http.Post("https://api.cxzja.cn/api/wyymusic",
        "application/x-www-form-urlencoded", strings.NewReader(data))
    defer resp.Body.Close()
    body, _ := ioutil.ReadAll(resp.Body)
    fmt.Println(string(body))
}
C#
using System;
using System.Net.Http;
using System.Threading.Tasks;

class Program {
    static async Task Main() {
        using var client = new HttpClient();
        var data = new FormUrlEncodedContent(new Dictionary<string, string> {
            {"token", "YOUR_TOKEN"},
            {"msg", "参数值"},
            {"n", "参数值"},
            {"id", "参数值"},
            {"br", "参数值"},
            {"mode", "参数值"},
        });
        var response = await client.PostAsync("https://api.cxzja.cn/api/wyymusic", data);
        var result = await response.Content.ReadAsStringAsync();
        Console.WriteLine(response);
    }
}
NodeJs
const https = require('https');
const querystring = require('querystring');

const postData = querystring.stringify({
    'token': 'YOUR_TOKEN',
    'msg': '参数值',
    'n': '参数值',
    'id': '参数值',
    'br': '参数值',
    'mode': '参数值',
});
const options = {
    hostname: 'api.cxzja.cn',
    path: '/api/wyymusic',
    method: 'POST',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
};
const req = https.request(options, res => {
    let data = '';
    res.on('data', d => data += d);
    res.on('end', () => console.log(data));
});
req.write(postData);
req.end();
C
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <curl/curl.h>

static size_t WriteCallback(void *contents, size_t size, size_t nmemb, void *userp) {
    ((char*)userp)[0] = '\0';
    strcat(userp, contents);
    return size * nmemb;
}

int main() {
    CURL *curl;
    CURLcode res;
    char response[4096] = {0};

    curl_global_init(CURL_GLOBAL_DEFAULT);
    curl = curl_easy_init();

    if(curl) {
        curl_easy_setopt(curl, CURLOPT_URL, "https://api.cxzja.cn/api/wyymusic");
        curl_easy_setopt(curl, CURLOPT_POST, 1L);
        curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "token=YOUR_TOKEN&msg=%E5%8F%82%E6%95%B0%E5%80%BC&n=%E5%8F%82%E6%95%B0%E5%80%BC&id=%E5%8F%82%E6%95%B0%E5%80%BC&br=%E5%8F%82%E6%95%B0%E5%80%BC&mode=%E5%8F%82%E6%95%B0%E5%80%BC");
        curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback);
        curl_easy_setopt(curl, CURLOPT_WRITEDATA, response);
        curl_easy_setopt(curl, CURLOPT_TIMEOUT, 10L);

        res = curl_easy_perform(curl);
        if(res == CURLE_OK) printf("%s\n", response);
        curl_easy_cleanup(curl);
    }
    curl_global_cleanup();
    return 0;
}
C++
#include <iostream>
#include <string>
#include <curl/curl.h>

size_t WriteCallback(void* contents, size_t size, size_t nmemb, std::string* userp) {
    userp->append((char*)contents, size * nmemb);
    return size * nmemb;
}

int main() {
    CURL* curl = curl_easy_init();
    std::string response;

    if (curl) {
        curl_easy_setopt(curl, CURLOPT_URL, "https://api.cxzja.cn/api/wyymusic");
        curl_easy_setopt(curl, CURLOPT_POST, 1L);
        curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "token=YOUR_TOKEN&msg=%E5%8F%82%E6%95%B0%E5%80%BC&n=%E5%8F%82%E6%95%B0%E5%80%BC&id=%E5%8F%82%E6%95%B0%E5%80%BC&br=%E5%8F%82%E6%95%B0%E5%80%BC&mode=%E5%8F%82%E6%95%B0%E5%80%BC");
        curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback);
        curl_easy_setopt(curl, CURLOPT_WRITEDATA, &response);
        curl_easy_setopt(curl, CURLOPT_TIMEOUT, 10L);

        CURLcode res = curl_easy_perform(curl);
        if (res == CURLE_OK) std::cout << response << std::endl;
        curl_easy_cleanup(curl);
    }
    curl_global_cleanup();
    return 0;
}
易语言
.版本 2
.支持库 spec

.局部变量 url, 文本型
.局部变量 params, 文本型
.局部变量 result, 文本型

url = "https://api.cxzja.cn/api/wyymusic"
params = "token=YOUR_TOKEN&msg=%E5%8F%82%E6%95%B0%E5%80%BC&n=%E5%8F%82%E6%95%B0%E5%80%BC&id=%E5%8F%82%E6%95%B0%E5%80%BC&br=%E5%8F%82%E6%95%B0%E5%80%BC&mode=%E5%8F%82%E6%95%B0%E5%80%BC"

result = 编码_URL解码 (网页_访问 (url, , params))
调试输出 (result)

AI开发文档

导出接口文档供AI助手快速理解接口结构
复制下方内容粘贴给AI助手,即可快速生成对接代码。
JSON 格式 0 KB