SIM OCR
Read Indonesian driver's license (SIM) data automatically.
Base URL
https://use.api.co.id
Send a SIM photo to POST /ocr/sim-extract as multipart/form-data (field file) with the x-api-co-id header. The response contains the SIM number, name, birth data, address fields, and validity dates.
File format & limits
| Requirement | Value |
|---|---|
| Formats | JPG, JPEG, PNG |
| Maximum size | 5 MB |
| Content | Clear SIM photo |
| SIM types | Modern full SIM and simple 6-line SIM |
Example request
curl -X POST "https://use.api.co.id/ocr/sim-extract" \
-H "x-api-co-id: YOUR_API_KEY" \
-F "file=@/path/to/sim.jpg"
Extract SIM from Image
POST/ocr/sim-extract
Extract structured SIM data from an uploaded image file. Maximum file size: 5 MB. Supported formats: JPG, JPEG, PNG. Supports both modern full SIM and simple 6-line SIM formats.
Body (multipart/form-data)
| Name | Type | Description |
|---|---|---|
fileRequired | file | SIM image file. Maximum size: 5 MB. Supported formats: JPG, JPEG, PNG |
Response fields
| Name | Type | Description |
|---|---|---|
is_successOptional | boolean | Example: true |
messageOptional | string | Example: Success |
dataOptional | object | |
data.nomor_simOptional | string | SIM number Example: 1234567890123456 |
data.namaOptional | string | Full name Example: JOHN DOE |
data.tempat_lahirOptional | string | Birth place Example: JAKARTA |
data.tanggal_lahirOptional | string | Birth date (DD-MM-YYYY) Example: 01-01-1990 |
data.jenis_kelaminOptional | string | Gender (LAKI-LAKI/PEREMPUAN) Example: LAKI-LAKI |
data.golongan_darahOptional | string | Blood type Example: O |
data.alamatOptional | string | Address Example: JL. MERDEKA NO. 123 |
data.rtOptional | string | RT (neighborhood unit) Example: 001 |
data.rwOptional | string | RW (community unit) Example: 002 |
data.kelurahanOptional | string | Village/Kelurahan Example: GAMBIR |
data.kecamatanOptional | string | Subdistrict/Kecamatan Example: GAMBIR |
data.kotaOptional | string | City Example: JAKARTA PUSAT |
data.provinsiOptional | string | Province Example: DKI JAKARTA |
data.tinggi_badanOptional | string | Height in centimeters Example: 170 |
data.jenis_simOptional | string | SIM type (A, C, B1, B2, etc.) Example: A |
data.pekerjaanOptional | string | Occupation Example: KARYAWAN SWASTA |
data.tempat_pembuatanOptional | string | Place of issue Example: POLRES JAKARTA PUSAT |
data.tanggal_terbitOptional | string | Issue date (DD-MM-YYYY) Example: 01-01-2020 |
data.tanggal_berlakuOptional | string | Expiry date (DD-MM-YYYY) Example: 01-01-2025 |
Request
curl -X POST "https://use.api.co.id/ocr/sim-extract" \ -H "x-api-co-id: $API_CO_ID_KEY" \ -F "[email protected]"Response
{ "is_success": true, "message": "Success", "data": { "nomor_sim": "1234567890123456", "nama": "JOHN DOE", "tempat_lahir": "JAKARTA", "tanggal_lahir": "01-01-1990", "jenis_kelamin": "LAKI-LAKI", "golongan_darah": "O", "alamat": "JL. MERDEKA NO. 123", "rt": "001", "rw": "002", "kelurahan": "GAMBIR", "kecamatan": "GAMBIR", "kota": "JAKARTA PUSAT", "provinsi": "DKI JAKARTA", "tinggi_badan": "170", "jenis_sim": "A", "pekerjaan": "KARYAWAN SWASTA", "tempat_pembuatan": "POLRES JAKARTA PUSAT", "tanggal_terbit": "01-01-2020", "tanggal_berlaku": "01-01-2025" }}Was this page helpful?