全能网页抓取 · 反爬绕过 · 自适应解析 · 批量处理
输入任意网址,自动抓取页面内容。支持反爬绕过、Cloudflare 解锁、动态渲染等。
智能判断最佳抓取方式
纯 HTTP 请求,速度快
反爬浏览器,绕过检测
完整浏览器,支持 JS
一次提交多个 URL,后台批量处理。最多支持 20 个 URL。
对任意网站进行截图,支持全页面或指定元素截图。
自动识别页面类型,智能提取结构化数据。
供外部应用调用的商品数据解析接口,支持 1688/Alibaba 商品详情页抓取,返回干净的结构化数据。
X-API-Key
| 参数 | 类型 | 说明 |
|---|---|---|
| X-API-Key | Header | API密钥,必需 |
API_KEY - 调用API使用的密钥MASTER_KEY - 管理密钥的管理员密钥(可选)import requests
API = "https://chong.xinianai.com"
API_KEY = "your-api-key-here" # 替换为您的API Key
# 商品解析 API (需要API Key认证)
headers = {
"Content-Type": "application/json",
"X-API-Key": API_KEY
}
r = requests.post(f"{API}/api/product/parse", json={
"url": "https://detail.1688.com/offer/1027518271371.html"
}, headers=headers)
data = r.json()
if data["success"]:
print(f"标题: {data['title']}")
print(f"价格: {data['price']}")
print(f"主图: {len(data['images'])} 张")
print(f"SKU: {len(data['sku'])} 个")
else:
print(f"错误: {data.get('error')}")
const API = "https://chong.xinianai.com";
const API_KEY = "your-api-key-here"; // 替换为您的API Key
// 商品解析 API (需要API Key认证)
async function parseProduct(url) {
const res = await fetch(`${API}/api/product/parse`, {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-API-Key": API_KEY
},
body: JSON.stringify({ url })
});
const data = await res.json();
if (data.success) {
console.log("标题:", data.title);
console.log("价格:", data.price);
console.log("主图:", data.images);
console.log("SKU:", data.sku);
return data;
} else {
console.error("错误:", data.error);
return null;
}
}
// 使用示例
parseProduct("https://detail.1688.com/offer/1027518271371.html");
| 字段 | 类型 | 说明 |
|---|---|---|
| success | boolean | 是否成功 |
| url | string | 原始请求 URL |
| title | string | 商品标题 |
| price | string | 商品价格 |
| images | array | 主图 URL 列表 |
| sku | array | SKU规格列表,每项包含 name 和 image |
| specifications | object | 商品规格参数 (键值对) |
| shop | string | 店铺名称 |
| error | string | 错误信息 (仅失败时返回) |
通过环境变量配置密钥。Master Key 用于管理密钥,API Key 用于调用接口。
API_KEY - 调用API使用的密钥MASTER_KEY - 管理员密钥(可选,用于创建更多密钥)未配置或未验证