> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scrapengine.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Batch Download

> Download the combined artifact for a completed batch

## Overview

Streams the combined artifact. It is not buffered in the API process, so a large batch does not
need a large response buffer on either side.

Available once `status` is `completed`; earlier than that it returns `400`.

## Parameters

**id** `string` *required*

The job id returned by `POST /batch/scrape`.

## Example Request

```bash cURL theme={null}
curl "https://api.scrapengine.io/api/v1/batch/scrape/JOB_ID/download" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -o batch.jsonl
```

## Response

The artifact in the job's `outputFormat`. For `jsonl`, one JSON object per line:

```json theme={null}
{"url":"https://example.com","content":"Example Domain\n\nThis domain is for use in..."}
```

`Content-Type` is `application/x-ndjson` for `jsonl` and `text/csv` for `csv`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.