---
title: "POST /v2/extract/templates/batch"
method: POST
path: "/v2/extract/templates/batch"
tags: ["Extraction Templates"]
---

# POST /v2/extract/templates/batch

`POST /v2/extract/templates/batch`

Execute Extraction Template Batch Endpoint

## Request body

- ExtractionTemplateBatchBody — Request body for executing a batch of Extraction Template requests
  - `inputs` object[], required
    - `formats` string[] — Response formats to include. All disabled by default.
    - `localization` boolean
    - `params` object
  - `shared_inputs` object, required
    - `formats` string[] — Response formats to include. All disabled by default.
    - `localization` boolean
    - `params` object
    - `template` string, required

## Response `200`

Batch Created

- ExtractBatchResponse — Response when a batch of extract tasks is created successfully.
  - `batch_id` string, required — Unique identifier for the batch.
  - `batch_size` number, required — Number of tasks in the batch.
  - `tasks` object[], required — List of created tasks.
    - `_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.

---

[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)
