Extract structured data from KTP, NPWP, SIM in seconds.
Developer-friendly. Self-serve. Affordable.
Three simple steps to extract structured data from any supported document.
Send a photo or scan of KTP, NPWP, SIM, or KK via our REST API endpoint.
Our OCR engine detects document type, extracts text, and structures the data automatically.
Receive clean, structured JSON with all extracted fields โ ready to use in your app.
Extract structured data from all major Indonesian identity documents.
Kartu Tanda Penduduk
14 fields extractedNomor Pokok Wajib Pajak
8 fields extractedSurat Izin Mengemudi
10 fields extractedKartu Keluarga
8+ fields extractedUpload a document image and see the API response in real-time.
Everything you need to integrate the OCR API into your application.
https://ocr-proxy-eta.vercel.appX-API-Key: YOUR_API_KEY (header) or ?key=YOUR_API_KEY (query)
Get your free key below
/api/ocr?type={document_type}
Extract structured data from an Indonesian document image.
type
string
yes
Document type: ktp, npwp, sim, kk
X-API-Key
{api_key}
yes
Your API key
Content-Type
multipart/form-data
yes
File upload
image
file
yes
Document image (JPG, PNG). Max 10MB.
{
"status": "success",
"document_type": "ktp",
"data": {
"nik": "3201234567890001",
"nama": "JOHN DOE",
"tempat_lahir": "JAKARTA",
"tanggal_lahir": "1990-05-15",
"jenis_kelamin": "LAKI-LAKI",
"alamat": "JL. MERDEKA NO. 10",
"rt_rw": "001/002",
"kelurahan": "GAMBIR",
"kecamatan": "GAMBIR",
"agama": "ISLAM",
"status_perkawinan": "BELUM KAWIN",
"pekerjaan": "KARYAWAN SWASTA",
"kewarganegaraan": "WNI",
"berlaku_hingga": "SEUMUR HIDUP"
},
"confidence": 0.97,
"processing_time_ms": 1240
}
status
string
"success" or "error"
document_type
string
Detected document type
data
object
Extracted fields (varies by document type)
confidence
number
OCR confidence score (0-1)
processing_time_ms
number
Processing time in milliseconds
// 401 โ Unauthorized
{ "error": "Invalid API key" }
// 429 โ Rate Limited
{ "error": "Daily limit reached (6/6). Upgrade your plan." }
// 400 โ Bad Request
{ "error": "No image file provided" }
Get a free API key for 6 requests/day. No credit card required.
X-API-Key: your_key?key=your_keyStart free. Pay only when you need more.
No monthly commitment. Pay only for what you use. All features included.