Skip to content

Crawl

GET /v2/crawl/{job_id}

Copy page

Read a crawl: its status, and the pages it has read so far.

GET /v2/crawl/{job_id}

Authentication: your key as a bearer token.

Path parameters

FieldTypeRequiredDefault
job_idstringRequired

Query parameters

FieldTypeRequiredDefault
skipintegerOptional0
limitintegerOptional

Request

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

Response

Status 200.

Response
{
  "success": true,
  "status": "completed",
  "completed": 2,
  "total": 2,
  "creditsUsed": 0,
  "expiresAt": "2026-12-26T10:00:00+00:00",
  "loginWalls": 0,
  "data": [
    {
      "markdown": "# Notice\n\nSample page text.\n\nContact: sales@example.invalid\n",
      "links": [
        "http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/about",
        "http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/contact"
      ],
      "metadata": {
        "title": "Notice",
        "description": "",
        "language": "en",
        "sourceURL": "http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/notice",
        "url": "http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/notice",
        "statusCode": 200,
        "contentType": "text/html",
        "scrapeId": "01K0EXAMPLECAPTURE0000000A",
        "onion": {
          "host": "exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion",
          "valid": true,
          "version": 3
        },
        "evidence": {
          "captureId": "01K0EXAMPLECAPTURE0000000A",
          "fetchedAt": "2026-11-26T10:00:00+00:00",
          "sha256Raw": "9f2c000000000000000000000000000000000000000000000000000000000000"
        }
      },
      "indicators": [
        {
          "type": "email",
          "value": "sales@example.invalid",
          "count": 1
        }
      ],
      "resources": [
        {
          "category": "image",
          "element": "img",
          "url": "http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/logo.png",
          "label": "Logo",
          "title": "",
          "filename": "logo.png",
          "type": "image/png",
          "size": null,
          "download": {
            "status": "metadata_only"
          }
        }
      ]
    },
    {
      "markdown": "# About\n\nSample second page.\n",
      "links": [
        "http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/"
      ],
      "metadata": {
        "title": "About",
        "description": "",
        "language": "en",
        "sourceURL": "http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/about",
        "url": "http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/about",
        "statusCode": 200,
        "contentType": "text/html",
        "scrapeId": "01K0EXAMPLECAPTURE0000000B",
        "onion": {
          "host": "exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion",
          "valid": true,
          "version": 3
        },
        "evidence": {
          "captureId": "01K0EXAMPLECAPTURE0000000A",
          "fetchedAt": "2026-11-26T10:00:00+00:00",
          "sha256Raw": "9f2c000000000000000000000000000000000000000000000000000000000000"
        }
      },
      "indicators": [
        {
          "type": "email",
          "value": "sales@example.invalid",
          "count": 1
        }
      ],
      "resources": [
        {
          "category": "image",
          "element": "img",
          "url": "http://exampleonionq7x2mfk4lzr5w3ty6hbnc2jdu7avs4ekp5gw3xmlq2zr.onion/logo.png",
          "label": "Logo",
          "title": "",
          "filename": "logo.png",
          "type": "image/png",
          "size": null,
          "download": {
            "status": "metadata_only"
          }
        }
      ]
    }
  ]
}

Errors

CodeStatus
BLOCKLIST_UNAVAILABLE503
RATE_LIMITED429

What each code means, and what to do about it: Errors.

Notes

  • status is scraping, completed, failed or cancelled. data holds up to 100 documents or about 10 MiB; when more are left, next is the address of the following part. ?skip=&limit= pages by hand.
  • The reply also echoes the options the job resolved, such as render, waitFor, parsers, maxTextBytes, redactPII and checkPromptInjection. warning is there when there is something to say. The reply here is trimmed.
  • Reading the status of your own job does not count as a request. It has its own per-minute limit, set out under Rate limits.
  • 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.