入门
在 Duaer 里查 IMF 经济指标
在 Duaer 里:IMF《世界经济展望》各国数据(含预测):GDP 增长、通胀、失业、债务、经常账户等;也可按关键词查找指标代码。一次成功查询用 1 额度。
能拿到什么
Duaer 数据市场里的「IMF 经济指标」:IMF《世界经济展望》各国数据(含预测):GDP 增长、通胀、失业、债务、经常账户等;也可按关键词查找指标代码。查到结果时用 1 额度,结果交给数字组织的下一个节点。
从节点创建器选 Duaer 数据 → IMF 经济指标,或打开 数据市场。相关:世界银行指标、汇率。
适合做什么
- 为国别计划或预算获取 GDP 增长、通胀等预测。
- 先用 Words 找到正确的 IMF 指标代码,再查数值。
在画布里检索
- 打开节点创建器,选 Duaer 数据 → IMF indicators。
- 填 Indicator(如 NGDP_RPCH)与 Country(三位 ISO 代码,如 CHN,USA);或只填 Words 查指标代码;From/To Year 可选。
- Limit 默认 10,最大 20。执行。
查到结果才扣 1 额度;没有结果、输入有误或上游失败都不扣。
用 API 调用
- GET https://api.duaer.com/v1/data/imf?indicator=NGDP_RPCH&country=CHN,USA&from=2020&to=2027
- Authorization: Bearer <Duaer key>
下方是与数据市场「复制技能」相同的英文技能,含参数、示例与返回字段。
调用技能(英文)
与数据市场「复制技能」一致。
---
name: duaer-imf
description: >-
Duaer IMF indicators. IMF World Economic Outlook figures by country, including forecasts: GDP growth, inflation, unemployment, debt, and current account. Also finds indicator codes by words.
One successful search uses 1 Duaer credit.
---
# Duaer IMF indicators
Duaer IMF indicators reads the IMF DataMapper. With an indicator and countries it returns yearly values, newest first, up to the current year unless you set `to` later to include projections. With only `words` it lists matching indicator codes.
## When to use
- Get growth or inflation forecasts for a country plan or a budget.
- Find the right IMF code first with `words`, then fetch values.
## When not to use
- Long historical series with many indicators. Use https://skills.duaer.com/world-bank.md.
- Monthly or quarterly data. The DataMapper is yearly.
## Call
`GET https://api.duaer.com/v1/data/imf?indicator=NGDP_RPCH&country=CHN,USA&from=2020&to=2027`
Header: `Authorization: Bearer <Duaer key>`
Use an account key or a model API key.
Get a Duaer key: https://skills.duaer.com/keys.md
## Parameters
Provide `indicator` with `country`, or `words` to find indicator codes.
- `indicator` — IMF indicator code, such as NGDP_RPCH (real GDP growth, %).
- `country` — Three-letter ISO code, or several joined by commas, such as CHN,USA.
- `words` — Optional. Find indicator codes by words, such as inflation, when no indicator is given.
- `from` — Optional. First year.
- `to` — Optional. Last year. Later years may be IMF projections.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.
Common codes: `NGDP_RPCH` real GDP growth (%), `PCPIPCH` inflation (%), `LUR` unemployment (%), `GGXWDG_NGDP` government debt (% of GDP), `BCA_NGDPD` current account (% of GDP), `NGDPDPC` GDP per person (US$).
## Examples
- `GET https://api.duaer.com/v1/data/imf?indicator=NGDP_RPCH&country=CHN,USA&from=2020&to=2027` — real GDP growth with forecasts.
- `GET https://api.duaer.com/v1/data/imf?words=inflation` — find inflation indicator codes.
## Result
The response is `{ "items": [...] }`. Each item has `source`, `title`, `url`, and `summary`, plus:
- `country` — ISO3 code (value rows).
- `indicator`, `indicatorName`, `unit` — IMF code, label, and unit.
- `year`, `value` — year and value (value rows).
- `dataset` — dataset name (indicator rows).
Fields without a value are left out.
## Credits
A search that returns at least one row uses 1 credit.
An empty search, a search that finds nothing, or a failed search uses 0.
Wrong input returns 400 with a message and uses 0.
No remaining credits returns 402 and does not search.
A missing key returns 401.
## Related
- https://skills.duaer.com/world-bank.md — Duaer World Bank indicators
- https://skills.duaer.com/exchange-rates.md — Duaer Exchange rates
常见问题
Duaer 的IMF 经济指标检索扣多少额度?
查到结果时扣 1 额度;没有结果或出错不扣。
Duaer 的 IMF 数据包含预测吗?
包含。把 To 设为未来年份,Duaer 会一并返回 IMF 预测;当年及之后的行会标注可能为预测值。
同组