POST /translator/translate/csv

Translate CSV

Translate CSV content with optional column selection and header skipping.

Translation API

Translate CSV content with fine-grained control over which columns to translate. Optionally skip header rows and select specific columns by index or name. Ideal for translating product catalogs, content exports, and tabular datasets.

HTTP Request

1
POST /translator/translate/csv

Parameters

ParameterTypeRequiredDefaultDescription
sourcestringNo"auto"Source language code. Use auto for automatic detection
targetstringYesTarget language code
skip_headerbooleanNotrueWhether to skip the first row (header) from translation
columnsstringNoComma-separated column indices (0-based) or column names to translate. If omitted, all columns are translated

Request Body

Send the CSV content as the raw request body with Content-Type: text/csv.

1
2
3
4
id,name,description,price
1,Wireless Headphones,Premium noise-canceling headphones with 30-hour battery life,99.99
2,Smart Watch,Track your fitness goals with heart rate monitoring and GPS,249.99
3,Portable Speaker,Waterproof Bluetooth speaker with 360-degree sound,79.99

Response

1
2
3
4
5
6
7
8
{
  "status": true,
  "data": {
    "translated_csv": "id,name,description,price\n1,Auriculares Inalambricos,Auriculares premium con cancelacion de ruido y 30 horas de bateria,99.99\n2,Reloj Inteligente,Rastrea tus objetivos de fitness con monitoreo de frecuencia cardiaca y GPS,249.99\n3,Altavoz Portatil,Altavoz Bluetooth resistente al agua con sonido de 360 grados,79.99",
    "source_language": "en",
    "source_language_name": "English"
  }
}

Response Fields

FieldTypeDescription
statusbooleanWhether the request was successful
data.translated_csvstringThe translated CSV content
data.source_languagestringDetected or specified source language code
data.source_language_namestringHuman-readable name of the source language

Code Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import requests

url = "https://multi-format-ai-translator-the-most-complete.p.rapidapi.com/translator/translate/csv"

querystring = {
    "source": "auto",
    "target": "es",
    "skip_header": "true",
    "columns": "1,2"  # Only translate 'name' and 'description' columns
}

payload = """id,name,description,price
1,Wireless Headphones,Premium noise-canceling headphones with 30-hour battery life,99.99
2,Smart Watch,Track your fitness goals with heart rate monitoring and GPS,249.99
3,Portable Speaker,Waterproof Bluetooth speaker with 360-degree sound,79.99"""

headers = {
    "Content-Type": "text/csv",
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "multi-format-ai-translator-the-most-complete.p.rapidapi.com"
}

response = requests.post(url, headers=headers, params=querystring, data=payload)
data = response.json()

print(data["data"]["translated_csv"])
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const url = "https://multi-format-ai-translator-the-most-complete.p.rapidapi.com/translator/translate/csv";

const params = new URLSearchParams({
  source: "auto",
  target: "es",
  skip_header: "true",
  columns: "1,2",
});

const csv = `id,name,description,price
1,Wireless Headphones,Premium noise-canceling headphones with 30-hour battery life,99.99
2,Smart Watch,Track your fitness goals with heart rate monitoring and GPS,249.99
3,Portable Speaker,Waterproof Bluetooth speaker with 360-degree sound,79.99`;

const response = await fetch(`${url}?${params}`, {
  method: "POST",
  headers: {
    "Content-Type": "text/csv",
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "multi-format-ai-translator-the-most-complete.p.rapidapi.com",
  },
  body: csv,
});

const data = await response.json();
console.log(data.data.translated_csv);
1
2
3
4
5
6
7
curl -X POST "https://multi-format-ai-translator-the-most-complete.p.rapidapi.com/translator/translate/csv?source=auto&target=es&skip_header=true&columns=1,2" \
  -H "Content-Type: text/csv" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: multi-format-ai-translator-the-most-complete.p.rapidapi.com" \
  -d 'id,name,description,price
1,Wireless Headphones,Premium noise-canceling headphones,99.99
2,Smart Watch,Track your fitness goals,249.99'
Start building today

Get your API key and make your first request in under a minute.

Get Your API Key on RapidAPI