Translation
Translate a batch of strings
Translate up to 50 strings to one target language in a single call, for example the interface strings of a screen or the fields of a product. Results come back in input order. Every option of /v1/translate applies to all items.
With protection (any protection field, or account terms for Hebrew, English and Russian pairs), each item carries its own protection block and interface variables such as {count}, {{name}} and %s stay in place.
Quota. Consumes the monthly character quota: the total length of all items.
Limits. 1 to 50 items, each up to 5,000 characters. A protected batch carries at most 20,000 characters in total.
post/v1/translate/batch
Request
- Base URL: https://hc.itsbaba.com
- URL: https://hc.itsbaba.com/v1/translate/batch
- Auth: HTTP bearer
Request body
Example request
{
"items": [
"{count} items in your cart",
"Checkout",
"Last updated %s ago"
],
"target_lang": "he",
"source_lang": "auto",
"quality": "balanced",
"gender": "general",
"message_format": "icu",
"protect": true,
"domain": "finance",
"audience": "patient",
"protected_terms": [
"Wireless Earbuds Pro",
"A-10234"
],
"redact_terms": [
"Dana Levi"
],
"glossary": {
"Checkout": "לתשלום"
},
"listener_gender": "female",
"speaker_gender": "female",
"patient_gender": "male",
"date_order": "MDY",
"date_style": "hebrew",
"bidi": "none"
}Response
Batch results (input order)
Example response
{
"results": [
{
"dir": "rtl",
"mixed": true,
"lang": "he",
"script": "Hebr",
"runs": [
{
"text": "שלום ",
"dir": "rtl",
"script": "Hebr",
"lang": "he",
"end": 5
}
],
"display_runs": [
{
"text": "שלום ",
"dir": "rtl",
"script": "Hebr",
"lang": "he",
"end": 5
}
],
"text": "ברוכים הבאים לחשבון שלך",
"transliteration": "Bruchim haba'im lakheshbon shelkha",
"protection": {
"status": "ok",
"source_lang": "en",
"spans": [
{
"type": "date",
"value": "04/03/2026",
"render": "3 באפריל 2026",
"ambiguous_date": true
}
],
"issues": [
{
"code": "term_missing",
"severity": "error",
"detail": "\"A-10234\" (term) is missing or altered."
}
],
"segments": [
{
"source": "Would you like me to schedule delivery for 04/03/2026?",
"text": "האם תרצי שאקבע את המשלוח ל־3 באפריל 2026?",
"status": "ok"
}
]
}
}
],
"usage": {
"characters": 23
}
}Changes
No recorded changes to this operation across all 1 revision of this API.