Indonesia Law

v0.2.1
io.github.pipeworx-io/indonesia-law Checked 16 hours ago Published 1 month ago

Indonesian law — national statutes and regulations, and Constitutional Court (Mahkamah Konstitusi)…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

idn_search_regulations

Search Indonesia's national register of laws and regulations (Undang-Undang statutes, Perpu, Peraturan Pemerintah, Peraturan Presiden, Keppres, Inpres) by Indonesian title words, instrument type and year. Returns each instrument's citation, title, legal status (in force / partially amended / revoked), enactment and promulgation dates and a link to the signed PDF, from the State Secretariat JDIH (jdih.setneg.go.id). Use for "what Indonesian laws exist about X", "list Indonesian statutes passed in 2023", "is UU 11/2020 Cipta Kerja still in force".

ParameterTypeDescription
limitnumberResults per page, 1-50 (default 10).
offsetnumberRow offset for paging (default 0).
querystringIndonesian words expected in the instrument's title, e.g. "cipta kerja", "pajak", "kesehatan", "mahkamah konstitusi". Optional; leave empty to list by type and year.
statusstringLegal-status filter as the register spells it: "berlaku" (in force), "sebagian" (partially amended/revoked), "tidak berlaku" (no longer in force). Optional.
typestringInstrument type or comma-separated types: UU, PERPU, PP, PERPRES, KEPPRES, INPRES, PERMENSESNEG, KEPMENSESNEG. Optional.
yearstringFour-digit year or comma-separated years, e.g. "2023" or "2021,2022". Optional.

idn_regulation_detail

Full register record for one Indonesian law or regulation by type, number and year: title, legal status, state gazette (Lembaran Negara / Tambahan) numbers, dates, the signed PDF, and its relations — which instruments amend or revoke it, which it amends or revokes, related implementing regulations and any judicial-review entry — from the State Secretariat JDIH (jdih.setneg.go.id). Use for "details of UU 6/2023", "what amended PP 5/2021", "get the PDF of Perpres 40/2026".

ParameterTypeDescription
number *stringInstrument number, e.g. "11".
type *stringInstrument type: UU, PERPU, PP, PERPRES, KEPPRES, INPRES, PERMENSESNEG or KEPMENSESNEG.
year *stringFour-digit year, e.g. "2020".

idn_regulation_article_text

Text of one PASAL (article) of an Indonesian law or regulation, extracted from the signed PDF on file at the State Secretariat JDIH (jdih.setneg.go.id) — the same official document idn_regulation_detail links to. Use for "what does Pasal 1 of UU 13/2003 say", "text of Article 27 of the Ketenagakerjaan law", "read Pasal 28D of the Constitution's implementing statute". Returns the article's own text bounded by the next article heading; if the PDF cannot be read as text, or the article is not found, the response says so explicitly rather than returning an empty string.

ParameterTypeDescription
number *stringInstrument number, e.g. "13".
pasal *stringArticle number as the statute numbers it, e.g. "1" or "28D" for Pasal 28D. "Pasal 1" also accepted.
type *stringInstrument type: UU, PERPU, PP, PERPRES, KEPPRES, INPRES, PERMENSESNEG or KEPMENSESNEG.
year *stringFour-digit year, e.g. "2003".

idn_list_statutes

List Indonesian statutes and executive instruments by type and year from the House of Representatives (DPR RI) legal register — Undang-Undang, Perpu, Peraturan Pemerintah, Peraturan Presiden, Keputusan Presiden, Instruksi Presiden, Peraturan DPR — with the DPR id needed by idn_statute_detail and a direct PDF link, optionally filtered by Indonesian title words. Use for "all Indonesian laws enacted in 2020", "presidential regulations of 2024 about energy".

ParameterTypeDescription
limitnumberMax rows to return, 1-500 (default 50).
querystringIndonesian words that must all appear in the title, e.g. "mineral batubara". Optional.
typestringOne of: uu, perpu, pp, perpres, keppres, inpres, perdpr, peraturanbersama (default uu).
yearstringFour-digit year, e.g. "2020". Strongly recommended — without it DPR shows only its newest few.

idn_statute_detail

Detailed record of one Indonesian statute or executive instrument from the House of Representatives (DPR RI) register: number, year, enactment/promulgation dates, an Indonesian abstract with drafting notes, the responsible DPR commission, the Status list (which earlier laws it amends or revokes, which later laws amend it, and which ARTICLES the Constitutional Court / Mahkamah Konstitusi struck down, with case numbers), the table of implementing regulations per article, and the PDF. Use for "which articles of UU 13/2003 were annulled by the Constitutional Court", "implementing regulations of th…

ParameterTypeDescription
dpr_id *stringDPR register id from idn_list_statutes, e.g. "1771" (UU 11/2020 Cipta Kerja) or "196" (UU 13/2003 Ketenagakerjaan).
typestringOne of: uu, perpu, pp, perpres, keppres, inpres, perdpr (default uu).

idn_mk_review_detail

Metadata and PDF for one Indonesian Constitutional Court judicial-review resume or DPR analysis document from the DPR RI register, given the url returned by idn_mk_review_search: full title, document kind, MK case number, statute under review, publication year and the resume PDF from berkas.dpr.go.id. Use after idn_mk_review_search to read the ruling summary.

ParameterTypeDescription
url *stringA jdih.dpr.go.id/setjen/view/... url from idn_mk_review_search (the slug after /setjen/view/ also works).