Opendosm Get Dataset
opendosm_get_datasetFetch records from an official Malaysian statistics dataset (data.gov.my / OpenDOSM, Dept of Statistics Malaysia). Keyless, authoritative. The dataset id is REQUIRED — there is no listing endpoint, so use opendosm_list_datasets or opendosm_dataset_meta to discover ids and their columns. Verified high-value ids: cpi_headline (Headline Consumer Price Index, monthly (1980–present).); cpi_core (Core CPI (excludes volatile items), monthly.); gdp_qtr_real (Real GDP, quarterly (constant 2015 prices).); economic_indicators (Leading / coincident / lagging economic indicator indices, monthly.); ipi (Industrial Production Index, monthly (seasonally adjusted + absolute).); lfs_month (Labour force survey, monthly: unemployment rate, participation rate, employment.); fuelprice (Weekly retail fuel prices (RON95, RON97, diesel) in MYR per litre.); hh_income (Household income: mean and median (MYR), by survey year.); population_malaysia (Malaysia population by age / sex / ethnicity (thousands), annual.); population_state (Population by state, age, sex, ethnicity (thousands).); births (Live births by state and date.); deaths (Deaths: absolute count and crude rate, annual.). Filter syntax is value@column (e.g. filter="overall@division" keeps only rows where division=overall). Range syntax is column[start:end] on NUMERIC columns only, either bound optional (e.g. range="index[130:140]", range="index[135:]"). Date ranges are NOT supported by range; instead use sort="-date" with limit to get the most recent rows. sort="-col" is descending, sort="col" ascending.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Dataset id, e.g. "cpi_headline", "lfs_month", "fuelprice". Required. | |
| sort | No | Sort column; prefix "-" for descending, e.g. "-date" for newest first. | |
| limit | No | Max records to return. Omit for full series (can be large). | |
| range | No | Numeric range, format column[start:end] (bounds optional), e.g. "index[130:140]". Numeric columns only — not dates. | |
| filter | No | Exact-match filter, format value@column, e.g. "overall@division". |