负载结构
| 字段 | 类型 | 描述 |
|---|---|---|
success | boolean | 操作是否成功 |
type | string | 事件类型(例如 crawl.page) |
id | string | 任务 ID |
data | array | 与事件相关的数据(见下方示例) |
metadata | object | 来自你在 webhook 配置中的自定义元数据 |
error | string | 错误信息(当 success 为 false 时) |
爬取事件
crawl.started
crawl.page
data 数组包含页面内容和元数据。
crawl.completed
批量抓取事件
batch_scrape.started
batch_scrape.page
data 数组包含页面内容和元数据。
batch_scrape.completed
提取事件
extract.started
extract.completed
data 数组包含提取的数据和用量信息。
extract.failed
error 字段中包含失败原因。
事件过滤
events 数组:

