系统请求参数
| 参数名 | 类型 | 必填 | 说明 | 默认值 | 示例 |
|---|---|---|---|---|---|
appid |
int | 是 | 接口ID | - |
- |
ak |
string | 是 | 调用密钥,注册后即可获取 | - |
- |
应用请求参数
| 参数名 | 类型 | 必填 | 说明 | 默认值 | 示例 |
|---|---|---|---|---|---|
bvid |
String | 否 | 视频bvid | - |
BV1uv411q7Mv |
type |
String | 否 | 接口名称,只能是video_info | video_info |
video_info |
返回数据示例
{"code":0,"message":"0","ttl":1,"data":{"bvid":"BV1uv411q7Mv","aid":243922477,"videos":1,"tid":17,"tname":"单机游戏","copyright":1,"pic":"http://i2.hdslb.com/bfs/archive/82e52df9d0221836c260c82f2890e3761a46716b.jpg","title":"爆肝98小时!在MC中还原糖调小镇","pubdate":1595203214,"ctime":1595168654,"desc":"相关游戏:
----Minecraft、しゅがてん!-sugarfulltempering
====================
制作名单:
----Minecraft游戏内建筑:-落忆-
----程序:-落忆-
----游戏内摄影:-落忆-、Passkou
----视频后期:Passkou
----音乐编曲:Passkou
=============
时间统计:
建筑:约47小时
程序+调试:14小时
摄影:11小时
后期:4小时
编曲:22小时
==============
其它:
原本是制作了红石音乐的版本,但由于MC限制,音质不好且有卡顿,所以直接用了工程导出的音频。
这个坑是真的难搞,从7月10号就开始搞了(来看直播的应该知道),中途各种麻烦。","state":0,"attribute":16793728,"duration":314,"mission_id":13777,"rights":{"bp":0,"elec":0,"download":1,"movie":0,"pay":0,"hd5":0,"no_reprint":1,"autoplay":1,"ugc_pay":0,"is_cooperation":1,"ugc_pay_preview":0,"no_background":0,"clean_mode":0},"owner":{"mid":228292951,"name":"-落忆-","face":"http://i0.hdslb.com/bfs/face/2632673be19ac21ab4ced7168d7d2229065237cd.jpg"},"stat":{"aid":243922477,"view":2687,"danmaku":38,"reply":84,"favorite":216,"coin":399,"share":41,"now_rank":0,"his_rank":0,"like":464,"dislike":0,"evaluation":""},"dynamic":"#单机联机##我的世界##糖调#","cid":214334689,"dimension":{"width":1920,"height":1080,"rotate":0},"no_cache":false,"pages":[{"cid":214334689,"page":1,"from":"vupload","part":"序列01_AVS","duration":314,"vid":"","weblink":"","dimension":{"width":1920,"height":1080,"rotate":0}}],"subtitle":{"allow_submit":false,"list":[]},"staff":[{"mid":228292951,"title":"UP主","name":"-落忆-","face":"http://i0.hdslb.com/bfs/face/2632673be19ac21ab4ced7168d7d2229065237cd.jpg","vip":{"type":2,"status":1,"vip_pay_type":0,"theme_type":0},"official":{"role":0,"title":"","desc":"","type":-1},"follower":2901,"label_style":0},{"mid":12440199,"title":"后期","name":"账号已注销","face":"http://i0.hdslb.com/bfs/face/member/noface.jpg","vip":{"type":2,"status":1,"vip_pay_type":0,"theme_type":0},"official":{"role":0,"title":"","desc":"","type":-1},"follower":5421,"label_style":0}]},"ret_code":0}
示例代码
<?php
$url = 'https://api.liangmlk.cn?appid=2077&ak=你的AK';// 使用curl发送GET请求
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$response = curl_exec($ch);
curl_close($ch);
print_r( $response);
import requests
url = 'https://api.liangmlk.cn?appid=2077&ak=你的AK'
response = requests.get(url)
print(response.json())
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class ApiExample {
public static void main(String[] args) throws Exception {
String url = "https://api.liangmlk.cn?appid=2077&ak=你的AK";
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create(url))
.GET()
.build();
HttpResponse response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
const axios = require('axios');
axios.GET('https://api.liangmlk.cn?appid=2077&ak=你的AK')
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});
package main
import (
"fmt"
"net/http")
func main() {
url := "https://api.liangmlk.cn?appid=2077&ak=你的AK"
resp, err := http.Get(url)
if err != nil {
fmt.Println("Error:", err)
return
}
defer resp.Body.Close()
fmt.Println(resp.Body)
}
curl -X GET "https://api.liangmlk.cn?appid=2077&ak=你的AK"
// 使用jQuery AJAX
$.ajax({
url: 'https://api.liangmlk.cn?appid=2077&ak=你的AK',
type: 'GET',
success: function(response) {
console.log(response);
},
error: function(error) {
console.log(error);
}
});
错误码
| 错误码 | 错误信息 | 解决方案 |
|---|---|---|
100 |
缺少调用凭证 | 请检查是否传入appid和ak参数 |
101 |
接口不存在或已下线 | 请检查接口ID是否正确或联系客服 |
102 |
按量付费接口已全部下线 | 请使用会员接口或联系客服 |
103 |
付费调用次数不足 | 请充值或购买会员套餐 |
104 |
当日免费次数已用完 | 请明天再试或购买会员套餐 |
106 |
在IP黑名单 | 请联系客服解除限制 |
107 |
在用户黑名单里 | 请联系客服解除限制 |
服务保障
可靠安全
提供高可用、低延迟的服务,实施严格的安全措施,确保业务和数据安全。
服务专业
专业团队提供全方位的售前和售后服务,随时解答您的疑问。
数据合规
严格遵守数据保护法规,确保您的数据安全合规。
灵活持续
提供多样化的解决方案,并持续优化以满足您不断变化的业务需求。