API Reference

Civil Servant, Military & Police Pay + PNS Pay Calculator

Complete basic pay tables per grade and years of service, plus a PNS income calculator.

Main endpoint
GET https://use.apiindonesia.id/api/v1/gaji-asn/pns
Endpoints
6
Authentication
x-api-key header (create one free in the dashboard)
Price
Included in the Pro and Business plans; failed requests are free
Format
JSON (REST), with cURL, JavaScript and Python examples
Data source
Sources: PP 5/2024, Perpres 11/2024, PP 6/2024, PP 7/2024, PP 51/1992, Perpres 12/2006; Every table cell is read from the official annex; in force since 1 January 2024 and unchanged as of 28 November 2026; The Rp72,420 per person food allowance comes from the BKN knowledge base because the DG regulation text could not be read
Product Brief

What this API gives you

Complete basic pay tables per grade and years of service, plus a PNS income calculator.

  • PNS: 272 cells (17 grades I/a to IV/e), PP 5/2024
  • PPPK: 272 cells (grades I to XVII), Perpres 11/2024
  • Military (PP 6/2024) and police (PP 7/2024): 338 cells per rank
  • PNS calculator: basic pay + spouse 10% + children 2% (max 2) + food allowance + general allowance
  • Performance allowance (tukin) is not included because it differs per agency
  • Sources: PP 5/2024, Perpres 11/2024, PP 6/2024, PP 7/2024, PP 51/1992, Perpres 12/2006
  • Every table cell is read from the official annex; in force since 1 January 2024 and unchanged as of 28 November 2026
  • The Rp72,420 per person food allowance comes from the BKN knowledge base because the DG regulation text could not be read
Coverage
6

ready-to-use endpoints in this product, with JSON responses and consistent error handling.

Access
API key

Can be tried with the 3,000 credit signup bonus, then used in production through one API Indonesia key.

Sample resource
https://use.apiindonesia.id/api/v1/gaji-asn/pns

PNS basic pay per grade and years of service; without parameters returns a summary of 17 grades.

Example product scenarios

This section separates the product page from the docs. The docs explain how to call endpoints; this page explains why the endpoints make sense for your feature.

  • HR & local finance apps: compute pay and allowances from the official tables.
  • Fintech & cooperatives: estimate civil-servant income for credit analysis.
  • CPNS career portals: show pay per grade.

Example Usage

Request
curl "https://use.apiindonesia.id/api/v1/gaji-asn/pns?golongan=III/a&mkg=4" \
  -H "x-api-key: YOUR_API_KEY"
Response · 200 OK
{
  "success": true,
  "data": {
    "kode": "III/a",
    "mkg_diminta": 4,
    "mkg_dipakai": 4,
    "gaji_pokok": 2964000,
    "aturan_mkg": "Aturan pencarian MKG: dipakai langkah MKG tertinggi yang <= MKG yang diminta (MKG di atas langkah terakhir memakai langkah terakhir; MKG di bawah langkah pertama golongan tidak ada).",
    "dasar_hukum": "Peraturan Pemerintah Nomor 5 Tahun 2024 tentang Perubahan Kesembilan Belas atas PP 7/1977 tentang Peraturan Gaji PNS, Lampiran (Daftar Gaji Pokok PNS)",
    "berlaku_mulai": "2024-01-01",
    "sumber_url": "https://peraturan.bpk.go.id/Download/335286/PP%20Nomor%205%20Tahun%202024.pdf"
  },
  "meta": {
    "attribution": {
      "source": "JDIH BPK; peraturan.go.id; JDIH Kementerian Keuangan; BKN",
      "license": "Peraturan perundang-undangan, tidak dilindungi hak cipta (UU 28/2014 Pasal 42)",
      "attribution_page": "https://apiindonesia.id/produk/gaji-asn/",
      "notice": "Angka dibaca dari lampiran peraturan resmi; API Indonesia menambahkan struktur JSON dan kalkulator (referensi, bukan slip gaji resmi)"
    }
  }
}

Pricing Included in the Pro and Business plans; failed requests are free. One-time 3,000 credit signup bonus, no credit card, no monthly allowance.

Civil Servant, Military & Police Pay + PNS Pay Calculator API questions

What is the basic pay for PNS grade III/a?

Rp2,785,700 at 0 years up to Rp4,575,200 at the top step (PP 5/2024). /api/v1/gaji-asn/pns?golongan=III/a returns every step.

Did PNS pay rise in 2026?

As of 28 November 2026 the PP 5/2024 table is still in force and no later regulation changes basic pay.

Get Started

Start Integrating
Today

Sign up for free and get a 3,000 credit bonus (Rp3,000) once your email is verified, grab an API key, and call your first endpoint right away. No credit card, no tedious approval process.

Dot wave visualization