Overview
Our Translation API provides real-time translation between 100+ languages. Use this API to integrate translation functionality into your applications with our fast, secure, and private translation service.
Authentication
All requests require an API_KEY
in the header:
Authorization: Bearer YOUR_API_KEY
Get your API key from contact@translate.html
Endpoints
1. Translate Text
POST /api/translate
{
"text": "Hello World",
"source_language": "en",
"target_language": "es"
}
Parameter | Description |
---|---|
text |
Text to translate |
source_language |
Source language code |
target_language |
Target language code |
2. Detect Language
POST /api/detect
{
"text": "Bonjour tout le monde"
}
Response:
{
"language": "fr",
"confidence": 0.98
}
Error Codes
Code | Description |
---|---|
400 |
Invalid request parameters |
401 |
Missing or invalid API key |
429 |
Rate limit exceeded |