> For the complete documentation index, see [llms.txt](https://docs.vntranslator.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vntranslator.com/advanced/api-gateway/translate.md).

# Translate

### GET  /translate/?text=Hello World

**Parameters**

* text (string) <mark style="background-color:blue;">required</mark>&#x20;

**Example response**

```json
{ translated : 'Halo Dunia', ... }
```

***

### POST  /translate

**Parameters**

* text (string) <mark style="background-color:blue;">required</mark>&#x20;

**Example response**

```json
{ translated : 'Halo Dunia', ... }
```

***

## Custom Parameters

* **Source Text**
* **Response Content-Type**
* **Response Body**

```
Content-Type: application/json;
Body: {"id":"$ID", "text":"$SOURCE_TEXT", "translated":"$TRANSLATED_TEXT"}
-----
Content-Type: text/html;
Body: $ID<hr/>$SOURCE_TEXT<hr/>$TRANSLATED_TEXT
-----
Content-Type: text/plain;
Body: $TRANSLATED_TEXT
```

***

### GET  /translate/custom/?:source\_text=Hello World

**Parameters**

* source\_text (string) <mark style="background-color:blue;">required</mark>&#x20;

**Example response**

```html
Halo Dunia 
```

***

### POST  /translate/custom

**Parameters**

* source\_text (string) <mark style="background-color:blue;">required</mark>&#x20;

**Example response**&#x20;

```html
Halo Dunia 
```
