---
title: "Get batch details"
method: GET
path: "/v1/batches/{batch_id}"
tags: ["Batches"]
---

# Get batch details

`GET /v1/batches/{batch_id}`

Retrieve the details of a batch including all its tasks and completion status.

## Path parameters

- `batch_id` string, required — The unique identifier of the batch.

## Response `200`

Batch found and returned successfully.

- BatchGetResponse — Response containing batch details with all tasks.
  - `completed` boolean, required — Whether all tasks in the batch have finished.
  - `completed_at` string — ISO timestamp when the batch completed.
  - `completed_count` number, required — Number of tasks that have completed so far.
  - `created_at` string, required — ISO timestamp when the batch was created.
  - `id` string, required — Unique identifier for the batch.
  - `progress` number, required — Completion ratio between 0 and 1.
  - `status` 'success', required
  - `tasks` object[], required — List of tasks in the batch.
    - `_query` unknown, required
    - `account_name` string — Account name that owns the task.
    - `api_type` 'web' | 'serp' | 'ecommerce' | 'social' | 'media' | 'agent' | 'extract' | 'fast-serp' | 'labs'
    - `batch_id` string, nullable — Batch ID if this task is part of a batch.
    - `created_at` string, required — Timestamp when the task was created.
    - `download_url` string, uri, nullable — URL for downloading the task results.
    - `error` string, nullable — Error message if the task failed.
    - `error_type` string, nullable — Classification of the error type.
    - `id` string, required — Unique task identifier.
    - `input` unknown, required
    - `modified_at` string — Timestamp when the task was last modified.
    - `output_url` string, nullable — Storage location of the output data.
    - `queue` string — Queue name the task was submitted to.
    - `state` 'pending' | 'queued' | 'in_progress' | 'success' | 'error', required — Current state of the task.
    - `status_code` number — HTTP status code from the task execution.
    - `status_url` string, uri, required — URL for checking the task status.

## Other responses

- `404` — Batch not found.

---

[API](https://skmtc.net/nimbleway/apis/api-gateway.md) · [All operations](https://skmtc.net/nimbleway/apis/api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nimbleway/api-gateway/revisions/9bfe220b7a29/schema)
