Overview
Hirak OCR converts images containing text into machine-readable strings, supporting over 100 languages with high accuracy. It accepts image URLs or base64-encoded images and returns the extracted text in JSON format. The API allows unlimited requests, making it practical for batch processing or high-volume workflows.
Beginner Tip
You can submit either a public image URL or a base64-encoded image string — using a URL is simpler for testing since you just need a publicly accessible link to an image file.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from Hirak OCR",
"description": "Image to text -text recognition- from image more than 100 language, accurate, unlimited requests",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
text The full text extracted from the image as a single string confidence OCR confidence score indicating how certain the extraction is (0 to 100) language Language code used during OCR processing, matching the lang parameter you specified Implementation Example
const url = "https://ocr.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
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.