Skip to content
Bitaloka Docs
STNK parser

STNK parser

Parse a vehicle plate (STNK) into region and registration data.

Request

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

Parameters

NameTypeDescription
platerequired text Vehicle plate, spaces optional (B 1234 XYZ).Example: B1234XYZ

Code samples

Generated from one source and tested against the live API.

curl -sS "https://api.bitaloka.io/v1/plate/B1234XYZ" \
  -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": "B1234XYZ",
  "normalized": "B1234XYZ",
  "prefix": "B",
  "number": "1234",
  "suffix": "XYZ",
  "region": {
    "code": "B",
    "name": "DKI Jakarta",
    "area": "Jakarta dan sekitarnya (Depok, Tangerang, Bekasi)"
  },
  "vehicle": {
    "code": "PASSENGER_CAR",
    "label": "Mobil penumpang (pribadi)"
  },
  "suffixDetail": {
    "areaCode": "X",
    "classCode": "Y",
    "serialCode": "Z"
  },
  "summary": "DKI Jakarta, Jakarta dan sekitarnya (Depok, Tangerang, Bekasi), Mobil penumpang (pribadi)",
  "errors": [],
  "warnings": [
    {
      "code": "STNK_VALIDITY_NOT_ENCODED",
      "message": "STNK validity month/year is printed directly on the plate; suffix letters are not a reliable source for it."
    }
  ]
}

Use from an AI agent

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

Related services