Opendosm My

v0.2.1
io.github.pipeworx-io/opendosm-my Checked 1 day ago Published 28 days ago

data.gov.my / OpenDOSM (Department of Statistics Malaysia) — official Malaysian open-data API.…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

opendosm_get_dataset

Fetch 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.); ip…

ParameterTypeDescription
id *stringDataset id, e.g. "cpi_headline", "lfs_month", "fuelprice". Required.
filterstringExact-match filter, format value@column, e.g. "overall@division".
limitintegerMax records to return. Omit for full series (can be large).
rangestringNumeric range, format column[start:end] (bounds optional), e.g. "index[130:140]". Numeric columns only — not dates.
sortstringSort column; prefix "-" for descending, e.g. "-date" for newest first.

opendosm_dataset_meta

Metadata for one Malaysian dataset (data.gov.my): catalogue_id, data_as_of, last_updated, next_update, data_source, update_frequency, plus a sample row showing the available columns. Use this to inspect a series before pulling it, or to check freshness. Requires a dataset id.

ParameterTypeDescription
id *stringDataset id, e.g. "cpi_headline". Required.

opendosm_list_datasets

List the curated, verified high-value datasets available from data.gov.my / OpenDOSM (Dept of Statistics Malaysia). data.gov.my exposes no machine listing/search endpoint, so this returns a hand-verified set covering inflation, GDP, labour, prices, income, population and demography, with each dataset id, topic, description and its value columns. Optionally filter by topic.

ParameterTypeDescription
topicstringOptional topic filter, e.g. "inflation", "labour", "population", "gdp", "prices", "income", "demography", "industry".