[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

🎈Request

Headers

KeyTypeNotesDescription
app-idStringRequiredApplication ID that generated from Application Menu in Verihubs Client Dashboard.
To hit in Testing and Live mode you need a Production Application ID.
api-keyStringRequiredAPI-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

ParameterTypeDescriptionExample
imagefile
  • Kartu Keluarga image file
  • File Type JPEG, JPG, PNG or PDF
  • Max File size: 10MB
  • image is required

🎈Responses

Response Code

CodeDescription
200Successful Response
400Bad Request
401Unauthorized
500Internal Server Error

Response Parameters

KeyTypeDescription
messagestringMessage that describe the overall response.
dataobjectShows the extraction result
data.idstringUsed as the identity of the extraction result.
data.reference_idstringThe identity of the extraction result which want to be pulled
data.result_datastringDescribes the detail extracted from Kartu Keluarga.

family_members
kartu_keluarga
data.result_data.family_membersstringDescribes 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_keluargastringDescription 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 CodeErrror codeError MessageDescription
400OCR_40001There's a problem with your JSON payloadNo value in payload / incorrect payload / missing payload image / invalid image extension / image size exceeds maximum
400OCR_40004You don't have enough quota, please contact our adminInsufficient quota (applicable in testing mode only)
500OCR_50000There's a problem from our system.Internal server error

Sample Responses

Response CodeResponseDescription
200
{
    "message": "Success Extract Data",
    "data": {
        "id": "e29629c0-1884-4703-9c31-2ef5faaf3057",
        "reference_id": "e35bc239-cfb4-4535-984d-f8d68be5ea35",
        "result_data": {
            "family_members": [
                {
                    "agama": "ISLAM",
                    "ayah": "SUPARLAN, S.PD",
                    "ibu": "ARISAH, S.PD",
                    "jenis_kelamin": "LAKI-LAKI",
                    "jenis_pekerjaan": "KARYAWAN SWASTA",
                    "kewarganegaraan": "WNI",
                    "nama_lengkap": "ERI KURNIAWAN, ST",
                    "nik": "3303062705840001",
                    "no_kitas_kitap": "N/A",
                    "no_paspor": "N/A",
                    "pendidikan": "DIPLOMA IV/STRATA I",
                    "status_hubungan_dalam_keluarga": "KEPALA KELUARGA",
                    "status_pernikahan": "KAWIN",
                    "tanggal_lahir": "27-06-1984",
                    "tempat_lahir": "PURBALINGGA"
                },
                {
                    "agama": "ISLAM",
                    "ayah": "H. JAMBURI",
                    "ibu": "HJ.ENDANG TUTI KASWATI, SE",
                    "jenis_kelamin": "PEREMPUAN",
                    "jenis_pekerjaan": "DOKTER",
                    "kewarganegaraan": "WNI",
                    "nama_lengkap": "DRG. NIKEN WULANSARI",
                    "nik": "3404085304840001",
                    "no_kitas_kitap": "N/A",
                    "no_paspor": "N/A",
                    "pendidikan": "DIPLOMA IV/STRATA I",
                    "status_hubungan_dalam_keluarga": "ISTRI",
                    "status_pernikahan": "KAWIN",
                    "tanggal_lahir": "13-04-1984",
                    "tempat_lahir": "BANTUL"
                },
                {
                    "agama": "ISLAM",
                    "ayah": "ERI KURNIAWAN, ST",
                    "ibu": "DRG. NIKEN WULANSARI",
                    "jenis_kelamin": "LAKI-LAKI",
                    "jenis_pekerjaan": "BELUM/TIDAK BEKERJA",
                    "kewarganegaraan": "WNI",
                    "nama_lengkap": "DASTAN FAWWAZ KURNIAWAN",
                    "nik": "3404081204110005",
                    "no_kitas_kitap": "N/A",
                    "no_paspor": "N/A",
                    "pendidikan": "TIDAK/BLM SEKOLAH",
                    "status_hubungan_dalam_keluarga": "ANAK",
                    "status_pernikahan": "BELUM KAWIN",
                    "tanggal_lahir": "12-04-2011",
                    "tempat_lahir": "YOGYAKARTA"
                }
            ],
            "kartu_keluarga": {
                "alamat": "TEGALSARI, DAWUKAN",
                "desa_kelurahan": "SENDANGTIRTO",
                "kabupaten_kota": "SLEMAN",
                "kecamatan": "BERBAH",
                "kode_pos": "55573",
                "nama_kepala_keluarga": "ERI KURNIAWAN, ST",
                "nomor_kk": "3404080111110002",
                "provinsi": "DAERAH ISTIMEWA YOGYAKARTA",
                "rt_rw": "006/005",
                "tanggal_dikeluarkan": "18-11-2011"
            }
        }
    }
}
Request data parameter is valid.
400
{
    "message": "There's a problem with your JSON payload",
    "error_code": "OCR_40001",
    "error_fields": [
        {
            "field": "image",
            "message": "there is a problem with the image provided"
        }
    ]
}
Invalid Payload.
400
{
    "message": "You don't have enough quota, please contact our admin",
    "error_code": "OCR_40004"
}
The transaction is in Testing mode and not enough remaining quota.

Please contact Verihubs Customer Support.
401
{
    "message": "Authorization failed"
}
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
{
    "message": "Internal server error",
    "error_code": "OCR_50000"
}
Internal server error.

Did this page help you?