各类视频(图集)水印祛除解析
接口ID 3
请求方式 GET/POST
返回格式 JSON
HTTP/HTTPS 支持
接口价格 低至¥0.007/次
接口地址 http://yuanxiapi.cn/api/
参数说明 获取秘钥
| 参数 | 必填 | 说明 |
|---|---|---|
| id | 是 | 接口ID |
| key | 是 | 对接秘钥 |
| url | 是 | 作品链接 |
返回参数
| 名称 | 说明 | ||
|---|---|---|---|
| name | app名 | ||
| url | 作品链接 | ||
| type | 作品类型 | ||
| desc | 作品描述 | ||
| video | 祛水印链接 | ||
| cover | 封面链接 | ||
| images | 图集数组 | ||
| code | 200:成功; 计费 | ||
| user_info | 用户信息; zid:用户ID; cost:单价;rmb:余额; login_time:最近登录; | ||
返回示例
{
"code": 200,
"msg": "解析成功",
"data": {
"name": "铍铍虾",
"type": "视频",
"url": "https://h5.pipix.com/s/ifauTKTK/",
"desc": "“当时那把枪离裤裆只有0.01公分”",
"video": "https://v11-default.365yg.com/45f66de0435c93f8367945bb203310f2/67b8697f/video/tos/cn/tos-cn-v-0076/ogDIgEtgxqjImA1fiPS0GWWXFEeDEBFwNHFATQ/?a=0&ch=0&cr=0&dr=0&er=6&lr=unwatermarked&net=5&cd=0%7C0%7C0%7C0&cv=1&br=1044&bt=1044&cs=0&ds=4&ft=rkG4k00712Nx~rxPqUx0lrU3HC~9GVDhDIniXwG&mime_type=video_mp4&qs=13&rc=ajU5cnA5cmZwdTMzNGYzM0BpajU5cnA5cmZwdTMzNGYzM0AxZGplMmQ0aTVgLS1kMWFzYSMxZGplMmQ0aTVgLS1kMWFzcw%3D%3D&btag=80000e00008000&dy_q=1740135267&l=20250221185427906D3002C673F09CB91E",
"cover": "https://p3-ppx-sign.byteimg.com/tos-cn-p-0076/d670a58b74da44609cc0ded3bb8ce4e6_1725000394~tplv-f3gpralwbh-noop-v4:720:720:q60.jpeg?lk3s=1e780327&x-expires=1771671267&x-signature=iX3Z44HxOEXqIapYUBE7Uc35eyg%3D"
},
"user_info": {
"zid": "5",
"rmb": "1.90300",
"login_time": "2025-02-22 03:18:02"
}
}
服务级错误码(code)
| 错误码 | 说明 |
|---|---|
| 201 | 请求参数错误 |
| 202 | 查询失败 |
| 203 | 请求错误 |
| 204 | 查无结果 |
系统级错误码(error_code)
| 错误码 | 说明 |
|---|---|
| 101 | 错误的请求KEY |
| 102 | 被禁止的KEY |
| 103 | 被禁止的IP |
| 104 | 请求超过次数限制 |
| 105 | 此IP请求超过限制 |
| 106 | 未知的请求源 |
| 107 | 接口维护 |
| 108 | 余额不足 |
| 109 | 未完成认证 |
| 110 | 接口不存在 |
PHP代码示例:
<?php
//GET请求记得用:urldecode
$api_url='http://yuanxiapi.cn/api/';
$api_id='接口ID';
$key='秘钥';
$post_arr=array('id'=>$api_id,'key'=>$key,'phone'=>'参数值');
$post=http_build_query($post_arr);
$data=get_curl($api_url,$post);
print_r($data);
function get_curl($url, $post=0, $referer=0, $cookie=0, $header=0, $ua=0, $nobaody=0, $addheader=0){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
$httpheader[] = "Accept: */*";
$httpheader[] = "Accept-Encoding: gzip,deflate,sdch";
$httpheader[] = "Accept-Language: zh-CN,zh;q=0.8";
$httpheader[] = "Connection: close";
if($addheader){
$httpheader = array_merge($httpheader, $addheader);
}
curl_setopt($ch, CURLOPT_HTTPHEADER, $httpheader);
if ($post) {
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
}
if ($header) {
curl_setopt($ch, CURLOPT_HEADER, true);
}
if ($cookie) {
curl_setopt($ch, CURLOPT_COOKIE, $cookie);
}
if($referer){
if($referer==1){
curl_setopt($ch, CURLOPT_REFERER, 'http://m.qzone.com/infocenter?g_f=');
}else{
curl_setopt($ch, CURLOPT_REFERER, $referer);
}
}
if ($ua) {
curl_setopt($ch, CURLOPT_USERAGENT, $ua);
}
else {
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Linux; U; Android 4.0.4; es-mx; HTC_One_X Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0");
}
if ($nobaody) {
curl_setopt($ch, CURLOPT_NOBODY, 1);
}
curl_setopt($ch, CURLOPT_ENCODING, "gzip");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$ret = curl_exec($ch);
curl_close($ch);
return $ret; }
?>