Scrape
一次读取最多 100 个网页,并在同一响应中返回每个页面的正文或 Markdown、回答问题的段落以及链接。每个页面 0.3 积分。
POST
/
v1
/
scrape
curl --request POST \
--url https://api.querying.ai/v1/scrape \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"urls": [
"https://www.energy.gov/energysaver/air-source-heat-pumps",
"https://www.example.com/missing"
],
"text": {
"maxCharacters": 2000
}
}
'
{
"requestId": "3b0f6a54-9a2e-4c0d-8f61-5d7e1c2a9b40",
"results": [
{
"id": "https://www.energy.gov/energysaver/air-source-heat-pumps",
"url": "https://www.energy.gov/energysaver/air-source-heat-pumps",
"title": "Air-Source Heat Pumps",
"publishedDate": "2026-09-12T07:36:36Z",
"text": "Cold-climate air-source heat pumps keep heating efficiently at outdoor temperatures well below freezing."
}
],
"statuses": [
{
"id": "https://www.energy.gov/energysaver/air-source-heat-pumps",
"status": "success",
"source": "crawled"
},
{
"id": "https://www.example.com/missing",
"status": "error",
"error": {
"tag": "CRAWL_NOT_FOUND",
"httpStatusCode": 404
}
}
],
"searchTime": 2310
}{
"requestId": "3b0f6a54-9a2e-4c0d-8f61-5d7e1c2a9b40",
"error": "Invalid request body | unsupported field: summary",
"tag": "INVALID_REQUEST_BODY"
}{
"success": false,
"error": {
"code": "MISSING_API_KEY",
"message": "Missing or invalid API key",
"timestamp": "2026-07-09T04:12:00.000Z"
}
}{
"requestId": "<string>",
"error": "<string>",
"tag": "<string>"
}{
"requestId": "<string>",
"error": "<string>",
"tag": "<string>"
}{
"success": false,
"error": {
"code": "PAYLOAD_TOO_LARGE",
"message": "request body exceeds 1 MiB",
"timestamp": "2026-07-09T04:12:00.000Z"
}
}{
"requestId": "<string>",
"error": "<string>",
"tag": "<string>"
}{
"requestId": "<string>",
"error": "<string>",
"tag": "<string>"
}请求体
application/json
- Option 1
- Option 2
A field sent as null counts as not sent.
响应
The answer for the URLs, also when some of them could not be read: those are in statuses.
⌘I
curl --request POST \
--url https://api.querying.ai/v1/scrape \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"urls": [
"https://www.energy.gov/energysaver/air-source-heat-pumps",
"https://www.example.com/missing"
],
"text": {
"maxCharacters": 2000
}
}
'
{
"requestId": "3b0f6a54-9a2e-4c0d-8f61-5d7e1c2a9b40",
"results": [
{
"id": "https://www.energy.gov/energysaver/air-source-heat-pumps",
"url": "https://www.energy.gov/energysaver/air-source-heat-pumps",
"title": "Air-Source Heat Pumps",
"publishedDate": "2026-09-12T07:36:36Z",
"text": "Cold-climate air-source heat pumps keep heating efficiently at outdoor temperatures well below freezing."
}
],
"statuses": [
{
"id": "https://www.energy.gov/energysaver/air-source-heat-pumps",
"status": "success",
"source": "crawled"
},
{
"id": "https://www.example.com/missing",
"status": "error",
"error": {
"tag": "CRAWL_NOT_FOUND",
"httpStatusCode": 404
}
}
],
"searchTime": 2310
}{
"requestId": "3b0f6a54-9a2e-4c0d-8f61-5d7e1c2a9b40",
"error": "Invalid request body | unsupported field: summary",
"tag": "INVALID_REQUEST_BODY"
}{
"success": false,
"error": {
"code": "MISSING_API_KEY",
"message": "Missing or invalid API key",
"timestamp": "2026-07-09T04:12:00.000Z"
}
}{
"requestId": "<string>",
"error": "<string>",
"tag": "<string>"
}{
"requestId": "<string>",
"error": "<string>",
"tag": "<string>"
}{
"success": false,
"error": {
"code": "PAYLOAD_TOO_LARGE",
"message": "request body exceeds 1 MiB",
"timestamp": "2026-07-09T04:12:00.000Z"
}
}{
"requestId": "<string>",
"error": "<string>",
"tag": "<string>"
}{
"requestId": "<string>",
"error": "<string>",
"tag": "<string>"
}