PASAR API

🇲🇾 OpenDOSM ~ official Malaysian statistics

← directory
Department of Statistics Malaysia (DOSM)Government servicestier: openauth: no authpricing: freeverified 2026-06-30

Keyless REST API over DOSM's open statistics catalogue (GDP, household income, poverty, population, prices and more). GET /opendosm/?id=<dataset> returns JSON. Free and open, no auth. MY-first.

View docs ↗ More Government services APIs

Call it

curl 'https://api.data.gov.my/opendosm?id=cpi_headline&limit=1'

AI prompt

I'm building an app using a free Malaysia API (no auth needed).

API: OpenDOSM ~ official Malaysian statistics
Provider: Department of Statistics Malaysia (DOSM)
Endpoint: GET https://api.data.gov.my/opendosm?id=cpi_headline&limit=1
It returns JSON.

Source: Department of Statistics Malaysia (DOSM) (https://developer.data.gov.my/static-api/opendosm)
Source type: Curated source
Endpoint type: Provider API base URL
Integration difficulty: Copy-paste ready
Last checked: 2026-06-30
Production caveat: Still handle empty rows, schema changes, pagination, stale coverage, and temporary upstream failures.

Help me fetch this and build a simple page that displays it nicely. Include basic production safeguards for errors, empty responses, schema changes, caching, and rate limits.

Related Government services APIs

data.gov.sg ~ Singapore open data & real-time APIsJAKIM e-Solat Prayer Times APIWaktu Solat API (Malaysia Prayer Times)SSM e-Info Company Registry APIGLEIF LEI API ~ global Legal Entity Identifier registryCompanies House API ~ UK company registry, filings & officersSEC EDGAR APIs ~ US public-company filings & financial dataFederal Register API ~ US government documents, rules & noticesOpenSanctions API ~ global sanctions, PEP & watchlist screeningElectionData.MY ~ open Malaysian election results, seats, candidates & parties