Annotation
Translate page spatial data
Get translation for all lines on a page, including position coordinates. Source language of the page can be either specified by a user or automatically detected by the service. Translated text of a page in a particular language is cached for 60 days.
Requirements:
- Document translations feature must be enabled for the organization
- User must have translate permissions
- Page must have OCR data available
Supported languages:
| Key | Description |
|---|---|
| af | Afrikaans |
| sq | Albanian |
| am | Amharic |
| ar | Arabic |
| hy | Armenian |
| az | Azerbaijani |
| bn | Bengali |
| bs | Bosnian |
| bg | Bulgarian |
| ca | Catalan |
| zh | Chinese (Simplified) |
| zh-TW | Chinese (Traditional) |
| hr | Croatian |
| cs | Czech |
| da | Danish |
| fa-AF | Dari |
| nl | Dutch |
| en | English |
| et | Estonian |
| fa | Farsi (Persian) |
| tl | Filipino, Tagalog |
| fi | Finnish |
| fr | French |
| fr-CA | French (Canada) |
| ka | Georgian |
| de | German |
| el | Greek |
| gu | Gujarati |
| ht | Haitian Creole |
| ha | Hausa |
| he | Hebrew |
| hi | Hindi |
| hu | Hungarian |
| is | Icelandic |
| id | Indonesian |
| ga | Irish |
| it | Italian |
| ja | Japanese |
| kn | Kannada |
| kk | Kazakh |
| ko | Korean |
| lv | Latvian |
| lt | Lithuanian |
| mk | Macedonian |
| ms | Malay |
| ml | Malayalam |
| mt | Maltese |
| mr | Marathi |
| mn | Mongolian |
| no | Norwegian (Bokmål) |
| ps | Pashto |
| pl | Polish |
| pt | Portuguese (Brazil) |
| pt-PT | Portuguese (Portugal) |
| pa | Punjabi |
| ro | Romanian |
| ru | Russian |
| sr | Serbian |
| si | Sinhala |
| sk | Slovak |
| sl | Slovenian |
| so | Somali |
| es | Spanish |
| es-MX | Spanish (Mexico) |
| sw | Swahili |
| sv | Swedish |
| ta | Tamil |
| te | Telugu |
| th | Thai |
| tr | Turkish |
| uk | Ukrainian |
| ur | Urdu |
| uz | Uzbek |
| vi | Vietnamese |
| cy | Welsh |
post/api/v1/annotations/{annotationID}/page_data/translate
Path parameters
annotationIDinteger required
Annotation ID
Request body
Example request
{
"page_numbers": [
1
],
"target_language": "es",
"source_language": "auto",
"granularity": "lines"
}Response
Translation completed successfully (or retrieved from cache)
Example response
{
"results": [
{
"page_number": 1,
"granularity": "lines",
"source_language": "en",
"items": [
{
"text": "Factura",
"position": [
100,
50,
150,
20
]
}
]
}
]
}Changes
No recorded changes to this endpoint across all 1 revision of this API.