GET
/
v1
/
translate
curl --request GET \
  --url https://api.mzrdev.xyz/v1/translate \
  --header 'Authorization: <api-key>'
{

    "success": true,

    "data": {

        "messageInfo": {

            "sourceText": "Hello! How are yu",

            "correctedText": "Hello! How are you",

            "translatedText": "Merhaba! NasΔ±lsΔ±n",

            "sourceLanguage": "en",

            "targetLanguage": "tr",

            "detectedLanguage": "auto-detect"

        },

        "processInfo": {

            "requestTime": "2024-08-04T20:38:36.006Z",

            "requestTimestamp": 1722803916006,

            "processingTime": "365ms"

        }

    }

}

Query Parameters

message
string
required

Specifies the text to be translated.

Default: null

to
string
required

Specifies the target language code for translation.

Default: null

autoCorrect
boolean

Enables or disables automatic correction of the input text.

Default: false

Response

success
boolean

Indicates whether the request was successful. A value of true means the request was successful, while false indicates an issue or failure.

data
object

Contains the data related to the translation, including the original text, corrected text, translated text, source language, target language, and processing information.

Response