Pro Endpoint
Simulate the DeepL Pro account to initiate translation requests. Unlimited, which may effectively avoid 429 issues, but you need to provide the dl_session
parameter of the Pro account, otherwise it cannot be used.
/v1/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": "Pro",
"source_lang": "ZH",
"target_lang": "EN"
}