API Reference
Static JSON API — fetch langsung dari CDN tanpa backend
Base URL
/api/v1/ Format
JSON (static files) Auth
None — fully open META Info & Stats
| Method | Endpoint | Deskripsi |
|---|---|---|
| GET | /api/v1/index.json | API index — daftar semua endpoint |
| GET | /api/v1/stats.json | Statistik database |
ENTRIES Tarif Pajak
| Method | Endpoint | Deskripsi |
|---|---|---|
| GET | /api/v1/entries/index.json | Daftar semua entries |
| GET | /api/v1/entries/{id}.json | Detail 1 entry lengkap |
$ curl /api/v1/entries/ppn-10pct.json
CATEGORIES Kategori Pajak
| Method | Endpoint | Deskripsi |
|---|---|---|
| GET | /api/v1/categories/index.json | Daftar semua kategori |
| GET | /api/v1/categories/{slug}.json | Entries dalam 1 kategori |
$ curl /api/v1/categories/pph-21.json
TEMPORAL Query Berdasarkan Tahun
| Method | Endpoint | Deskripsi |
|---|---|---|
| GET | /api/v1/by-year/{year}.json | Entries berlaku di tahun tersebut |
$ curl /api/v1/by-year/2001.json # → PPN 10%, PPh 23 jasa 2%, dll
BPPU Kode Objek Pajak
| Method | Endpoint | Deskripsi |
|---|---|---|
| GET | /api/v1/bppu/index.json | Semua kode BPPU |
| GET | /api/v1/bppu/{prefix}.json | Kode BPPU per prefix |
$ curl /api/v1/bppu/24-104.json
TIMELINE Rantai Sejarah Tarif
| Method | Endpoint | Deskripsi |
|---|---|---|
| GET | /api/v1/timeline/index.json | Daftar timeline groups |
| GET | /api/v1/timeline/{group}.json | Rantai sejarah per jenis tarif |
SEARCH Client-side Full-text
| Method | Endpoint | Deskripsi |
|---|---|---|
| GET | /api/v1/search-index.json | Inverted index: keyword → entry IDs |
Fetch sekali → cache → filter di browser.
REGULATIONS Peraturan Perpajakan
| Method | Endpoint | Deskripsi |
|---|---|---|
| GET | /api/v1/regulations/index.json | Daftar semua regulasi |
| GET | /api/v1/regulations/{id}.json | Detail regulasi + entries terkait |
CALCULATOR Data Kalkulasi
| Method | Endpoint | Deskripsi |
|---|---|---|
| GET | /api/v1/calculator/index.json | Daftar kalkulator tersedia |
| GET | /api/v1/calculator/{id}.json | Data kalkulasi (brackets, PTKP, tarif) |
Kalkulator = data statis. Kalkulasi aktual dilakukan client-side.
SPEC OpenAPI 3.0
| Method | Endpoint | Deskripsi |
|---|---|---|
| GET | /api/v1/openapi.json | OpenAPI 3.0 specification |
Try It Live
Contoh Use Case
Berapa tarif PPN tahun 2001?
$ curl /api/v1/by-year/2001.json # → ppn-10pct: 10%
Berapa tarif PPh 23 jasa tahun 1999?
$ curl /api/v1/by-year/1999.json # → pph-23-jasa-pre2001: 15%
Timeline lengkap PTKP?
$ curl /api/v1/timeline/pph-21-ptkp.json # → 5 era
Data kalkulasi PPh 21?
$ curl /api/v1/calculator/pph-21.json # → brackets + PTKP values