PASAR API

🇲🇾 Price of Petroleum & Diesel

← directory
MOFPricestier: openauth: no authpricing: freefreq: WEEKLYcovers 2017~2025geography: NATIONAL

Price of Petroleum & Diesel by MOF, Prices API, for Malaysia, free.

More Prices APIs

Call it

curl 'https://api.data.gov.my/data-catalogue/?id=fuelprice&limit=10&sort=-date'

AI prompt

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

API: Price of Petroleum & Diesel
Provider: MOF
Endpoint: GET https://api.data.gov.my/data-catalogue/?id=fuelprice&limit=10&sort=-date
It returns JSON.

Source: MOF (https://data.gov.my/data-catalogue/fuelprice)
Source type: Official open-data catalogue
Endpoint type: Open-data catalogue JSON
Integration difficulty: Copy-paste ready
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 Prices APIs

Monthly CPI by Strata & Division (2-digit)Monthly CPI Inflation by State & Division (2-digit)Monthly CPI by State & Division (2-digit)Monthly CPI for Low-Income HouseholdsMonthly CPI Inflation by Division (2-digit)Monthly CPI by Division (2-digit)Monthly Core CPI Inflation by Division (2-digit)Annual CPI Inflation by Division (2-digit)Annual CPI by Division (2-digit)Monthly Core CPI by Division (2-digit)