全视频解析

服务正常 视频工具 按次计费

输入抖音、快手、小红书、B站、微博、视频号、TikTok、YouTube 等平台的分享链接,返回可直接播放或下载的无水印视频直链。

接口地址
https://www.wkidc.cn/api/v1/video/parse.php
请求方式POST
返回格式application/json
免费额度免费模式可用
累计调用53 次

本接口有免费和收费两种模式,由站点后台统一配置,调用方无需传参区分。

免费模式

  • 不扣点数,但返回数据中带 watermark 对象
  • 接入方必须在播放器上叠加该水印
  • 水印字段:text 文案、link 跳转、logo 图片、position 位置、bg 背景色

收费模式

  • 按次扣除点数,不限时长、不限平台
  • 返回 watermark: null,直接输出无水印直链
  • 上游解析失败自动退款,不扣点

当前价格

以后台「视频解析接口」配置为准,调用前可看返回里的 credits_cost 确认本次消耗。

输入各大平台的分享链接或视频直链,返回可直接播放 / 下载的无水印视频地址。适用于视频下载站、内容聚合、二次创作工具等场景。

支持的平台

  • 短视频:抖音、快手、小红书、微视、西瓜视频、好看视频
  • 中长视频:B站(bilibili)、微博、微信视频号
  • 海外平台:TikTok、YouTube、Twitter(X)、Instagram
  • 直链透传:任意 .mp4 / .m3u8 直链可直接传入,原样返回

链接格式说明

  • 必须是 http:// 或 https:// 开头,否则返回 400
  • 支持分享口令里提取出的短链(如 https://v.douyin.com/xxxxx/)
  • 不支持需要登录、付费或已删除的私密视频

超时与限制

  • 单次请求最长等待 15 秒(上游连接超时 10 秒)
  • 上游解析失败返回 502,不扣点数
  • 默认单 Key 每分钟 60 次调用

请求参数

参数名必填类型示例值说明
url 必填 string https://v.douyin.com/xxxxx/ 视频分享链接或视频直链,必须 http/https 开头

返回参数

字段名类型说明
codeint0 表示成功
messagestring提示信息,成功为 success
data.video_urlstring无水印视频直链(mp4 / m3u8)
data.titlestring视频标题或描述
data.cover_urlstring视频封面图地址
data.authorstring作者昵称
data.platformstring平台标识:douyin / kuaishou / xiaohongshu / bilibili / weibo / tiktok / youtube / unknown
data.durationint|null视频时长(秒),部分平台为 null
data.is_freebooltrue=免费模式带水印,false=收费模式无水印
data.watermarkobject|null免费模式返回水印配置,收费模式为 null
data.watermark.textstring水印文案
data.watermark.linkstring水印点击跳转地址
data.watermark.logostring水印 logo 图片地址
data.watermark.positionstring水印位置:top-left / top-right / bottom-left / bottom-right
data.watermark.bgstring水印背景色(rgba)
data.credits_costint本次消耗点数,免费模式为 0
data.credits_balanceint调用后的剩余点数
data.noticestring使用提示,免费模式会说明水印要求
JSON
{
  "code": 0,
  "message": "success",
  "data": {
    "video_url": "https://v11-colds.douyinvod.com/xxxx/xxxx.mp4",
    "title": "视频标题",
    "cover_url": "https://p3-pc-sign.douyinpic.com/xxxx.jpg",
    "author": "作者昵称",
    "platform": "douyin",
    "duration": 15,
    "is_free": true,
    "watermark": {
      "text": "小K导航赞助",
      "link": "https://www.wkidc.cn",
      "logo": "https://www.wkidc.cn/assets/images/logo.png",
      "position": "bottom-right",
      "bg": "rgba(74,108,247,0.9)"
    },
    "credits_cost": 0,
    "credits_balance": 0,
    "notice": "本接口免费使用,条件是在播放器上展示「小K导航赞助」水印。"
  }
}
错误码说明
0成功
400缺少 url 参数,或 url 不以 http:// 或 https:// 开头
401缺少 API Key,或 Key 无效 / 已禁用
402点数不足,本次需要 N 点,当前余额 M 点
405请求方法错误,本接口仅支持 POST
500解析失败(上游返回异常,或未获取到视频直链)
502解析服务异常(上游超时或返回非 200)
cURL
curl -X POST "https://www.wkidc.cn/api/v1/video/parse.php" \
  -H "X-API-Key: sk_你的KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https:\/\/v.douyin.com\/xxxxx\/"}'
PHP
<?php
$endpoint = 'https://www.wkidc.cn/api/v1/video/parse.php';
$apiKey   = 'sk_你的KEY';
$params   = array (
  'url' => 'https://v.douyin.com/xxxxx/',
);

$ch = curl_init($endpoint);
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT        => 60,
    CURLOPT_HTTPHEADER     => [
        'X-API-Key: ' . $apiKey,
        'Content-Type: application/json',
    ],
    CURLOPT_POST       => true,
    CURLOPT_POSTFIELDS => json_encode($params, JSON_UNESCAPED_UNICODE),
]);

$res = curl_exec($ch);
curl_close($ch);

var_dump(json_decode($res, true));
Python
import requests

url = 'https://www.wkidc.cn/api/v1/video/parse.php'
headers = {'X-API-Key': 'sk_你的KEY'}
params = array (
  'url' => 'https://v.douyin.com/xxxxx/',
)

resp = requests.post(url, headers=headers, json=params)
print(resp.json())
Node.js
const res = await fetch('https://www.wkidc.cn/api/v1/video/parse.php', {
  method: 'POST',
  headers: {
    'X-API-Key': 'sk_你的KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({"url":"https:\/\/v.douyin.com\/xxxxx\/"})
});
console.log(await res.json());
Go
package main

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

func main() {
    body := []byte(`{"url":"https:\/\/v.douyin.com\/xxxxx\/"}`)
    req, _ := http.NewRequest("POST", "https://www.wkidc.cn/api/v1/video/parse.php", bytes.NewBuffer(body))
    req.Header.Set("X-API-Key", "sk_你的KEY")
    req.Header.Set("Content-Type", "application/json")

    resp, _ := http.DefaultClient.Do(req)
    defer resp.Body.Close()
    b, _ := ioutil.ReadAll(resp.Body)
    fmt.Println(string(b))
}
在线调试会真实请求接口并消耗你的点数,请勿填写私密信息。每账号每小时最多 30 次。
参数名值
url 必填
视频分享链接或视频直链,必须 http/https 开头