Riksdagsmonitor Intelligence Platform โ€” API Documentation - v0.8.68
    Preparing search index...

    HTTP client for the World Bank Open Data API. Fetches economic indicator data for Sweden and comparison countries.

    Index

    Constructors

    Properties

    baseURL: string
    timeout: number
    maxRetries: number

    Methods

    • Fetch indicator data for a specific country.

      Parameters

      • countryCode: string

        ISO 3166-1 alpha-3 country code (e.g., 'SWE')

      • indicatorId: string

        World Bank indicator ID (e.g., 'NY.GDP.MKTP.KD.ZG')

      • perPage: number = 50

        Maximum number of records to fetch (default: 50)

      Returns Promise<WorldBankDataPoint[]>

      Array of data points sorted by date descending

    • Compare an indicator across multiple countries.

      Parameters

      • countryCodes: readonly string[]

        Array of ISO 3166-1 alpha-3 codes

      • indicatorId: string

        World Bank indicator ID

      Returns Promise<Map<string, WorldBankDataPoint>>

      Map of country code โ†’ latest data point