# Google Translate Integration via LowCodeAPI
## Overview
Google Translate API provides programmatic access to Google's translation service. Translate text between languages, detect language, and get supported language list.
## Base Endpoint
```
https://api.lowcodeapi.com/googletranslate/
```
## Authentication
LowCodeAPI handles authentication automatically using OAuth2.0 credentials.
**Auth Type**: OAuth2.0
## Common Endpoints
### Category: Translations
#### Translate Text
**Method**: `POST` | **LowCodeAPI Path**: `/language/translate/v2`
**Full URL**:
```
https://api.lowcodeapi.com/googletranslate/language/translate/v2?api_token={api_token}
```
**Description**: Translates input text from one language to another
**Query Parameters**:
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `api_token` | string | Yes | Your LowCodeAPI authentication token |
**Body Parameters**:
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `q` | string | Yes | Text to translate |
| `source` | string | No | Source language (auto-detected if not specified) |
| `target` | string | Yes | Target language code |
| `format` | string | No | Format of text (text, html) |
**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/googletranslate/language/translate/v2?api_token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"q": "Hello, world!",
"source": "en",
"target": "es",
"format": "text"
}'
```
---
#### Detect Language
**Method**: `POST` | **LowCodeAPI Path**: `/language/translate/v2/detect`
**Full URL**:
```
https://api.lowcodeapi.com/googletranslate/language/translate/v2/detect?api_token={api_token}
```
**Description**: Detects the language of given text
**Query Parameters**:
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `api_token` | string | Yes | Your LowCodeAPI authentication token |
**Body Parameters**:
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `q` | string | Yes | Text to detect language for |
**Example Request**:
```bash
curl -X POST "https://api.lowcodeapi.com/googletranslate/language/translate/v2/detect?api_token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"q": "Bonjour le monde"}'
```
---
## Usage Examples
### Example 1: Translation Workflow
```bash
# Step 1: Detect language of unknown text
# No ID required - detects language automatically
curl -X POST "https://api.lowcodeapi.com/googletranslate/language/translate/v2/detect?api_token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"q": "Dieser Text ist auf Deutsch"}'
# Step 2: Translate detected text
# No ID required - performs translation
curl -X POST "https://api.lowcodeapi.com/googletranslate/language/translate/v2?api_token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"q": "Dieser Text ist auf Deutsch",
"source": "de",
"target": "en"
}'
# Step 3: Auto-detect and translate in one request
# No ID required - auto-detects and translates
curl -X POST "https://api.lowcodeapi.com/googletranslate/language/translate/v2?api_token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"q": "Este texto está en español",
"target": "en"
}'
```
## Complete Endpoint Reference
- **Official Documentation**: [https://developers.google.com/translate](https://developers.google.com/translate)