[ID] Kartu Keluarga
The purpose of OCR is to extract information from Kartu Keluarga (KK) documents. The result will
be in “text” format. All the data inside the document will be extracted.
🎈Endpoint
| Method | Endpoint |
|---|---|
| POST | https://api.verihubs.com/v2/ocr/kk |
🎈Request
Headers
| Key | Type | Notes | Description |
|---|---|---|---|
| app-id | String | Required | Application ID that generated from Application Menu in Verihubs Client Dashboard. To hit in Testing and Live mode you need a Production Application ID. |
| api-key | String | Required | API-Key that generated from Application Menu in Verihubs Client Dashboard that related to specific Application ID. |
You can generate your Application ID and API-Key in the Application page in Verihubs Client Dashboard..
Body Parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
image | file |
| ![]() |
🎈Responses
Response Code
| Code | Description |
|---|---|
| 200 | Successful Response |
| 400 | Bad Request |
| 401 | Unauthorized |
| 500 | Internal Server Error |
Response Parameters
| Key | Type | Description |
|---|---|---|
| message | string | Message that describe the overall response. |
| data | object | Shows the extraction result |
| data.id | string | Used as the identity of the extraction result. |
| data.reference_id | string | The identity of the extraction result which want to be pulled |
| data.result_data | string | Describes the detail extracted from Kartu Keluarga. family_members kartu_keluarga |
| data.result_data.family_members | string | Describes the detail extracted from Table Kartu Keluarga. agama ayah ibu jenis_kelamin jenis_pekerjaan kewarganegaraan nama_lengkap nik no_kitas_kitap no_paspor pendidikan status_hubungan_dalam_keluarga status_pernikahan tanggal_lahir tempat_lahir |
| data.result_data.kartu_keluarga | string | Description of details extracted from information located outside the table on the Kartu Keluarga. alamat desa_kelurahan kabupaten_kota kecamatan kode_pos nama_kepala_keluarga nomor_kk provinsi rt_rw tanggal_dikeluarkan |
Error Code
| Response Code | Errror code | Error Message | Description |
|---|---|---|---|
| 400 | OCR_40001 | There's a problem with your JSON payload | No value in payload / incorrect payload / missing payload image / invalid image extension / image size exceeds maximum |
| 400 | OCR_40004 | You don't have enough quota, please contact our admin | Insufficient quota (applicable in testing mode only) |
| 500 | OCR_50000 | There's a problem from our system. | Internal server error |
Sample Responses
| Response Code | Response | Description |
|---|---|---|
| 200 | | Request data parameter is valid. |
| 400 | | Invalid Payload. |
| 400 | | The transaction is in Testing mode and not enough remaining quota. Please contact Verihubs Customer Support. |
| 401 | | Authorization Failed. Transaction that unauthorized due to Application ID or API-Key issue. To hit in Testing and Live mode you need a Production Application ID and API-Key. |
| 500 | | Internal server error. |
Updated 2 days ago
Did this page help you?

