Scrape
Lesen Sie bis zu 100 Webseiten in einem Aufruf und erhalten Sie zu jeder Seite Text oder Markdown, die Passagen, die eine Anfrage beantworten, und ihre Links in derselben Antwort. Jede Seite kostet 0,3 Credits.
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>"
}Autorisierungen
Body
application/json
- Option 1
- Option 2
A field sent as null counts as not sent.
Antwort
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>"
}