mygov

Malaysia Open Data · api.data.gov.my

Loading…

Today in Malaysia

Weather, fuel prices, warnings and transport updates for your area - fetched live from the Malaysian Government Open API.

Trend Radar

The hottest issues and viral claims circulating in Malaysia right now - each verified against real sources.

Warnings & Hazards

Everything currently on issue for Malaysia - severe-weather warnings, earthquakes within 500 km, and river gauges above their flood thresholds. Live only; nothing here is historical.

Data source & methodology

Three feeds in one view. MET publishes severe-weather warnings and a global earthquake list; the earthquakes are filtered to within 500 km of Malaysia (MET's own n_distancemas field) and to the last 24 hours, the same rule the alerts band at the top of the page uses. Flood risk is JPS gauge telemetry, counting only stations that reported within 24 hours. A hazard with nothing to report shows an all-clear rather than an empty table.

  • GET /weather/warning
  • GET /weather/warning/earthquake
  • GET publicinfobanjir.water.gov.my latestreadingstrendabc.json (via /api/flood)

Weather

Seven-day forecast for every state, district and town in Malaysia.

Data source & methodology

Forecasts come from MET Malaysia, covering 360 locations from states down to individual towns and highland resorts. Warnings and earthquakes moved to the Warnings & Hazards section above.

  • GET /weather/forecast

Household

What a household pays - weekly retail fuel prices, the PriceCatcher groceries basket, and how Malaysian household income has grown over time.

Data source & methodology

Fuel prices are set weekly by the Ministry of Finance and fetched server-side-filtered to the price level series. Groceries are a fixed basket of everyday items priced daily by KPDN enumerators - the Groceries block below carries the full methodology. Household income comes from the Household Income Survey.

  • GET /data-catalogue?id=fuelprice
  • GET /data-catalogue?id=hh_income

Groceries

What food actually costs on the shelf - a fixed basket of everyday items priced daily by KPDN enumerators at supermarkets, mini markets and wet markets in every district.

Data source & methodology

PriceCatcher records the shelf price of ~340 items at ~2,100 premises nationwide. It is not on the OpenAPI (id=pricecatcher returns 404) - it is published only as monthly Parquet, so a daily GitHub Action aggregates 13 months of it into prices.json. The trend is a Jevons index (geometric mean of price relatives) over items priced in every month, so the basket cannot drift. It is equal-weighted, not CPI: DOSM publishes no per-item expenditure weights at this granularity. The district figure is a spatial price level - each item's local median over its national median - so a district is not penalised for stocking a different slice of the basket.

  • GET storage.data.gov.my/pricecatcher/pricecatcher_YYYY-MM.parquet
  • GET storage.data.gov.my/pricecatcher/lookup_item.parquet
  • GET storage.data.gov.my/pricecatcher/lookup_premise.parquet

People

Who lives in Malaysia and how they are doing - DOSM population estimates from 1970 to now, broken down by state, district and constituency with per-seat income, poverty, inequality and unemployment, plus the Health block below on blood donations, organ pledges and PeKa B40 screenings.

Data source & methodology

DOSM's annual population estimates, published to 1 January each year in thousands of people. The national series comes over OpenDOSM; state, district and constituency estimates are Parquet-only on DOSM's storage host and arrive through geo.json, which a weekly GitHub Action regenerates. The constituency tables carry no age bands, so the citizen count is a proxy for an electorate, not a voting-age population. Income, poverty, inequality and labour-force figures per seat come from the Household Income Survey and Labour Force Survey through the OpenAPI.

  • GET /opendosm?id=population_malaysia&filter=overall@age
  • GET storage.dosm.gov.my/population/population_state.parquet
  • GET storage.dosm.gov.my/population/population_district.parquet
  • GET storage.dosm.gov.my/population/population_parlimen.parquet
  • GET storage.dosm.gov.my/population/population_dun.parquet
  • GET /data-catalogue?id=hh_income_parlimen
  • GET /data-catalogue?id=hh_income_dun
  • GET /data-catalogue?id=hh_poverty_parlimen
  • GET /data-catalogue?id=hh_poverty_dun
  • GET /data-catalogue?id=hh_inequality_parlimen
  • GET /data-catalogue?id=hh_inequality_dun
  • GET /data-catalogue?id=lfs_parlimen
  • GET /data-catalogue?id=lfs_dun

Health & Donations

Blood donations by blood type, organ pledges and PeKa B40 health screenings - published daily by the Ministry of Health.

Data source & methodology

The Ministry of Health publishes these three daily series through the government data catalogue. Donations carry a blood-type breakdown and are charted for the last three years; organ pledges run from 2009 and PeKa B40 screenings from 2019, both shown in full.

  • GET /data-catalogue?id=blood_donations
  • GET /data-catalogue?id=organ_pledges
  • GET /data-catalogue?id=pekab40_screenings

Economy

Department of Statistics Malaysia - headline and core inflation, inflation by state, the monthly unemployment rate, quarterly real GDP, and foreign direct investment.

Data source & methodology

Headline and core CPI are monthly national indices; the state series is each state's overall index, shown here as year-on-year inflation. Labour-force figures are monthly, real GDP and FDI flows are quarterly - all from OpenDOSM. The EPF dividend card comes from the general data catalogue.

  • GET /opendosm?id=cpi_core
  • GET /opendosm?id=cpi_headline&filter=overall@division
  • GET /opendosm?id=cpi_state&filter=overall@division
  • GET /opendosm?id=lfs_month
  • GET /opendosm?id=gdp_qtr_real
  • GET /opendosm?id=fdi_flows
  • GET /data-catalogue?id=epf_dividend

Tourism

Monthly international visitor arrivals to Malaysia - the top 51 countries of nationality, with year-on-year growth and the year-to-date picture.

Data source & methodology

Tourism Malaysia publishes a monthly top-51 arrivals table as a PDF on data.tourism.gov.my. The files are public - no login - and a monthly GitHub Action extracts the table with pymupdf into tourism.json. Growth columns compare against the same month in 2025 and 2019 (pre-pandemic). Data provided by Tourism Malaysia.

  • GET data.tourism.gov.my/frontend/pdf/{year}/visitor_arrivals/top_51_{m}_{year}_visitor.pdf

Finance

Exchange rates and interest rates from Bank Negara Malaysia, plus the pulse of online payments from PayNet - the daily FPX totals and monthly value by payment instrument.

Data source & methodology

Exchange rates are Bank Negara's reference rates - either the daily 12:00 middle rate or the published monthly average. Interest rates cover commercial and investment banks; the OPR itself isn't published in this catalogue, so the chart shows the commercial base rate, which tracks it. FPX figures are PayNet's daily transaction value and volume; payment instruments are the monthly value and count split by debit, credit, charge, cheque and e-money.

  • GET /data-catalogue?id=exchangerates
  • GET /data-catalogue?id=exchangerates_daily_1200&filter=middle@rate_type
  • GET /data-catalogue?id=interestrates
  • GET /data-catalogue?id=trnsc_daily_fpx&filter=both@model
  • GET /data-catalogue?id=payment_instruments

Vehicles & Ridership

New vehicle registrations split by fuel type - the EV adoption curve - and daily passenger numbers on every KTMB rail service.

Data source & methodology

Registrations are counted by the Road Transport Department (JPJ) at first registration and published monthly by fuel type; only all-vehicle totals are charted here. Ridership is KTMB's own daily passenger count per service, published to the previous day.

  • GET /data-catalogue?id=registrations_type_fuel&filter=all_types@type
  • GET /data-catalogue?id=ridership_ktmb_daily

Public Transport

Scheduled bus and train routes for KTMB and Rapid KL - the busiest lines, and how many stops and trips each network runs.

Data source & methodology

Schedules come from GTFS-static feeds published by each operator. They arrive as ZIP archives and are parsed in your browser - only routes, trips and stops are read, never the largest file.

  • GET /gtfs-static/ktmb
  • GET /gtfs-static/prasarana?category=rapid-bus-kl

Live Vehicles

Trains and buses currently reporting their position, straight from the operators' live feeds.

Data source & methodology

Trains come from KTM's GTFS-realtime feed, decoded in your browser by a small wire-format reader. Rapid KL buses come from Prasarana's official live kiosk feed (the same data the myrapidbus site shows - 800+ buses in the Klang Valley). Buses are aggregated into route chips and the map clusters positions until you zoom in.

  • GET /gtfs-realtime/vehicle-position/ktmb
  • GET myrapidbus.prasarana.com.my kiosk feed (via /api/rapid)