API documentation

Introduction translated.io provides an online translation service that is constantly evolving through machine learning and artificial intelligence. Our customers have the possibility to translate content between 21 different languages via a solid RESTful API. This documentation describes authentication as well as sending translation requests and receiving response objects. No worries: The API is pretty easy to use and only needs some seconds to setup. Enjoy! Authentication After signing up you must just login with the password we provided via mail. Enter your payment information on the dashboard and claim an API token afterwards - boom! You're ready to go. You can re-generate a new API whenever needed. Please send this token with each request as Authorization bearer token. Translation All API requests must be made over HTTPS.

Please use the following endpoint for all translation requests:

POST https://api.translated.io/translate
Request object arguments
inputTextString
You can pass a string of any length you want to translate as inputText property. Please keep in mind that we are currently not providing HTML support. But we are working on this feature.
targetLanguageCodeString
Please provide any of our supported language codes. Please keep in mind that not all combinations (language pairs) are currently supported.
Response object arguments
translationString
A string containing the translated text.
sourceLanguageCodeString
We detect the source language automatically and provide you the detected language code in this property.
  • Arabic = ar
  • Chinese = zh
  • Danish = da
  • German = de
  • English = en
  • Finnish = fi
  • French = fr
  • Hebrew = he
  • Indonesian = id
  • Italian = it
  • Japanese = ja
  • Korean = ko
  • Dutch = nl
  • Polish = pl
  • Portuguese = pt
  • Russian = ru
  • Swedish = sv
  • Spanish = es
  • trad. Chinese = zh-TW
  • Czech = cs
  • Turkish = tr
Example request
curl -X POST \
https://api.translated.io/translate \
-H 'Authorization: Bearer hfCNDlFuQTK3u4SBdBZy' \
-H 'Content-Type: application/json' \
-d '{
"inputText": "Wikipedia is a free online encyclopedia, created and edited by volunteers around the world and hosted by the Wikimedia Foundation.",
"targetLanguageCode": "es"
}'
Example response 200 OK
{
"translation": "Wikipedia es una enciclopedia gratuita en línea, creada y editada por voluntarios de todo el mundo y alojada por la Fundación Wikimedia.",
"sourceLanguageCode": "en"
}