Skip to content
Bitaloka Docs
KK parser

KK parser

Parse a Kartu Keluarga (family card) number into its structure.

Request

GET https://api.bitaloka.io/v1/kk/{kk}
Path parameter→ application/json

Parameters

NameTypeDescription
kkrequired text 16-digit Kartu Keluarga number.Example: 3171010101200001

Code samples

Generated from one source and tested against the live API.

curl -sS "https://api.bitaloka.io/v1/kk/3171010101200001" \
  -H "X-API-Key: $BITALOKA_API_KEY" \
  --fail-with-body

Uses: curl 7.x+ · example.sh

Response

Real response from the live API for the example request.

200 OK · application/json
{
  "valid": true,
  "input": "3171010101200001",
  "normalized": "3171010101200001",
  "region": {
    "province": {
      "code": "31",
      "name": "Daerah Khusus Ibukota Jakarta"
    },
    "regency": {
      "code": "3171",
      "name": "Kota Administrasi Jakarta Pusat"
    },
    "district": {
      "code": "317101",
      "name": "Gambir"
    }
  },
  "serial": "0101200001",
  "summary": "Gambir, Kota Administrasi Jakarta Pusat, Daerah Khusus Ibukota Jakarta",
  "errors": [],
  "warnings": []
}

Use from an AI agent

On the Bitaloka MCP server this service is the parse_kk tool. MCP server →

Related services