Machine Translation (Direct Text Translation)
- This API translates text from one language to another language.
- Note: The input text does not support:
- Mathematical symbols
- Nested punctuations
- Script tags
- Characters used for SQL injection and cross-site scripting
- Note: The input text does not support:
Header Parameters
Content-Type string
The content type should be application/json
Example: application/json
x-client string
Specifies the client name
Example: jiocoupons
Authorization string required
API key for authorization
application/json
Request Body
- The source language of the text.
- Supported languages: [ "English", "Hindi", "Gujarati", "Marathi", "Telugu", "Bengali", "Kannada", "Malayalam", "Tamil", "Spanish", "German", "Italian", "French", "Urdu", "Punjabi", "Assamese", "Oriya", "Standard Arabic", "Traditional Chinese", "Bahasa", "Dutch", "Korean", "Malay", "Polish", "Portuguese", "Russian", "Simplified Chinese", "Tagalog", "Thai", "Turkish", "Vietnamese" ]
- The target language to translate the text into.
- Supported languages: [ "English", "Hindi", "Gujarati", "Marathi", "Telugu", "Bengali", "Kannada", "Malayalam", "Tamil", "Spanish", "German", "Italian", "French", "Urdu", "Punjabi", "Assamese", "Oriya", "Standard Arabic", "Traditional Chinese", "Bahasa", "Dutch", "Korean", "Malay", "Polish", "Portuguese", "Russian", "Simplified Chinese", "Tagalog", "Thai", "Turkish", "Vietnamese" ]
q string required
The text to translate.
platform string
Possible values: [jiotranslate
, google
, azure
]
Platform used for translation
source_language string
target_language string
Responses
- 200
- 400
- 401
- 422
Success
application/json
Schema
Example (from schema)
Example
Schema
status string
String representing whether the translation is done or not
translatedText string
The translated text.
{
"status": "string",
"translatedText": "string"
}
{
"status": "success",
"translatedText": "హాయ్"
}
Bad Request
application/json
Schema
Example (from schema)
Example
Schema
status string
Status of the API
message string
The error message of the API
{
"status": "string",
"message": "string"
}
{
"status": "failed",
"message": "Bad Request"
}
Unauthorized
application/json
Schema
Example (from schema)
Example
Schema
status string
Status of the API
message string
The error message of the API
{
"status": "string",
"message": "string"
}
{
"status": "Unauthorized"
}
Unprocessable Entity
application/json
Schema
Example (from schema)
Example
Schema
customCode number
Status of the API
message string
The error message of the API
errorsArray Array
The errors array which includes objects with a "property" and "message" properties describing the error
{
"customCode": 0,
"message": "string"
}
{
"customCode": 422,
"message": "Validation Error",
"errorsArray": []
}
Loading...