Discover/moj.gov.kh API
live

moj.gov.kh APImoj.gov.kh

Access Cambodian laws, regulations, books, and news from the Ministry of Justice (moj.gov.kh). Six endpoints covering legal documents, library, and site search.

Endpoints
6
Updated
14d ago
Try it
Page number for pagination.
Filter by book title keyword (Khmer text recommended).
Filter by category (Khmer text, e.g. 'ច្បាប់').
Filter by institute name.
View mode: 'grid' or 'list'.
api.parse.bot/scraper/190e9c81-7a8c-4fe6-b5e6-30370299705f/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/190e9c81-7a8c-4fe6-b5e6-30370299705f/get_books?page=1' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 6 totalclick to expand

Retrieve paginated books from the Ministry of Justice library. Returns book titles, thumbnail URLs, and download URLs. Supports filtering by title, category, and institute.

Input
ParamTypeDescription
pagestringPage number for pagination.
titlestringFilter by book title keyword (Khmer text recommended).
categorystringFilter by category (Khmer text, e.g. 'ច្បាប់').
institutestringFilter by institute name.
view_modestringView mode: 'grid' or 'list'.
Response
{
  "type": "object",
  "fields": {
    "page": "current page number",
    "books": "array of book objects, each with title, thumbnail_url, and download_url",
    "count": "number of books on the current page",
    "total_pages": "total number of pages available"
  },
  "sample": {
    "data": {
      "page": 1,
      "books": [
        {
          "title": "រដ្ឋធម្មនុញ្ញឆ្នាំបោះពុម្ពផ្សាយដោយក្រុមប្រឹក្សា​ធម្មនុញ្ញឆ្នាំ២០២៣",
          "download_url": "https://moj.gov.kh/kh/download-book/?key=K3JXNUZhbmFjOUZxMTMwWGdVWUtCdz09",
          "thumbnail_url": "https://moj.gov.kh/files/book/1701999524រដ្ឋធម្មនុញ្ញ១៩៩៣ ភាសាខ្មែរ អង្គ្លេស បារាំង (តុលា២០២៣).jpg"
        }
      ],
      "count": 18,
      "total_pages": 7
    },
    "status": "success"
  }
}

About the moj.gov.kh API

The moj.gov.kh API provides 6 endpoints to retrieve legal content from Cambodia's official Ministry of Justice website, including laws with PDF links, a library of books with download URLs, and paginated news events. The get_laws endpoint returns structured records with law number, name, type, date, and separate Khmer and English PDF links where available, making it practical for building Cambodian legal reference tools.

Legal Documents and Regulations

The get_laws endpoint returns paginated records from the Ministry of Justice laws database. Each law object includes number, name, type, date, pdf_kh (Khmer-language PDF), and pdf_en (English-language PDF where available). Not all laws have English PDFs, so pdf_en may be null for some entries. The page parameter controls pagination, and each response includes the count of laws on the current page alongside the laws array.

For full-text legal search, get_legal_search_results accepts a query string and returns title, url, description, date, and category for each matching document. Khmer-script queries (ច្បាប់, យុត្តិធម៌, កិច្ចសន្យា) produce the most complete results — English-language queries are not supported by the source.

Library and Books

The get_books endpoint retrieves the Ministry's digital library with filtering by title, category, and institute, plus a view_mode parameter (grid or list). Each book object exposes title, thumbnail_url, and download_url. The response includes total_pages for your own pagination logic. When you need the full catalog at once, get_all_books iterates all pages internally and returns a flat books array with a total_count — useful for indexing but slower than a single-page get_books call.

News and Site Search

get_news_events returns paginated news items from the Ministry, each with title, url, date, and thumbnail_url. The search_site endpoint supports site-wide keyword search across all content types, returning title, url, date, and thumbnail_url per result. As with the legal search, only Khmer-script queries return results; English queries produce an empty results array.

Common use cases
  • Building a Cambodian legal research tool that links directly to Khmer and English PDFs via pdf_kh and pdf_en fields
  • Indexing the Ministry of Justice book library using get_all_books to collect all download_url values in one pass
  • Monitoring new Ministry announcements by polling get_news_events for fresh date and url entries
  • Searching for specific legislation by keyword using get_legal_search_results with Khmer-script queries and filtering by category
  • Aggregating law metadata (number, name, type, date) for a Cambodian regulatory compliance database
  • Filtering the digital library by subject with the category parameter to surface books in a specific legal domain
  • Powering a Khmer-language legal chatbot with document titles, descriptions, and URLs from get_legal_search_results
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does moj.gov.kh provide an official developer API?+
No. The Cambodian Ministry of Justice website does not publish a public developer API or documented data feed. This Parse API provides structured access to the public content on moj.gov.kh.
What does `get_laws` return and are all laws available in English?+
Each record includes number, name, type, date, pdf_kh, and pdf_en. English PDFs (pdf_en) are only present where the Ministry has published an English translation — many records will have a null pdf_en and only a Khmer PDF.
Why do English-language queries to `search_site` and `get_legal_search_results` return no results?+
The Ministry of Justice site's search is built for Khmer-script content. Both search_site and get_legal_search_results require Khmer-script input to return results; English-language queries consistently return an empty array. Use Khmer text (e.g. 'ច្បាប់') for any search query.
Does the API expose full law text or only metadata and PDF links?+
The get_laws endpoint returns metadata fields (number, name, type, date) and links to PDFs (pdf_kh, pdf_en). Full document text is not extracted. You can fork this API on Parse and revise it to add a law-detail endpoint that fetches and parses the PDF content.
Can I filter news events by date range or category?+
Currently get_news_events only accepts a page parameter; date-range and category filtering are not supported. The API covers paginated news items with title, url, date, and thumbnail_url fields. You can fork this API on Parse and revise it to add date or category filter parameters to the news endpoint.
Page content last updated . Spec covers 6 endpoints from moj.gov.kh.
Related APIs in Government PublicSee all →
athletic.net API
Search and analyze cross country and track & field performance data across the US, including athlete profiles, meet results, team rosters, and rankings. Access comprehensive meet information, historical records, and state-level competition data to track athlete progress and discover top performers.
alienvault.com API
Search and analyze global threat intelligence data including indicators of compromise, threat pulses, and adversary profiles from the Open Threat Exchange community. Monitor recent security alerts and access detailed information about threats and adversaries to strengthen your cybersecurity defenses.
eprocurement.gov API
Monitor India's public procurement opportunities by accessing active tenders, bids closing today, global tenders, high-value contracts, and cancelled tenders from the Central Public Procurement Portal. Search tender details, browse participating organizations, and track real-time procurement statistics to stay informed on government contracting opportunities.
maradminbot.com API
Search and retrieve official Marine Corps MARADMIN announcements from Marines.mil, filtering by year, status, and keyword to stay updated on the latest personnel and administrative directives. Get detailed information about specific announcements by number or browse the most recent updates to ensure you never miss critical Marine Corps guidance.
13f.info API
13f.info API
illinoisreportcard.com API
Search and analyze comprehensive performance data for Illinois public schools, districts, and the state, including academic achievements in ELA, math, and science, student demographics, teacher and administrator information, school finances, and environmental conditions. Compare schools side-by-side, track growth metrics, and access accountability ratings and school highlights to make informed decisions about education quality.
customs.gov.mv API
Check import/export duties, tariff classifications, and exchange rates for Maldives customs compliance, plus track vessel movements, company registrations, and declaration statuses. Get real-time data directly from the official customs portal to streamline your trade and logistics operations.
bizapedia.com API
Search for detailed business profiles and contact information from Bizapedia, including company details, employee data, and communication channels. Access comprehensive business intelligence to research companies and build targeted contact lists.