加载中...

基础信息

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

获取酷我音乐歌词信息(支持翻译歌词)

七日请求统计
本周总请求: - 日均: -
请求方式
GET POST 推荐
请求地址
https://api.cxzja.cn/api/kwlrc
返回方式
JSON 默认返回格式,包含完整数据结构
返回预览
JSON
{
  "code": 200,
  "msg": "success",
  "data": {
    "type": "kuwo_music_lyric",
    "song_id": "228908",
    "total_lines": 63,
    "lyric_data": {
      "raw": [
        {
          "lineLyric": "晴天 - 周杰伦 (Jay Chou)",
          "time": "0.0"
        },
        {
          "lineLyric": "词:周杰伦",
          "time": "2.25"
        },
        {
          "lineLyric": "曲:周杰伦",
          "time": "4.5"
        },
        {
          "lineLyric": "编曲:周杰伦",
          "time": "6.75"
        },
        {
          "lineLyric": "制作人:周杰伦",
          "time": "9.0"
        },
        {
          "lineLyric": "合声:周杰伦",
          "time": "11.25"
        },
        {
          "lineLyric": "合声编写:周杰伦",
          "time": "13.5"
        },
        {
          "lineLyric": "吉他:蔡科俊Again",
          "time": "15.75"
        },
        {
          "lineLyric": "贝斯:陈任佑",
          "time": "18.0"
        },
        {
          "lineLyric": "鼓:陈柏州",
          "time": "20.25"
        },
        {
          "lineLyric": "录音助理:刘勇志",
          "time": "22.51"
        },
        {
          "lineLyric": "录音工程:杨瑞代(Alfa Studio)",
          "time": "24.76"
        },
        {
          "lineLyric": "混音工程:杨大纬(杨大纬录音工作室)",
          "time": "27.01"
        },
        {
          "lineLyric": "故事的小黄花",
          "time": "29.26"
        },
        {
          "lineLyric": "从出生那年就飘着",
          "time": "32.71"
        },
        {
          "lineLyric": "童年的荡秋千",
          "time": "36.24"
        },
        {
          "lineLyric": "随记忆一直晃到现在",
          "time": "39.75"
        },
        {
          "lineLyric": "Re So So Si Do Si La ",
          "time": "42.91"
        },
        {
          "lineLyric": "So La Si Si Si Si La Si La So ",
          "time": "45.93"
        },
        {
          "lineLyric": "吹着前奏望着天空",
          "time": "49.87"
        },
        {
          "lineLyric": "我想起花瓣试着掉落",
          "time": "53.2"
        },
        {
          "lineLyric": "为你翘课的那一天",
          "time": "56.72"
        },
        {
          "lineLyric": "花落的那一天",
          "time": "58.83"
        },
        {
          "lineLyric": "教室的那一间",
          "time": "60.6"
        },
        {
          "lineLyric": "我怎么看不见",
          "time": "62.32"
        },
        {
          "lineLyric": "消失的下雨天",
          "time": "64.12"
        },
        {
          "lineLyric": "我好想再淋一遍",
          "time": "65.81"
        },
        {
          "lineLyric": "没想到失去的勇气我还留着",
          "time": "69.99"
        },
        {
          "lineLyric": "好想再问一遍",
          "time": "76.12"
        },
        {
          "lineLyric": "你会等待还是离开",
          "time": "77.97"
        },
        {
          "lineLyric": "刮风这天我试过握着你手",
          "time": "84.91"
        },
        {
          "lineLyric": "但偏偏雨渐渐大到我看你不见",
          "time": "90.45"
        },
        {
          "lineLyric": "还要多久我才能在你身边",
          "time": "98.880005"
        },
        {
          "lineLyric": "等到放晴的那天也许我会比较好一点",
          "time": "105.44"
        },
        {
          "lineLyric": "从前从前有个人爱你很久",
          "time": "112.869995"
        },
        {
          "lineLyric": "但偏偏风渐渐把距离吹得好远",
          "time": "118.54"
        },
        {
          "lineLyric": "好不容易又能再多爱一天",
          "time": "126.94"
        },
        {
          "lineLyric": "但故事的最后你好像还是说了拜拜",
          "time": "133.5"
        },
        {
          "lineLyric": "为你翘课的那一天",
          "time": "154.9"
        },
        {
          "lineLyric": "花落的那一天",
          "time": "156.88"
        },
        {
          "lineLyric": "教室的那一间",
          "time": "158.66"
        },
        {
          "lineLyric": "我怎么看不见",
          "time": "160.39"
        },
        {
          "lineLyric": "消失的下雨天",
          "time": "162.15"
        },
        {
          "lineLyric": "我好想再淋一遍",
          "time": "163.87"
        },
        {
          "lineLyric": "没想到失去的勇气我还留着",
          "time": "168.0"
        },
        {
          "lineLyric": "好想再问一遍",
          "time": "174.15"
        },
        {
          "lineLyric": "你会等待还是离开",
          "time": "176.03"
        },
        {
          "lineLyric": "刮风这天我试过握着你手",
          "time": "182.92"
        },
        {
          "lineLyric": "但偏偏雨渐渐大到我看你不见",
          "time": "188.49"
        },
        {
          "lineLyric": "还要多久我才能在你身边",
          "time": "196.94"
        },
        {
          "lineLyric": "等到放晴的那天也许我会比较好一点",
          "time": "203.43"
        },
        {
          "lineLyric": "从前从前有个人爱你很久",
          "time": "210.87"
        },
        {
          "lineLyric": "偏偏风渐渐把距离吹得好远",
          "time": "217.14"
        },
        {
          "lineLyric": "好不容易又能再多爱一天",
          "time": "224.88"
        },
        {
          "lineLyric": "但故事的最后你好像还是说了拜拜",
          "time": "231.42"
        },
        {
          "lineLyric": "刮风这天我试过握着你手",
          "time": "238.49"
        },
        {
          "lineLyric": "但偏偏雨渐渐大到我看你不见",
          "time": "241.97"
        },
        {
          "lineLyric": "还要多久我才能够在你身边",
          "time": "245.65"
        },
        {
          "lineLyric": "等到放晴那天也许我会比较好一点",
          "time": "249.07"
        },
        {
          "lineLyric": "从前从前有个人爱你很久",
          "time": "252.92"
        },
        {
          "lineLyric": "但偏偏雨渐渐把距离吹得好远",
          "time": "255.91"
        },
        {
          "lineLyric": "好不容易又能再多爱一天",
          "time": "259.38"
        },
        {
          "lineLyric": "但故事的最后你好像还是说了拜",
          "time": "262.86"
        }
      ],
      "formatted": [
        "[00:00.00]晴天 - 周杰伦 (Jay Chou)",
        "[00:02.25]词:周杰伦",
        "[00:04.50]曲:周杰伦",
        "[00:06.75]编曲:周杰伦",
        "[00:09.00]制作人:周杰伦",
        "[00:11.25]合声:周杰伦",
        "[00:13.50]合声编写:周杰伦",
        "[00:15.75]吉他:蔡科俊Again",
        "[00:18.00]贝斯:陈任佑",
        "[00:20.25]鼓:陈柏州",
        "[00:22.51]录音助理:刘勇志",
        "[00:24.76]录音工程:杨瑞代(Alfa Studio)",
        "[00:27.01]混音工程:杨大纬(杨大纬录音工作室)",
        "[00:29.26]故事的小黄花",
        "[00:32.71]从出生那年就飘着",
        "[00:36.24]童年的荡秋千",
        "[00:39.75]随记忆一直晃到现在",
        "[00:42.90]Re So So Si Do Si La ",
        "[00:45.92]So La Si Si Si Si La Si La So ",
        "[00:49.86]吹着前奏望着天空",
        "[00:53.20]我想起花瓣试着掉落",
        "[00:56.71]为你翘课的那一天",
        "[00:58.82]花落的那一天",
        "[01:00.60]教室的那一间",
        "[01:02.32]我怎么看不见",
        "[01:04.12]消失的下雨天",
        "[01:05.81]我好想再淋一遍",
        "[01:09.98]没想到失去的勇气我还留着",
        "[01:16.12]好想再问一遍",
        "[01:17.96]你会等待还是离开",
        "[01:24.90]刮风这天我试过握着你手",
        "[01:30.45]但偏偏雨渐渐大到我看你不见",
        "[01:38.88]还要多久我才能在你身边",
        "[01:45.43]等到放晴的那天也许我会比较好一点",
        "[01:52.86]从前从前有个人爱你很久",
        "[01:58.54]但偏偏风渐渐把距离吹得好远",
        "[02:06.93]好不容易又能再多爱一天",
        "[02:13.50]但故事的最后你好像还是说了拜拜",
        "[02:34.90]为你翘课的那一天",
        "[02:36.87]花落的那一天",
        "[02:38.65]教室的那一间",
        "[02:40.38]我怎么看不见",
        "[02:42.15]消失的下雨天",
        "[02:43.87]我好想再淋一遍",
        "[02:48.00]没想到失去的勇气我还留着",
        "[02:54.15]好想再问一遍",
        "[02:56.03]你会等待还是离开",
        "[03:02.91]刮风这天我试过握着你手",
        "[03:08.49]但偏偏雨渐渐大到我看你不见",
        "[03:16.93]还要多久我才能在你身边",
        "[03:23.43]等到放晴的那天也许我会比较好一点",
        "[03:30.87]从前从前有个人爱你很久",
        "[03:37.13]偏偏风渐渐把距离吹得好远",
        "[03:44.87]好不容易又能再多爱一天",
        "[03:51.41]但故事的最后你好像还是说了拜拜",
        "[03:58.49]刮风这天我试过握着你手",
        "[04:01.96]但偏偏雨渐渐大到我看你不见",
        "[04:05.65]还要多久我才能够在你身边",
        "[04:09.06]等到放晴那天也许我会比较好一点",
        "[04:12.91]从前从前有个人爱你很久",
        "[04:15.90]但偏偏雨渐渐把距离吹得好远",
        "[04:19.37]好不容易又能再多爱一天",
        "[04:22.86]但故事的最后你好像还是说了拜"
      ],
      "structured": [
        {
          "time": "0.0",
          "formatted_time": "[00:00.00]",
          "content": "晴天 - 周杰伦 (Jay Chou)"
        },
        {
          "time": "2.25",
          "formatted_time": "[00:02.25]",
          "content": "词:周杰伦"
        },
        {
          "time": "4.5",
          "formatted_time": "[00:04.50]",
          "content": "曲:周杰伦"
        },
        {
          "time": "6.75",
          "formatted_time": "[00:06.75]",
          "content": "编曲:周杰伦"
        },
        {
          "time": "9.0",
          "formatted_time": "[00:09.00]",
          "content": "制作人:周杰伦"
        },
        {
          "time": "11.25",
          "formatted_time": "[00:11.25]",
          "content": "合声:周杰伦"
        },
        {
          "time": "13.5",
          "formatted_time": "[00:13.50]",
          "content": "合声编写:周杰伦"
        },
        {
          "time": "15.75",
          "formatted_time": "[00:15.75]",
          "content": "吉他:蔡科俊Again"
        },
        {
          "time": "18.0",
          "formatted_time": "[00:18.00]",
          "content": "贝斯:陈任佑"
        },
        {
          "time": "20.25",
          "formatted_time": "[00:20.25]",
          "content": "鼓:陈柏州"
        },
        {
          "time": "22.51",
          "formatted_time": "[00:22.51]",
          "content": "录音助理:刘勇志"
        },
        {
          "time": "24.76",
          "formatted_time": "[00:24.76]",
          "content": "录音工程:杨瑞代(Alfa Studio)"
        },
        {
          "time": "27.01",
          "formatted_time": "[00:27.01]",
          "content": "混音工程:杨大纬(杨大纬录音工作室)"
        },
        {
          "time": "29.26",
          "formatted_time": "[00:29.26]",
          "content": "故事的小黄花"
        },
        {
          "time": "32.71",
          "formatted_time": "[00:32.71]",
          "content": "从出生那年就飘着"
        },
        {
          "time": "36.24",
          "formatted_time": "[00:36.24]",
          "content": "童年的荡秋千"
        },
        {
          "time": "39.75",
          "formatted_time": "[00:39.75]",
          "content": "随记忆一直晃到现在"
        },
        {
          "time": "42.91",
          "formatted_time": "[00:42.90]",
          "content": "Re So So Si Do Si La "
        },
        {
          "time": "45.93",
          "formatted_time": "[00:45.92]",
          "content": "So La Si Si Si Si La Si La So "
        },
        {
          "time": "49.87",
          "formatted_time": "[00:49.86]",
          "content": "吹着前奏望着天空"
        },
        {
          "time": "53.2",
          "formatted_time": "[00:53.20]",
          "content": "我想起花瓣试着掉落"
        },
        {
          "time": "56.72",
          "formatted_time": "[00:56.71]",
          "content": "为你翘课的那一天"
        },
        {
          "time": "58.83",
          "formatted_time": "[00:58.82]",
          "content": "花落的那一天"
        },
        {
          "time": "60.6",
          "formatted_time": "[01:00.60]",
          "content": "教室的那一间"
        },
        {
          "time": "62.32",
          "formatted_time": "[01:02.32]",
          "content": "我怎么看不见"
        },
        {
          "time": "64.12",
          "formatted_time": "[01:04.12]",
          "content": "消失的下雨天"
        },
        {
          "time": "65.81",
          "formatted_time": "[01:05.81]",
          "content": "我好想再淋一遍"
        },
        {
          "time": "69.99",
          "formatted_time": "[01:09.98]",
          "content": "没想到失去的勇气我还留着"
        },
        {
          "time": "76.12",
          "formatted_time": "[01:16.12]",
          "content": "好想再问一遍"
        },
        {
          "time": "77.97",
          "formatted_time": "[01:17.96]",
          "content": "你会等待还是离开"
        },
        {
          "time": "84.91",
          "formatted_time": "[01:24.90]",
          "content": "刮风这天我试过握着你手"
        },
        {
          "time": "90.45",
          "formatted_time": "[01:30.45]",
          "content": "但偏偏雨渐渐大到我看你不见"
        },
        {
          "time": "98.880005",
          "formatted_time": "[01:38.88]",
          "content": "还要多久我才能在你身边"
        },
        {
          "time": "105.44",
          "formatted_time": "[01:45.43]",
          "content": "等到放晴的那天也许我会比较好一点"
        },
        {
          "time": "112.869995",
          "formatted_time": "[01:52.86]",
          "content": "从前从前有个人爱你很久"
        },
        {
          "time": "118.54",
          "formatted_time": "[01:58.54]",
          "content": "但偏偏风渐渐把距离吹得好远"
        },
        {
          "time": "126.94",
          "formatted_time": "[02:06.93]",
          "content": "好不容易又能再多爱一天"
        },
        {
          "time": "133.5",
          "formatted_time": "[02:13.50]",
          "content": "但故事的最后你好像还是说了拜拜"
        },
        {
          "time": "154.9",
          "formatted_time": "[02:34.90]",
          "content": "为你翘课的那一天"
        },
        {
          "time": "156.88",
          "formatted_time": "[02:36.87]",
          "content": "花落的那一天"
        },
        {
          "time": "158.66",
          "formatted_time": "[02:38.65]",
          "content": "教室的那一间"
        },
        {
          "time": "160.39",
          "formatted_time": "[02:40.38]",
          "content": "我怎么看不见"
        },
        {
          "time": "162.15",
          "formatted_time": "[02:42.15]",
          "content": "消失的下雨天"
        },
        {
          "time": "163.87",
          "formatted_time": "[02:43.87]",
          "content": "我好想再淋一遍"
        },
        {
          "time": "168.0",
          "formatted_time": "[02:48.00]",
          "content": "没想到失去的勇气我还留着"
        },
        {
          "time": "174.15",
          "formatted_time": "[02:54.15]",
          "content": "好想再问一遍"
        },
        {
          "time": "176.03",
          "formatted_time": "[02:56.03]",
          "content": "你会等待还是离开"
        },
        {
          "time": "182.92",
          "formatted_time": "[03:02.91]",
          "content": "刮风这天我试过握着你手"
        },
        {
          "time": "188.49",
          "formatted_time": "[03:08.49]",
          "content": "但偏偏雨渐渐大到我看你不见"
        },
        {
          "time": "196.94",
          "formatted_time": "[03:16.93]",
          "content": "还要多久我才能在你身边"
        },
        {
          "time": "203.43",
          "formatted_time": "[03:23.43]",
          "content": "等到放晴的那天也许我会比较好一点"
        },
        {
          "time": "210.87",
          "formatted_time": "[03:30.87]",
          "content": "从前从前有个人爱你很久"
        },
        {
          "time": "217.14",
          "formatted_time": "[03:37.13]",
          "content": "偏偏风渐渐把距离吹得好远"
        },
        {
          "time": "224.88",
          "formatted_time": "[03:44.87]",
          "content": "好不容易又能再多爱一天"
        },
        {
          "time": "231.42",
          "formatted_time": "[03:51.41]",
          "content": "但故事的最后你好像还是说了拜拜"
        },
        {
          "time": "238.49",
          "formatted_time": "[03:58.49]",
          "content": "刮风这天我试过握着你手"
        },
        {
          "time": "241.97",
          "formatted_time": "[04:01.96]",
          "content": "但偏偏雨渐渐大到我看你不见"
        },
        {
          "time": "245.65",
          "formatted_time": "[04:05.65]",
          "content": "还要多久我才能够在你身边"
        },
        {
          "time": "249.07",
          "formatted_time": "[04:09.06]",
          "content": "等到放晴那天也许我会比较好一点"
        },
        {
          "time": "252.92",
          "formatted_time": "[04:12.91]",
          "content": "从前从前有个人爱你很久"
        },
        {
          "time": "255.91",
          "formatted_time": "[04:15.90]",
          "content": "但偏偏雨渐渐把距离吹得好远"
        },
        {
          "time": "259.38",
          "formatted_time": "[04:19.37]",
          "content": "好不容易又能再多爱一天"
        },
        {
          "time": "262.86",
          "formatted_time": "[04:22.86]",
          "content": "但故事的最后你好像还是说了拜"
        }
      ]
    },
    "has_lyric": true
  },
  "time": "2026-06-24 06:24:13",
  "api_source": "API官网:api.cxzja.cn",
  "timestamp": "2026-06-24 06:24:13"
}

计费标准

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

安全认证

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

登录后可查看您的Token

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

通过 HTTP Header 传递认证信息

Authorization
Bearer {access_token}

或通过curl请求参数传递:

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

参数文档

查看接口请求参数和返回字段说明
请求参数
参数名 类型 必填 默认值 可选值 说明
token string 必填 登录后显示你的请求token 接口请求唯一认证标识!
id string 必填 歌曲ID
返回参数
字段名 类型 说明
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/kwlrc';

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

$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/kwlrc',
    data: {
        token: 'YOUR_TOKEN',
        id: '参数值',
    },
    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/kwlrc"
data = {
    "token": "YOUR_TOKEN",
    "id": "参数值",
}

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/kwlrc");
        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&id=%E5%8F%82%E6%95%B0%E5%80%BC"
    resp, _ := http.Post("https://api.cxzja.cn/api/kwlrc",
        "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"},
            {"id", "参数值"},
        });
        var response = await client.PostAsync("https://api.cxzja.cn/api/kwlrc", 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',
    'id': '参数值',
});
const options = {
    hostname: 'api.cxzja.cn',
    path: '/api/kwlrc',
    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/kwlrc");
        curl_easy_setopt(curl, CURLOPT_POST, 1L);
        curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "token=YOUR_TOKEN&id=%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/kwlrc");
        curl_easy_setopt(curl, CURLOPT_POST, 1L);
        curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "token=YOUR_TOKEN&id=%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/kwlrc"
params = "token=YOUR_TOKEN&id=%E5%8F%82%E6%95%B0%E5%80%BC"

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

AI开发文档

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