Scrape
Lee hasta 100 páginas web en una sola llamada y recibe de cada una su texto o Markdown, los pasajes que responden a una consulta y sus enlaces, en la misma respuesta. Cada página cuesta 0,3 créditos.
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>"
}Cuerpo
application/json
- Option 1
- Option 2
A field sent as null counts as not sent.
Respuesta
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>"
}