How this site works
Method
Kaedah
Every figure here is fetched from the official open data API, checked, stored in the project’s history and drawn without smoothing, filling or seasonal adjustment.
The datasets
| Indicator | Dataset id | Publisher | Cadence | Data to | Updated by source |
|---|---|---|---|---|---|
| Fuel prices | fuelprice | Ministry of Finance (MOF) | weekly | 19 Nov 2026 | 18 Nov 2026 |
| Inflation | cpi_headline_inflation | Department of Statistics Malaysia (DOSM) | monthly | Oct 2026 | 19 Nov 2026 |
| Jobs | lfs_month | Department of Statistics Malaysia (DOSM) | monthly | Sep 2026 | 11 Nov 2026 |
| Economic growth | gdp_qtr_real | Department of Statistics Malaysia (DOSM) | quarterly | Q3 2026 | 18 Nov 2026 |
| Trade | trade_sitc_1d | Department of Statistics Malaysia (DOSM) | monthly | Sep 2026 | 28 Oct 2026 |
| The ringgit | exchangerates | Bank Negara Malaysia (BNM) | monthly | 31 Oct 2026 | 1 Nov 2026 |
| Electricity | electricity_consumption | TNB, SESB, Sarawak Energy, Energy Commission (ST) and DOSM | monthly | 30 Jun 2026 | 8 Oct 2026 |
| Population | population_malaysia | Department of Statistics Malaysia (DOSM) | yearly | 2026 | 31 Jul 2026 |
All eight are published under CC BY 4.0 on data.gov.my and OpenDOSM. Each was chosen because it is still updated on schedule (checked against the API’s own last_updated and next_update fields on 24 November 2026) and because it says something most people care about: prices, jobs, output, trade, the currency, power use and population.
How the data is fetched
- Once a day at 01:23 UTC (09:23 Malaysia time) a GitHub Actions job asks the data.gov.my API for each dataset: one request per dataset, eight a run, with
meta=trueso the reply carries the source’s own dates. - The API allows four requests a minute. Requests are spaced 16 seconds apart; if the API still answers “too many requests”, the job waits as long as it is told (up to 65 s) and tries once more.
- Each run is capped at 16 requests, 12 MB in total, 3 MB per reply, 30 s per request and 6 minutes overall. HTTPS only, one allowed host, redirects refused, no key, no cookies, and a plain User-Agent naming this site.
- Replies are cached for 6 hours on the machine that runs the job, so a re-run asks nobody.
- Every reply is checked before use: it must name the dataset asked for, carry the source’s dates, have a real calendar date on every row and never give two values for one date. Empty values are left out, never turned into zero. A reply that would delete figures already stored, or end earlier than before, is refused as broken. A dataset that fails keeps its last good figures, and the day’s run is marked as failed.
The requests, exactly as sent:
https://api.data.gov.my/data-catalogue/?id=fuelprice&meta=true&sort=date&limit=20000&filter=level%40series_type&include=date%2Cron95%2Cron97%2Cdiesel%2Cdiesel_eastmsia%2Cron95_budi95https://api.data.gov.my/opendosm/?id=cpi_headline_inflation&meta=true&sort=date&limit=20000&date_start=2015-01-01%40datehttps://api.data.gov.my/opendosm/?id=lfs_month&meta=true&sort=date&limit=20000&date_start=2015-01-01%40datehttps://api.data.gov.my/opendosm/?id=gdp_qtr_real&meta=true&sort=date&limit=20000&date_start=2015-01-01%40datehttps://api.data.gov.my/opendosm/?id=trade_sitc_1d&meta=true&sort=date&limit=20000&date_start=2015-01-01%40date&filter=overall%40sectionhttps://api.data.gov.my/data-catalogue/?id=exchangerates&meta=true&sort=date&limit=20000&date_start=2015-01-01%40date&filter=avg%40indicator&include=date%2Cusd%2Csgd%2Ceur%2Ccny%2Cgbp%2Cjpyhttps://api.data.gov.my/data-catalogue/?id=electricity_consumption&meta=true&sort=date&limit=20000&date_start=2015-01-01%40datehttps://api.data.gov.my/opendosm/?id=population_malaysia&meta=true&sort=date&limit=20000&filter=overall%40age%2Cboth%40sex
History
Each dataset is stored as a compact file in the project’s Git repository and only rewritten when the source changed something. Every new or revised value therefore leaves a commit, and the release log records when this site saw it, how many values were new and how many were revised. Revisions are normal: statistics offices update recent figures as fuller data arrive.
What is computed here
- Change on each card compares the latest value with the one before (fuel, inflation, jobs, GDP growth, the ringgit, population) or with the same month a year before, for figures with strong seasons (exports, electricity). Rates change in percentage points (pp), prices in sen, amounts in per cent.
- Trade balance is exports minus imports for the same month. Nothing else is derived; growth rates and inflation are the publishers’ own.
- Colour shows direction only: amber for up, teal for down, always with an arrow and a sign. It does not mean good or bad.
- Numbers are shown as published, rounded for display only. The CSV downloads carry the full values.
Reading the charts
Every chart is drawn as SVG when the site is built, so it shows without JavaScript. With JavaScript, it is redrawn at the width of your screen, hovering shows the values under the pointer, and line and bar charts can be focused with the Tab key and read with the arrow keys (Home and End jump to the ends), with the values announced to screen readers. Horizontal bar charts print every value next to its bar, so they are read as they are. Each chart has the full table behind it and a CSV download. Charts with several series have a legend and, where there is room, labels at the line ends; one chart never has two scales.
Feeds
feed.json is a JSON Feed 1.1 with one item per dataset release, so a feed reader shows each new figure once. latest.json is the same latest values as plain JSON for scripts.