Batch scrape
GET /v2/batch/scrape/{job_id}/errors
Copy page
List the pages of a batch that failed or were skipped.
GET /
Authentication: your key as a bearer token.
Path parameters
| Field | Type | Required | Default |
|---|---|---|---|
job_id | string | Required |
Request
curl https://api.darkcrawl.dev/v2/batch/scrape/JOB_ID/errors \
-H "Authorization: Bearer $DARKCRAWL_API_KEY"import os
import requests
resp = requests.get(
"https://api.darkcrawl.dev/v2/batch/scrape/JOB_ID/errors",
headers={"Authorization": "Bearer " + os.environ["DARKCRAWL_API_KEY"]},
timeout=330,
)
print(resp.json())const resp = await fetch("https://api.darkcrawl.dev/v2/batch/scrape/JOB_ID/errors", {
headers: {
Authorization: "Bearer " + process.env.DARKCRAWL_API_KEY,
},
signal: AbortSignal.timeout(330000),
});
console.log(await resp.json());Response
Status 200.
{
"success": true,
"errors": [
{
"id": "e1c4f2a9b0d34e5f8a6b7c8d9e0f1a2b",
"timestamp": "2026-11-26T10:00:00+00:00",
"url": "http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/members",
"code": "ONION_UNREACHABLE",
"error": "the onion service could not be reached"
}
],
"robotsBlocked": [
"http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/admin"
]
}Errors
| Code | Status |
|---|---|
BLOCKLIST_UNAVAILABLE | 503 |
What each code means, and what to do about it: Errors.
Notes
- The job's failed and skipped pages. A page skipped because of
robots.txtis inrobotsBlocked, as an address; the others are inerrors. idstays the same between reads.codeis the reason stored for the page, anderroris a short text for it.timestampisnullfor a page recorded before DarkCrawl kept it.- An unknown id, an expired job and another company's job all answer
404with{"success": false, "error": "Job not found"}. That body has nocode.