DocsOCR STNK API

OCR STNK API

Extract vehicle identity (registration number, brand, model, engine details, chassis number) from Indonesian Vehicle Registration Certificates (STNK).

POSThttp://178.105.157.85:3000/api/ocr?type=STNK

Request Example

cURL
curl -X POST \
  "http://178.105.157.85:3000/api/ocr?type=STNK" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: multipart/form-data" \
  -F "image=@/path/to/document.jpg"

Authentication Header

Authorization: Bearer YOUR_API_KEY

Generate an API key from your Dashboard → API Keys panel. For testing server/sandbox local environments, key verification is bypassed.

Parameters

NameTypeRequiredDescription
imageFileYesSTNK card/sheet image file (JPG, PNG)
enhanceBooleanNoEnable high-contrast document filtering

Headers

NameTypeRequiredDescription
AuthorizationStringYesBearer YOUR_API_KEY (Optional for local sandbox)
Content-TypeStringYesmultipart/form-data

Response Example

JSON
{
  "success": true,
  "data": {
    "nomor_registrasi": "B 1234 ABC",
    "nama_pemilik": "BUDI SETIAWAN",
    "alamat": "JL. AMAN NO. 2",
    "merk": "TOYOTA",
    "tipe": "AVANZA",
    "jenis": "MINIBUS",
    "model": "PASSENGER",
    "tahun_pembuatan": "2022",
    "isi_silinder": "1496 CC",
    "nomor_rangka": "MHF11BK28JK12938",
    "nomor_mesin": "2NR-FE12384",
    "warna": "HITAM METALIK",
    "bahan_bakar": "BENSIN",
    "warna_tnkb": "HITAM",
    "tahun_registrasi": "2022",
    "nomor_bpkb": "L-091238",
    "kode_lokasi": "3171",
    "berlaku_sampai": "25-06-2027"
  },
  "confidence": 94.12,
  "processing_time": 0.52
}

Rate Limit

Depending on your plan. Check your dashboard for current limits.