https://api.zapfetch.com。
快速开始
快速开始:curl
用 curl 在 60 秒内跑通 ZapFetch 的每一个端点。
所有示例都使用你的 UUID 格式 ZapFetch API Key,并指向
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
用 curl 在 60 秒内跑通 ZapFetch 的每一个端点。
https://api.zapfetch.com。
export ZAPFETCH_KEY="YOUR_ZAPFETCH_API_KEY"
curl -X POST https://api.zapfetch.com/v1/scrape \
-H "Authorization: Bearer $ZAPFETCH_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com",
"formats": ["markdown"]
}'
# 启动 crawl,返回 job id。
curl -X POST https://api.zapfetch.com/v1/crawl \
-H "Authorization: Bearer $ZAPFETCH_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://docs.example.com",
"limit": 50
}'
# 查询状态并拉取页面。
curl https://api.zapfetch.com/v1/crawl/JOB_ID \
-H "Authorization: Bearer $ZAPFETCH_KEY"
curl -X POST https://api.zapfetch.com/v1/search \
-H "Authorization: Bearer $ZAPFETCH_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "best vector databases 2026",
"limit": 5,
"scrapeOptions": { "formats": ["markdown"] }
}'
curl -X POST https://api.zapfetch.com/v1/map \
-H "Authorization: Bearer $ZAPFETCH_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://docs.example.com",
"limit": 500
}'
curl -X POST https://api.zapfetch.com/v1/extract \
-H "Authorization: Bearer $ZAPFETCH_KEY" \
-H "Content-Type: application/json" \
-d '{
"urls": ["https://news.ycombinator.com"],
"prompt": "Extract the top 5 story titles with their points and author.",
"schema": {
"type": "object",
"properties": {
"stories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": { "type": "string" },
"points": { "type": "integer" },
"author": { "type": "string" }
}
}
}
}
}
}'