iTranslate

API Documentation

The iTranslate Translation API is a highly responsive and state-of-the-art Neural Machine Translation API that can dynamically translate text between many languages.

Get Access

URL

https://api.itranslate.com/translate/v1

Method

POST

API Key

83fcbf65‑1d2c‑4051‑b37f‑5935e8fc7768
this API key is for demo purposes only

POST Request Body (JSON)

{
    "
key": API_KEY,
    "
source": {"dialect": SOURCE_DIALECT, "text": TEXT},
    "
target": {"dialect": TARGET_DIALECT}
}

Request Parameters

API_KEY
this API key is for demo purposes only
SOURCE_DIALECT
source language specifier (see "Languages")
TEXT
the text to translate, in the source language
TARGET_DIALECT
target language specifier (see “Languages")

Response (JSON)

{
    "
source": {"dialect": SOURCE_DIALECT, "text": TEXT, "detected": DETECTED_LANGUAGE},
    "
target": {"dialect": TARGET_DIALECT, "text": TRANSLATION},
    "
times": {"total_time": PROCESSING_TIME}
}

Request Values

DETECTED_LANGUAGE
the detected language key (see "Languages") if SOURCE_DIALECT was set to auto (otherwise detected field is not present in the response)
TRANSLATION
the result of the translation
TEXT
the time in seconds it took the server to process the request

Errors

400 Bad Request
Malformed request JSON
401 Unauthorized
invalid API key
403 Forbidden
Language not supported

Example

Example Curl Command

Copied!

curl --data '{
    "key": "83fcbf65-1d2c-4051-b37f-5935e8fc7768",
    "source": {"dialect": "en", "text": "How are you?"},
    "target": {"dialect": "de"}}'
  -
k https://api.itranslate.com/translate/v1

Copy

curl --data '{"key": "83fcbf65-1d2c-4051-b37f-5935e8fc7768", "source": {"dialect": "en", "text": "How are you?"}, "target": {"dialect": "de"}}' -k https://api.itranslate.com/translate/v1

Request

{
    "
key": "xxx",
    "
source": {"dialect": "de", "text": "Wie geht es dir?"},
    "
target": {"dialect": "en"}
}

Response

{
    "
source": {"dialect": "de", "text": "Wie geht es dir?"},
    "
target": {"dialect": "en", "text": "How are you?"},
    "
times": {"total_time": 0.020}
}

Languages

auto
Detect language automatically
it
Italian
af
Afrikaans
ja
Japanese
sq
Albanian
ko
Korean
ar
Arabic
lv
Latvian
az
Azerbaijani
lt
Lithuanian
bn
Bengali
mk
Macedonian
bs
Bosnian
ms
Malay
bg
Bulgarian
ne
Nepali
my
Burmese
no
Norwegian
zh-CN
Chinese (Simplified)
pl
Polish
zh-TW
Chinese (Traditional)
pt-BR
Portuguese (Brazil)
hr
Croatian
pt-PT
Portuguese (Portugal)
cs
Czech
ro
Romanian
da
Danish
ru
Russian
nl
Dutch
sr
Serbian
en
English
sk
Slovakian
et
Estonian
sl
Slovenian
fa
Farsi/Persian
so
Somali
fi
Finnish
es
Spanish
fr
French
sw
Swahili
ka
Georgian
sv
Swedish
de
German
tl
Tagalog
el
Greek
ta
Tamil
he
Hebrew
th
Thai
hi
Hindi
tr
Turkish
hu
Hungarian
uk
Ukrainian
is
Icelandic
ur
Urdu
id
Indonesian
vi
Vietnamese