Skip to main content

Overview

Batch processing lets you run the same API endpoint against multiple inputs — from a file or stdin — with parallel execution, rate limiting, and configurable error handling.

Basic Syntax

Input Sources

From File

Provide a list of inputs in a text file (one per line):

From CSV/JSON Files

Batch from structured files — the CLI auto-detects the format:

From Stdin

Pipe data directly from other commands:

Parallel Execution

Control the number of concurrent workers:
Higher parallelism increases throughput but also API token consumption. Start with 3-5 workers and adjust based on your plan limits.

Rate Limiting

Set a maximum request rate to stay within limits:
Rate limit formats:
  • 10/s — 10 requests per second
  • 100/m — 100 requests per minute

Error Handling

Configure behavior when individual requests fail:

Progress and Statistics

Progress Tracking

Show a real-time progress bar:

Batch Statistics

Display summary statistics after completion:
Output includes total processed, succeeded, failed, and elapsed time.

Output Options

All output format options work with batch processing:

Complete Example

Enrich a list of LinkedIn profiles with parallel processing, rate limiting, and error recovery:

Options Reference

Next Steps

Dataset Pipelines

Build multi-source workflows with dependency chains and scheduling

Database Loading

Load batch results directly into databases