# Get one item's payload

> Returns a single finished item's payload verbatim (not wrapped), capped at 512 KiB.

Source: https://docs.spicrawl.com/api-reference/batch/batch-task-content

## GET /v1/batch/{batchID}/tasks/{seq}/content

Operation ID: `batchTaskContent`. API key scope: `batch`.

Returns a single finished item's payload verbatim (not wrapped), capped at 512 KiB. Use it to fetch one URL's
output without paging the whole result set.
Status meanings: 200 payload; 409 either "not finished yet, poll the job and ask again" or "finished as
failed/cancelled/skipped, will never have content" (read `detail`; for failures, `POST .../retry`);
404 `seq` is beyond the job's item count; 503 the deployment has no per-item payload to serve.
Note: the worker currently writes one stitched file per job and no per-item reference, so this endpoint
answers 503 for succeeded items in practice — read `result.content` from the results endpoint instead.
Retention is not checked here.

### Example

```bash
curl "https://api.spicrawl.com/v1/batch/{batchID}/tasks/{seq}/content" \
  -H "Authorization: Bearer $SPICRAWL_API_KEY"
```

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `batchID` | path | string | yes | The job `id` (26-character ULID as returned). The 32/36-character UUID form of the same id is also accepted. A malformed id and another tenant's id both answer 404. |
| `seq` | path | integer | yes | The item's 0-based position in submission order (`seq` on a result line). Non-integer or negative is a 400. |

### Responses

#### 200

The item's payload.

Headers: `X-Content-Truncated`.

`application/json`.



#### 400

The request is invalid. Not retryable; fix the request using `code` and `diagnostics.hint`.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 401

Missing, invalid, revoked or expired key. Not retryable with the same key.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 403

The key lacks the scope this route requires (`ERR::AUTH::INSUFFICIENT_SCOPE`), or the action is not permitted.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 404

No such resource for this key's organization.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 409

Conflicts with the resource's current state, for example a session in use (`ERR::SESSION::BUSY`, retryable).

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 500

Internal error. Retryable when `retryable` is true.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 503

No proxy exit or engine capacity was available. Retryable after `Retry-After`; 0 credits.

Headers: `Retry-After`, `X-Request-Id`.

`application/problem+json` (`Problem` schema).

Full OpenAPI spec: https://docs.spicrawl.com/openapi.yaml
