API

You can either make one call to the service (with a timeout of a few minutes) or launch the translation and poll for the results.

The api url is https://api.digitalpixo.com

Remaining Translations

You can check how much translations are left for your API key.
  • GETapi/get_remaining_credits

  • api_keystringRequired
    Your api key.
fetch("https://api.digitalpixo.com/api/get_remaining_credits?api_key=hi4h2u-jk4nji")
Response:
{
 "remaining_credits": 98
}

One Call Only

This send the document to the server and wait until the translated document is returned. <br />Translation time depends on the document size and server load, but should be in the order of seconds for small documents and possibly a couple minutes for larger documents.

Supported formats: JPG, JPEG, PNG, GIF, TIFF, BMP, PDF, DOCX, PPTX, XLSX, XML, HTML, TXT

Max size: 5 MB
Please note that pictures are always returned as PNG to avoid any loss in quality.
  • POSTdocument/translate

  • api_keystringRequired
    Your api key.
  • filefileRequired
    The file.
  • target_languagestring
    The language to translate to. Defaults to "English".
  • delete_onlybool
    Wether to delete the text only. Especially relevant for images. Defaults to false.
  • editablebool
    Wether to return an editable file format (i.e. docx for pdf). Defaults to false.
  • email_addressesstring
    A list of email addresses (comma separated) to send the translated document to. Defaults to none.
  let formData = new FormData()
  formData.append(api_key: "hi4h2u-jk4nji"),
  formData.append(file: document.getElementById("upload-file").files[0]),
  formData.append(target_language: "German"),
  formData.append(delete_only: true),
  formData.append(editable: true),
  formData.append(email_addresses: "contact@digitalpixo.com,example@gmail.com")
  fetch("https://api.digitalpixo.com/document/translate", {     
        method: "POST",
        body: formData
  })
Response:
A File

Two Steps Call

1. Request translation
This call uploads a document and queues it for translation. The call returns a document ID which can be used to query the translation status and to download the translated document once translation is complete.

Supported formats: JPG, JPEG, PNG, GIF, TIFF, BMP, PDF, DOCX, PPTX, XLSX, XML, HTML, TXT

Max size: 5 MB
  • POSTdocument/request_translation

  • api_keystringRequired
    Your api key.
  • filefileRequired
    The file.
  • target_languagestring
    The language to translate to. Defaults to "English".
  • delete_onlybool
    Wether to delete the text only. Especially relevant for images. Defaults to false.
  • editablebool
    Wether to return an editable file format (i.e. docx for pdf). Defaults to false.
  • email_addressesstring
    A list of email addresses (comma separated) to send the translated document to. Defaults to none.
  let formData = new FormData()
  formData.append(api_key: "hi4h2u-jk4nji"),
  formData.append(file: document.getElementById("upload-file").files[0]),
  formData.append(target_language: "German"),
  formData.append(delete_only: true),
  formData.append(editable: true),
  formData.append(email_addresses: "contact@digitalpixo.com,example@gmail.com")
  fetch("https://api.digitalpixo.com/document/request_translation", {     
        method: "POST",
        body: formData
  })
Response:
{
 "document_id": "saa44-dfs5"
}
2. Get the results
We recommend polling this endpoint, which returns the translated file, once available.
Until then, it returns a json: {status: "in progress"}
Please note that pictures are always returned as PNG to avoid any loss in quality.
  • POSTdocument/get_translation

  • document_idstringRequired
    The document ID returned from Step 1.
fetch("https://api.digitalpixo.com/document/get_translation", {
        headers: {
            "Content-Type": "application/json"
        },
        method: "POST",
        body: JSON.stringify({
            "document_id": "saa44-dfs5"
        })
    })
Response - If the server is still working:
{
 "status": "in progress"
}
Response - If the translation is complete:
A File

Supported Languages

  • Afrikaans (Afrikaans)
  • Albanian (Albanian)
  • Amharic (Amharic)
  • Arabic (عربي)
  • Assamese (Assamese)
  • Azerbaijani (Azerbaijani)
  • Basque (Basque)
  • Belarusian (Belarusian)
  • Bengali (Bengali)
  • Bhojpuri (Bhojpuri)
  • Bosnian (Bosnian)
  • Bulgarian (Bulgarian)
  • Catalan (Catalan)
  • Cebuano (Cebuano)
  • Chinese-Simplified (简体中文)
  • Chinese-Traditional (Chinese-Traditional)
  • Croatian (hrvatski)
  • Czech (čeština)
  • Danish (dansk)
  • Dutch (Nederlands)
  • English (English)
  • Esperanto (Esperanto)
  • Estonian (Estonian)
  • Finnish (suomalainen)
  • French (Français)
  • Galician (Galician)
  • Georgian (Georgian)
  • German (Deutsch)
  • Greek (ελληνικά)
  • Gujarati (ગુજરાતી)
  • Hebrew (עִברִית)
  • Hindi (नहीं)
  • Hungarian (magyar)
  • Icelandic (íslenskur)
  • Indonesian (Indonesia)
  • Irish (Irish)
  • Italian (Italiano)
  • Japanese (日本語)
  • Javanese (Javanese)
  • Kannada (Kannada)
  • Kazakh (Kazakh)
  • Korean (Korean)
  • Kurdish (Kurdish)
  • Lao (Lao)
  • Latin (Latin)
  • Latvian (Latvian)
  • Lithuanian (Lithuanian)
  • Macedonian (Macedonian)
  • Maithili (Maithili)
  • Malay (Malay)
  • Malayalam (Malayalam)
  • Maltese (Maltese)
  • Maori (Maori)
  • Marathi (Marathi)
  • Mongolian (Mongolian)
  • Nepali (Nepali)
  • Norwegian (norsk)
  • Persian (فارسی)
  • Polish (Polski)
  • Romanian (română)
  • Russian (Русский)
  • Sanskrit (Sanskrit)
  • Serbian (Serbian)
  • Slovak (Slovak)
  • Slovenian (Slovenian)
  • Spanish (Español)
  • Swahili (Swahili)
  • Swedish (Swedish)
  • Tajik (Tajik)
  • Tamil (Tamil)
  • Telugu (Telugu)
  • Thai (แบบไทย)
  • Tigrinya (Tigrinya)
  • Turkish (Türkçe)
  • Ukrainian (Ukrainian)
  • Urdu (Urdu)
  • Uyghur (Uyghur)
  • Uzbek (Uzbek)
  • Vietnamese (Vietnamese)
  • Welsh (Welsh)
  • Yiddish (Yiddish)