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

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

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

**Authentication:** your key as a [bearer token](https://darkcrawl.dev/docs/api-reference/authentication/).

## Path parameters

| Field    | Type     | Required | Default |
| -------- | -------- | -------- | ------- |
| `job_id` | `string` | Required |         |

## Query parameters

| Field   | Type      | Required | Default |
| ------- | --------- | -------- | ------- |
| `skip`  | `integer` | Optional | `0`     |
| `limit` | `integer` | Optional |         |

## Request

**curl**

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

**Python**

```python
import os
import requests

resp = requests.get(
    "https://api.darkcrawl.dev/v2/batch/scrape/JOB_ID",
    headers={"Authorization": "Bearer " + os.environ["DARKCRAWL_API_KEY"]},
    timeout=330,
)
print(resp.json())
```

**Node**

```javascript
const resp = await fetch("https://api.darkcrawl.dev/v2/batch/scrape/JOB_ID", {
  headers: {
    Authorization: "Bearer " + process.env.DARKCRAWL_API_KEY,
  },
  signal: AbortSignal.timeout(330000),
});
console.log(await resp.json());
```

## Response

Status `200`.

```json
{
  "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"
        },
        "cacheState": "miss",
        "cachedAt": "2026-11-26T10:00:00+00:00"
      },
      "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"
        },
        "cacheState": "miss",
        "cachedAt": "2026-11-26T10:00:00+00:00"
      },
      "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

| Code                    | Status |
| ----------------------- | ------ |
| `BLOCKLIST_UNAVAILABLE` | 503    |
| `RATE_LIMITED`          | 429    |

What each code means, and what to do about it: [Errors](https://darkcrawl.dev/docs/api-reference/errors/).

## Notes

- The reply is a crawl's, and `next` is `/v2/batch/scrape/{job_id}?skip=` and a number. Every document has `metadata.cacheState` and `metadata.cachedAt`: `hit` says the page came from a stored copy.
- `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](https://darkcrawl.dev/docs/api-reference/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`.
