Riksdagsmonitor Intelligence Platform - v0.7.19
    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