Skip to content

Batch scrape

GET /v2/batch/scrape/{job_id}/errors

Copy page

List the pages of a batch that failed or were skipped.

GET /v2/batch/scrape/{job_id}/errors

Authentication: your key as a bearer token.

Path parameters

FieldTypeRequiredDefault
job_idstringRequired

Request

bash
curl https://api.darkcrawl.dev/v2/batch/scrape/JOB_ID/errors \
  -H "Authorization: Bearer $DARKCRAWL_API_KEY"

Response

Status 200.

Response
{
  "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

CodeStatus
BLOCKLIST_UNAVAILABLE503

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.txt is in robotsBlocked, as an address; the others are in errors.
  • id stays the same between reads. code is the reason stored for the page, and error is a short text for it. timestamp is null for a page recorded before DarkCrawl kept it.
  • An unknown id, an expired job and another company's job all answer 404 with {"success": false, "error": "Job not found"}. That body has no code.