对外提供全网主流平台无水印解析能力,标准 RESTful 风格,GET/POST 兼容,JSON 返回
https://api.qxnav.com/api/parse.php
GET / POST(兼容)
application/json; charset=utf-8
Bearer Token / Query api_key
| 参数 | 必填 | 类型 | 说明 |
|---|---|---|---|
api_key |
必填 | string | 用户个人 API_KEY,可在请求头 Authorization: Bearer xxx 或 query 中传递 |
url |
必填 | string | 作品分享链接(支持短链 / 完整链接 / 含中文的分享文本自动提取) |
支持以下两种方式传递 API_KEY,任选其一:
# Authorization 头 Authorization: Bearer 您的 API_KEY
GET https://api.qxnav.com/api/parse.php?api_key=您的 API_KEY&url=<share_url>
{
"code": 200,
"msg": "解析成功",
"platform": "douyin",
"type": "video",
"data": {
"title": "作品标题",
"author": "作者昵称",
"cover": "https://...封面.jpg",
"video_url": "https://...无水印.mp4",
"images": [],
"live_images": [],
"duration": 15.20
},
"cost": 1,
"remain": 49,
"is_vip": false
}
{
"code": 200,
"platform": "xiaohongshu",
"type": "live",
"data": {
"title": "小红书 Live 图笔记",
"author": "小红书用户",
"cover": "https://...封面.jpg",
"video_url": "",
"images": [
"https://...图片1.jpg",
"https://...图片2.jpg"
],
"live_images": [
{
"image": "https://...实况1.jpg",
"video": "https://...实况1.mov"
}
],
"duration": 0
}
}
| code | HTTP | 说明 | 是否扣次数 |
|---|---|---|---|
200 | 200 | 解析成功 | 扣 1 次 |
400 | 400 | 参数错误 / 链接无效 | 不扣 |
401 | 401 | api_key 缺失或无效 | 不扣 |
402 | 402 | 解析次数不足 | 不扣 |
429 | 429 | 请求频率过高 / IP 超限 | 不扣 |
500 | 500 | 解析失败(平台异常) | 不扣 |
curl -X POST https://api.qxnav.com/api/parse.php \
-H "Authorization: Bearer 您的 API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://v.douyin.com/xxx"}'
const res = await fetch('https://api.qxnav.com/api/parse.php', { method: 'POST', headers: { 'Authorization': 'Bearer 您的 API_KEY', 'Content-Type': 'application/json' }, body: JSON.stringify({ url: 'https://v.douyin.com/xxx' }) }); const json = await res.json(); console.log(json.data.video_url);
$ch = curl_init('https://api.qxnav.com/api/parse.php'); curl_setopt_array($ch, [ CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer 您的 API_KEY', 'Content-Type: application/json' ], CURLOPT_POSTFIELDS => json_encode(['url' => 'https://v.douyin.com/xxx']) ]); $res = json_decode(curl_exec($ch), true);
import requests r = requests.post('https://api.qxnav.com/api/parse.php', headers={'Authorization': 'Bearer 您的 API_KEY'}, json={'url': 'https://v.douyin.com/xxx'}) print(r.json())
douyin
kuaishou
xiaohongshu
bilibili
tiktok
weibo
ixigua
pipixia
zuiyou
haokan