查看原始 JSON
{
"type": "object",
"required": [
"body"
],
"properties": {
"body": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"url"
],
"~standard": {
"vendor": "zod",
"version": 1,
"jsonSchema": {}
},
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "要抓取的完整链接,包含 http:// 或 https://。"
},
"super": {
"type": "boolean",
"description": "通过真实设备访问,处理较严格的反自动化限制;消耗更多上游资源和 tokens,默认 false。"
},
"prompt": {
"type": "string",
"minLength": 1,
"description": "用自然语言描述要提取的字段和形式;仅解析已抓取内容,不能控制抓取过程。"
},
"geoCode": {
"type": "string",
"maxLength": 2,
"minLength": 2,
"description": "访问页面使用的两位国家代码,默认 us。"
},
"timeout": {
"type": "integer",
"maximum": 300,
"minimum": 1,
"description": "等待页面完全加载的最长秒数,默认 300。"
},
"maxPages": {
"type": "integer",
"maximum": 20,
"minimum": 1,
"description": "最多翻页抓取的列表页数,范围 1 至 20;每页都会增加运行时间和 AI token 费用。"
},
"waitUntil": {
"enum": [
"domcontentloaded",
"load",
"networkidle0",
"networkidle2"
],
"type": "string",
"description": "浏览器渲染时判断导航完成的方式;networkidle0 等待最充分但更慢,默认 domcontentloaded。"
},
"proxyCountry": {
"type": "string",
"maxLength": 2,
"minLength": 2,
"description": "代理出口的两位国家代码,默认 us。"
},
"blockResources": {
"type": "boolean",
"description": "跳过图片、字体和样式表以加快抓取并减少带宽相关 token 用量,默认 false。"
},
"waitForSelector": {
"type": "string",
"minLength": 1,
"description": "等待指定 CSS 选择器出现在 DOM 中后再提取,用于延迟加载的内容。"
},
"browserRendering": {
"type": "boolean",
"description": "在 Chromium 浏览器中渲染页面,适用于依赖 JavaScript 的网站和单页应用,默认 false。"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}