Translate multiple text strings in a single request. Accepts a JSON array of strings and returns all translations at once, reducing API calls and improving performance for bulk translation workloads.
HTTP Request
| |
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source | string | No | "auto" | Source language code (e.g., en, fr, de). Use auto for automatic detection |
target | string | Yes | — | Target language code (e.g., es, ja, zh) |
Request Body
Send a JSON array of strings as the request body with Content-Type: application/json.
| |
Response
| |
Response Fields
| Field | Type | Description |
|---|---|---|
status | boolean | Whether the request was successful |
data.translated_texts | array | Array of translated strings in the same order as the input |
data.source_language | string | Detected or specified source language code |
data.source_language_name | string | Human-readable name of the source language |
Code Examples
| |
| |
| |
Related Endpoints
- Translate — Translate a single text string
- Detect Language — Detect the language of a text