Hirak Translation API
Overview
Hirak Translation API provides text translation between 21 widely-used languages with high accuracy and no request limits. It is straightforward to use with a simple POST request containing the source text, source language, and target language. The unlimited request policy makes it ideal for prototyping and small production projects.
Beginner Tip
Specify both the source and target language using ISO 639-1 two-letter codes (e.g., "en" for English, "fr" for French) — if you leave the source language blank, the API will attempt auto-detection.
Available Data
Example Response
{
"translatedText": "Bonjour le monde",
"detectedSourceLanguage": "en",
"targetLanguage": "fr"
} Field Reference
translation The translated text in the target language source ISO 639-1 code of the source language used (or auto-detected) for translation target ISO 639-1 code of the target language the text was translated into characters Number of characters in the input text that were translated Implementation Example
const url = "https://translate.hirak.site/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Related Tags
Alternatives to Hirak Translation
Technical alternatives for different use cases.
Free translation with multiple language support
Data privacy (LibreTranslate can be self-hosted)
Free translation without self-hosting complexity
Similar APIs
View All →Aylien Text Analysis
Aylien Text Analysis provides programmatic access to a collection of information retrieval and natural language apis via REST API.
Cloudmersive Natural Language Processing
Cloudmersive NLP API provides a broad set of text analysis tools including sentiment analysis, entity extraction, language detection, and profanity filtering.
Detect Language
⭐ Beginner's PickDetect Language API accurately identifies the language of any text, supporting over 164 languages and returning ISO language codes.
ELI
ELI is a Natural Language Processing API specifically designed for the Thai language, offering tools like word segmentation, part-of-speech tagging, and named entity recognition.
Google Cloud Natural
Google Cloud Natural Language API provides powerful NLP features including sentiment analysis, entity recognition, content classification, and syntax analysis, all backed by Google's machine learning models.