Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...
    • Persist IMF API response data (Datamapper JSON or SDMX 3.0).

      Stored under analysis/data/imf/{indicator}/{country}.json, mirroring the World Bank persistence layout. Introduced by the hybrid IMF integration (Economic Data Contract v2.0, 2026-04). Supports all IMF providers: Datamapper (WEO) and SDMX 3.0 (IFS/BOP/FM/GFS/DOTS/MFS), all accessed through the pure-TypeScript client scripts/imf-client.ts (there is no Python MCP / uvx runtime; agentic workflows invoke the tsx scripts/imf-fetch.ts CLI via the bash tool).

      Parameters

      • indicator: string

        IMF indicator code (e.g. 'NGDP_RPCH', 'GGXWDG_NGDP', 'PCPIPCH', 'LUR', 'FM_EXP_G01_GDP_PT').

      • country: string

        IMF AREA code (ISO3 for Datamapper; varies by dataset per scripts/imf-codes.ts).

      • response: unknown

        Raw IMF response payload.

      • options: { database?: string; projectionVintage?: string; dataRoot?: string } = {}

        Optional provenance (database, projectionVintage, dataRoot override for testing).

      Returns string

      Absolute path to the persisted data file.