Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

Agent skill · Audited from source

Imf Data Api Guide

skill · brycewang-stanford/Auto-Empirical-Research-SkillsNOASSERTION licenceAudited 8 Oct 2026 · source e1ba289846fd

★ 4,537pushed 3 days ago
✓SAFEGrade B · 89/100 · 8 Oct 2026 · e1ba289
4,537repo stars · whole brycewang-stanford/Auto-Empirical-Research-Skills

Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit e1ba289846fd and found no filesystem, network or shell access and no hard-coded secrets. What it does: Retrieve IMF economic indicators, exchange rates, and country data

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Imf Data Api Guide (brycewang-stanford/Auto-Empirical-Research-Skills)”. Retrieved 8 Oct 2026. https://modelsatlas.com/skills/brycewang-stanford/imf-data-api-guide

Trust audit

Audit 0.4.1 · source read 8 Oct 2026

Trust score89/100✓SAFE B
0 critical0 high0 medium0 low0 info

SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.

What the source does

  • FilesystemNone observedNo reads or writes in the source
  • NetworkNone observedNo outbound calls in the source
  • ShellNone observedNo commands run in the source
  • DependenciesPinnedNothing floats
  • SecretsNone foundNo keys in source

Five audit layers

LayerWhat we checkResultFindings
L0 ProvenanceRepo owner, licence, archive status, activityPASS0
L1 Static sourceSecrets, path traversal, supply chain, hidden codeNA0
L2 InstructionsPrompt injection, authority framing, hidden directivesPASS0
L3 InventoryThe files and declarations match the sourcePASS0
L4 SandboxRun in isolation and watch behaviourSKIPPED why0

Gates applied: no behavioural pass.

Findings (0)

No findings at any severity. We re-audit when the source changes.

Audit 0.4.1 · source sha e1ba289846fd · 8 Oct 2026Report an issue or request a re-scan

Provenance

Who published it, and what the verdict is pinned to

What it tells the agent

Full source on GitHub ↗

Its description: Retrieve IMF economic indicators, exchange rates, and country data

---
name: imf-data-api-guide
description: "Retrieve IMF economic indicators, exchange rates, and country data"
metadata:
  openclaw:
    emoji: "📊"
    category: "domains"
    subcategory: "economics"
    keywords: ["imf", "economics", "macroeconomics", "indicators", "exchange-rates", "gdp"]
    source: "https://datahelp.imf.org/knowledgebase/articles/667681-using-json-restful-web-service"
---

# IMF Data API Guide

## Overview

The International Monetary Fund (IMF) provides a free JSON-based REST API for accessing its extensive collection of macroeconomic and financial datasets. The API covers data from virtually every country and territory, spanning indicators such as GDP, inflation, trade balances, exchange rates, government finance statistics, and balance of payments.

For economics researchers, the IMF API is an essential tool for accessing authoritative international economic data without manual downloads. The data powers research in macroeconomics, development economics, international finance, and policy analysis. The API provides access to key datasets including the World Economic Outlook (WEO), International Financial Statistics (IFS), Balance of Payments Statistics (BOP), and the Direction of Trade Statistics (DOTS).

The API requires no authentication and returns JSON data. It uses a hierarchical structure of datasets, indicators, and country/time dimensions.

## Authentication

No authentication is required. The IMF Data API is completely free and open.

```bash
# No API key needed
curl "https://www.imf.org/external/datamapper/api/v1/NGDP_RPCH?periods=2024"
```

## Core Endpoints

### List Available Datasets

```
GET https://www.imf.org/external/datamapper/api/v1
```

```bash
curl -s "https://www.imf.org/external/datamapper/api/v1" | python3 -m json.tool
```

### List Indicators in a Dataset

```
GET https://www.imf.org/external/datamapper/api/v1/indicators
```

### Get Data for an Indicator

```
GET https://www.imf.org/external/datamapper/api/v1/{indicator}?periods={year}
```

**Common Indicators:**
- `NGDP_RPCH`: Real GDP growth (annual percent change)
- `PCPIPCH`: Inflation, consumer prices (annual percent change)
- `BCA_NGDPD`: Current account balance (percent of GDP)
- `GGXWDG_NGDP`: Government gross debt (percent of GDP)
- `LUR`: Unemployment rate

**Example: Get real GDP growth for all countries in 2024:**

```bash
curl -s "https://www.imf.org/external/datamapper/api/v1/NGDP_RPCH?periods=2024" \
  | python3 -m json.tool
```

### JSON RESTful Web Service (IFS and other databases)

For more granular data, use the Dataflow-based API:

```
GET http://dataservices.imf.org/REST/SDMX_JSON.svc/CompactData/{database}/{dimensions}?startPeriod={start}&endPeriod={end}
```

**Example: Monthly CPI data for the US and China:**

```bash
curl -s "http://dataservices.imf.org/REST/SDMX_JSON.svc/CompactData/IFS/M.US+CN.PCPI_IX?startPeriod=2020&endPeriod=2025" \
  | python3 -m json.tool
```

### Python Example: Compare GDP Growth Across Countries

```python
import requests

DATAMAPPER_URL = "https://www.imf.org/external/datamapper/api/v1"

def get_indicator_data(indicator, periods=None):
    """Fetch IMF indicator data for all countries."""
    url = f"{DATAMAPPER_URL}/{indicator}"
    params = {}
    if periods:
        params["periods"] = ",".join(str(p) for p in periods)
    resp = requests.get(url, params=params)
    resp.raise_for_status()
    return resp.json()

# Compare real GDP growth across G7 countries
data = get_indicator_data("NGDP_RPCH", periods=[2022, 2023, 2024])
values = data.get("values", {}).get("NGDP_RPCH", {})

g7_codes = ["USA", "GBR", "FRA", "DEU", "JPN", "CAN", "ITA"]
print("Country | 2022   | 2023   | 2024")
print("--------|--------|--------|-------")
for code in g7_codes:
    country_data = values.get(code, {})
    row = f"{code:7s}"
    for year in ["2022", "2023", "2024"]:
        val = country_data.get(year, "N/A")
        if isinstance(val, (int, float)):
            row += f" | {val:5.1f}%"
        else:
            row += f" | {str(val):>6s}"
    print(row)
```

### Python Example: Exchange Rate Time Series

```python
import requests

def get_exchange_rates(country_codes, start_year, end_year):
    """Fetch exchange rate data from IFS database."""
    codes = "+".join(country_codes)
    url = (
        f"http://dataservices.imf.org/REST/SDMX_JSON.svc/"
        f"CompactData/IFS/A.{codes}.ENDA_XDC_USD_RATE"
        f"?startPeriod={start_year}&endPeriod={end_year}"
    )
    resp = requests.get(url)
    resp.raise_for_status()
    return resp.json()

data = get_exchange_rates(["BR", "IN", "ZA"], 2015, 2024)
series = data.get("CompactData", {}).get("DataSet", {}).get("Series", [])
for s in series:
    country = s.get("@REF_AREA", "Unknown")
    obs = s.get("Obs", [])
    if isinstance(obs, dict):
        obs = [obs]
    print(f"\n{country} exchange rate (LCU per USD):")
    for o in obs:
        print(f"  {o.get('@TIME_PERIOD')}: {o.get('@OBS_VALUE')}")
```

## Common Research Patterns

**Cross-Country Panel Analysis:** Retrieve indicator data for multiple countries and years to construct panel datasets for econometric analysis. Combine GDP growth, inflation, and trade data for gravity models or growth regressions.

**Policy Impact Assessment:** Track economic indicators before and after major policy changes or economic shocks. Compare indicator trajectories across treatment and control country groups.

**Forecasting Benchmarks:** Use IMF WEO projections as baseline forecasts to compare against model predictions. The IMF publishes projections for most indicators several years forward.

**Development Economics:** Access poverty, inequality, and structural indicators for developing economies to study convergence, aid effectiveness, and institutional quality.

## Rate Limits and Best Practices

- **No formal rate limit** published, but limit requests to 1 per second for sustained use
- **Caching:** IMF data updates infrequently (quarterly/annually); cache aggressi

Excerpt, first 6,001 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.

Install

Pinned to the audited commit e1ba289

Download folder ↗
git clone https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills
git -C Auto-Empirical-Research-Skills checkout e1ba289846fd

The author documents no install command, so this uses the repository directly. Our verdict covers commit e1ba289846fd only.

Works in which agents?

What its own text says, not a test

AgentStatusMore
OpenClawMentioned in its text, not testedSkills for OpenClaw · About OpenClaw
“Mentioned” means the skill’s text names the agent. We have not run it there.

Audit history

Every audit, every source change

  1. ✓SAFE B 89 / 100

    first audit · source e1ba289846fd

README badge

For maintainers · shows the latest audit

ModelsAtlas: SAFE BMODELSATLASSAFE · B
[![ModelsAtlas: SAFE B](https://modelsatlas.com/skills/brycewang-stanford/imf-data-api-guide/badge.svg)](https://modelsatlas.com/skills/brycewang-stanford/imf-data-api-guide/)

The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.

Add this badge to your README

[![ModelsAtlas: SAFE B](https://modelsatlas.com/skills/brycewang-stanford/imf-data-api-guide/badge.svg)](https://modelsatlas.com/skills/brycewang-stanford/imf-data-api-guide/)

Questions about Imf Data Api Guide

What does the Imf Data Api Guide skill do?
🔬 A curated collection of 23,000+ agent skills for empirical research across 8 social science disciplines. | 精选 23,000+ AI Agent 技能库,覆盖8大社会科学学科的实证研究。CoPaper.AI 20分钟完成一篇可复现的规范实证论文,并支持用户上传 Skills。-- Maintained by CoPaper.AI from Stanford REAP.
Is Imf Data Api Guide safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can Imf Data Api Guide access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
Which assistants does Imf Data Api Guide work with?
Its documentation mentions openclaw. That is what the text claims, not a compatibility test we ran.
How current is this page?
The grade is for one exact copy of the source (e1ba289846fd), read on 2026-10-08. The repository is watched, and a new audit runs when it changes — this is the first audit.

Sources

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.