Free Endpoint
Simulate the DeepL iOS client to initiate translation requests. Unlimited, but frequent requests within a certain period of time will result in a 429 error.
/translate
Method: POST
Request Headers
Header | Description | Value |
---|---|---|
Content-Type | The content type of the request body. | application/json |
Authorization | The access token to protect your API. | Bearer your_access_token |
Please note that if you are unable to pass Authorization
, you can also use URL Params instead. For example, /translate?token=your_access_token
Request Parameters
Parameter | Type | Description | Required |
---|---|---|---|
text | string | The text you want to translate. | true |
source_lang | string | The language code of the source text. | true |
target_lang | string | The language code you want to translate to. | true |
Response
json
{
"alternatives": [
"Did you hear about this?",
"You've heard about this?",
"You've heard of this?"
],
"code": 200,
"data": "Have you heard about this?",
"id": 8356681003,
"method": "Free",
"source_lang": "ZH",
"target_lang": "EN"
}