# Cek NIK — Zapi reference > Decode structural information from a 16-digit Indonesian NIK identifier. **Base URL:** `https://api.zpi.web.id` **Auth:** Send `x-api-key: YOUR_KEY` header on every request. Get a free key at https://zpi.web.id/dashboard/keys. **Response envelope:** `{ status, message, content }` **Rate limit:** 60 req/min on free tier. **Related:** - Detail page: https://zpi.web.id/api/indonesia/cek-nik - Endpoint catalog: https://zpi.web.id/category/indonesia - Concise index: https://zpi.web.id/llms.txt - Full reference: https://zpi.web.id/llms-full.txt --- ## Cek NIK **Category:** indonesia · **Slug:** `cek-nik` **Detail page:** https://zpi.web.id/api/indonesia/cek-nik Decode structural information from a 16-digit Indonesian NIK identifier. **Tags:** utility, nik, indonesia, ktp ### Decode NIK Decode province, district, birth date, and gender from NIK. - **Method:** `GET` - **Endpoint:** `https://api.zpi.web.id/v1/indonesia:cek-nik/decode` - **Cache TTL:** 300s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `nik` | string | query | yes | NIK KTP Indonesia (16 digit angka) | **cURL:** ```bash curl "https://api.zpi.web.id/v1/indonesia:cek-nik/decode?nik=3201011503900001" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zpi.web.id/v1/indonesia:cek-nik/decode?nik=3201011503900001", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zpi.web.id/v1/indonesia:cek-nik/decode?nik=3201011503900001", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "ok": true, "nik": "3201011503900001", "birth": { "day": 15, "date": "1990-03-15", "year": 1990, "month": 3 }, "valid": true, "gender": "LAKI-LAKI", "source": "algorithmic", "kec_code": "01", "province": "Jawa Barat", "sequence": "0001", "kab_kota_code": "01", "province_code": "32" } ``` --- _Generated: 2026-08-02T14:28:45.808Z_