ReadonlydatamapperReadonlysdmxReadonlytimeoutReadonlymaxReadonlyweoReadonlyuserReadonlysdmxResolved IMF SDMX subscription key. Empty string when neither the constructor option nor IMF_SDMX_SUBSCRIPTION_KEY is set โ SDMX requests still go out so probes can detect "no key" vs "outage".
Private Optional ReadonlyonFetch a WEO time series for one country via the Datamapper.
ISO-3 alpha-3 country code (Datamapper native format)
WEO indicator code (see IMF_WEO_INDICATORS)
How many most-recent years to return (default 10)
Fetch the IMF Datamapper indicator catalog (~132 entries). Use to discover any of the Datamapper-addressable indicators at runtime. Codes outside the catalog require sdmxFetch.
Fetch several WEO indicators for the same country sequentially. Failures on individual indicators map to an empty array so a single flaky series does not poison the whole batch.
Fetch the latest available data point for one country. Returns the most recent historical value when available, otherwise the most recent projection.
Compare an indicator across multiple countries. Fetches sequentially to respect IMF rate limits. Unknown / failed countries map to null.
Low-level SDMX 3.0 passthrough. Returns the raw JSON envelope. Includes the Ocp-Apim-Subscription-Key header iff sdmxSubscriptionKey is set.
HTTP client for IMF public data APIs.
Primary surface:
getWeoIndicator(iso3, weoCode, years?)โ fetch time seriescompareCountriesWeo(codes, weoCode)โ peer-set latest valuesgetLatestWeoIndicator(iso3, weoCode)โ most recent data pointsdmxFetch(path)โ full SDMX 3.0 surface (auth)listDatamapperIndicators()โ live Datamapper catalog (132 entries)