The Translation API uses Bearer Auth to authenticate users.
Use Login
endpoint with your Translate.com credentials to get an access token.
Determine acces token. Access token has 1 year life time duration
Your credentials - email and password
email required | string <email> |
password required | string Password |
{- "email": "Valid email address",
- "password": "string"
}
{- "meta": {
- "status": 200,
- "success": true
}, - "data": {
- "token": "string"
}
}
Translation data to perform machine translation
text required | string A text needed to translate |
source_language required | string The original language of the source text |
translation_language required | string The language to be translated |
{- "text": "Some text to translate",
- "source_language": "en",
- "translation_language": "fr"
}
{- "meta": {
- "status": 200,
- "success": true
}, - "data": {
- "text": "Some text to translate",
- "translation": "Du texte à traduire",
- "source_language": "en",
- "translation_language": "fr"
}
}
Translation data to create human translation
text | string A source text |
source_language | string The language of the source text |
translation_language | array Translation Language |
object (CompletionAction) Describe how translation should be delivered to the user |
{- "text": "Some text to translate",
- "source_language": "en",
- "translation_language": [
- "fr"
],
}
{- "meta": {
- "status": 200,
- "success": true
}, - "data": {
- "id": "string",
- "payment_details": {
- "order_words": 0,
- "words_remaining_after_order": 0
}
}
}