Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...

    HTTP client for IMF public data APIs.

    Primary surface:

    • getWeoIndicator(iso3, weoCode, years?) โ€” fetch time series
    • compareCountriesWeo(codes, weoCode) โ€” peer-set latest values
    • getLatestWeoIndicator(iso3, weoCode) โ€” most recent data point
    • sdmxFetch(path) โ€” full SDMX 3.0 surface (auth)
    • listDatamapperIndicators() โ€” live Datamapper catalog (132 entries)
    Index
    datamapperBaseURL: string
    sdmxBaseURL: string
    timeout: number
    maxRetries: number
    weoVintage: string
    userAgent: string
    sdmxSubscriptionKey: string

    Resolved 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".

    onBatchIndicatorError?: (event: ImfBatchIndicatorErrorEvent) => void
    • Fetch a WEO time series for one country via the Datamapper.

      Parameters

      • iso3: string

        ISO-3 alpha-3 country code (Datamapper native format)

      • weoCode: string

        WEO indicator code (see IMF_WEO_INDICATORS)

      • years: number = 10

        How many most-recent years to return (default 10)

      Returns Promise<ImfDataPoint[]>

    • 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.

      Parameters

      • iso3: string
      • weoCodes: readonly string[]
      • years: number = 10

      Returns Promise<Map<string, readonly ImfDataPoint[]>>

    • Fetch the latest available data point for one country. Returns the most recent historical value when available, otherwise the most recent projection.

      Parameters

      • iso3: string
      • weoCode: string

      Returns Promise<ImfDataPoint>

    • Compare an indicator across multiple countries. Fetches sequentially to respect IMF rate limits. Unknown / failed countries map to null.

      Parameters

      • iso3Codes: readonly string[]
      • weoCode: string

      Returns Promise<Map<string, ImfDataPoint>>

    • Low-level SDMX 3.0 passthrough. Returns the raw JSON envelope. Includes the Ocp-Apim-Subscription-Key header iff sdmxSubscriptionKey is set.

      Parameters

      • pathWithQuery: string

      Returns Promise<unknown>