- Print
- PDF
web translation
- Print
- PDF
The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.
Available in Classic and VPC
Translate all or specific areas of the HTML document that makes up a website into another language.
Please note the following before use:
- Text with images cannot be translated.
- Some styles applied to text may not match or may be omitted.
- Some links or actions applied to the text may not work or may be omitted.
- HTML parameter size limit exists: 200,000 bytes including all characters including UTF-8-based tags, spaces, etc.
- Larger HTML parameter sizes result in slower responses, so we recommend requesting element in the translation area.
- Recommended maximum characters per call: 60,000 characters
- Recommended maximum characters per minute: 3,600,000 characters
- Billing: All characters counted, including tags and spaces.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
POST | /translate |
Request headers
For information about the headers common to all Papago Translation APIs, see Common Papago Translation headers.
Request body
You can include the following data in the body of your request:
Field | Type | Required | Description |
---|---|---|---|
source | String | Required | Language code of the source text (source)
|
target | String | Required | Language code of the target text
|
html | String | Required | Element of the entire HTML document or specific areas to translate
|
Even without specifying the source language (specified to auto
), it automatically detects the language and provides a translation result. In this case, additional fees do not incur for detecting languages but only for the number of characters requested for translation.
Languages supported for translation
The following describes the supported languages for translation.
Source language | Translation direction | Languages supported (compatible) for translation |
---|---|---|
ko (Korean) | ⇔ | en (English), ja (Japanese), zh-CN (Chinese (Simplified)) |
Request example
The request example is as follows:
When the entire HTML document is translated
The following is a sample request for translating an entire HTML document.
When the element in a specific area are translated
The following is a sample request for translating an element in a specific area.
Response
This section describes the response format.
Response body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
status_code | Integer | Response status | |
data | String | - | Element in the entire translated HTML document or in a specific area |
Response status codes
For information about the HTTP status codes common to all Papago Translation APIs, see Common Papago Translation response status codes.
Response example
The response example is as follows:
When the entire HTML document is translated
The following is a sample response for translating an entire HTML document.
When the element in a specific area are translated
The following is a sample response for translating an element in a specific area.