API Reference
Pre-built static JSON API — fetch langsung dari CDN tanpa backend, tanpa auth.
Base URL
/api/v1/ Format
JSON static Auth
None — open Endpoints
META
| Method | Endpoint | Deskripsi |
|---|---|---|
| GET | /api/v1/index.json | API index |
| GET | /api/v1/stats.json | Statistik database |
ENTRIES
| Method | Endpoint | Deskripsi |
|---|---|---|
| GET | /api/v1/entries/index.json | Daftar semua entries (ringkasan) |
| GET | /api/v1/entries/{id}.json | Detail 1 entry lengkap |
CATEGORIES
| Method | Endpoint | Deskripsi |
|---|---|---|
| GET | /api/v1/categories/index.json | Daftar semua kategori |
| GET | /api/v1/categories/{slug}.json | Entries dalam 1 kategori |
TEMPORAL
| Method | Endpoint | Deskripsi |
|---|---|---|
| GET | /api/v1/by-year/{year}.json | Entries berlaku di tahun tsb |
BPPU
| Method | Endpoint | Deskripsi |
|---|---|---|
| GET | /api/v1/bppu/index.json | Semua kode BPPU + mapping |
| GET | /api/v1/bppu/{prefix}.json | Kode BPPU per prefix |
TIMELINE
| Method | Endpoint | Deskripsi |
|---|---|---|
| GET | /api/v1/timeline/index.json | Daftar timeline groups |
| GET | /api/v1/timeline/{group}.json | Rantai sejarah tarif |
SEARCH
| Method | Endpoint | Deskripsi |
|---|---|---|
| GET | /api/v1/search-index.json | Inverted index (client-side search) |
REGULATIONS
| Method | Endpoint | Deskripsi |
|---|---|---|
| GET | /api/v1/regulations/index.json | Daftar semua regulasi |
| GET | /api/v1/regulations/{id}.json | Detail regulasi + entries |
CALCULATOR
| Method | Endpoint | Deskripsi |
|---|---|---|
| GET | /api/v1/calculator/index.json | Daftar kalkulator |
| GET | /api/v1/calculator/{id}.json | Data kalkulasi (brackets, PTKP) |
SPEC
| Method | Endpoint | Deskripsi |
|---|---|---|
| GET | /api/v1/openapi.json | OpenAPI 3.0 specification |
Try It
Select an endpoint and click Execute...
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: 960K → 54M
Data untuk kalkulasi PPh 21?
$ curl /api/v1/calculator/pph-21.json → brackets + PTKP values