接口地址
https://www.chuangxinwu.cn/public/api/tdk_api.php?url=https://www.baidu.com
接口状态
异常 (HTTP 400) 上次检测:2026-05-18 00:17:13
📝 接口描述
查询网站标题关键词描述等等
📋 请求示例
【基础请求】
POST https://www.chuangxinwu.cn/public/api/tdk_api.php?url=https://www.baidu.com
【请求头】
Content-Type: application/json
Accept: application/json
【参数说明】
POST请求参数通过请求体传递(JSON格式):
请求体示例:
{
"参数名1": "参数值1",
"参数名2": "参数值2"
}
【调用示例】
# cURL
curl -X POST 'https://www.chuangxinwu.cn/public/api/tdk_api.php?url=https://www.baidu.com' \
-H 'Content-Type: application/json' \
-d '{"key":"value"}'
# JavaScript (Fetch)
fetch('https://www.chuangxinwu.cn/public/api/tdk_api.php?url=https://www.baidu.com', {
method: 'POST',
headers: { 'Content-Type': 'application/json' }
body: JSON.stringify({ key: 'value' })
})
.then(res => res.json())
.then(data => console.log(data));
# PHP (cURL)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://www.chuangxinwu.cn/public/api/tdk_api.php?url=https://www.baidu.com');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(['key' => 'value']));
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
# Python (requests)
import requests
url = 'https://www.chuangxinwu.cn/public/api/tdk_api.php?url=https://www.baidu.com'
response = requests.post(url, json={'key': 'value'})
print(response.json())
📤 真实返回示例
{
"success": false,
"error": "缺少url参数",
"code": 400
}
🔧 JavaScript (Fetch)
fetch('/api/proxy.php?url=https%3A%2F%2Fwww.chuangxinwu.cn%2Fpublic%2Fapi%2Ftdk_api.php%3Furl%3Dhttps%3A%2F%2Fwww.baidu.com', {
method: 'POST',
headers: { 'Content-Type': 'application/json' }
})
.then(res => res.json())
.then(data => console.log(data))
.catch(err => console.error(err));
🐘 PHP (cURL)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://www.chuangxinwu.cn/public/api/tdk_api.php?url=https://www.baidu.com');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
📡 Python (requests)
import requests
url = 'https://www.chuangxinwu.cn/public/api/tdk_api.php?url=https://www.baidu.com'
response = requests.request('POST', url)
print(response.json())