Get a raw series by explicit id
get_seriesFetch economic time series by explicit ID from World Bank, IMF, Caribstat, or DBnomics, with full citation and optional year filters or transforms.
Instructions
Fetch any supported series by explicit id: 'worldbank/' (needs country), 'imf/' (needs country; current-vintage IMF WEO/Fiscal Monitor via the DataMapper API), 'caribstat/<ECCB|CBB>//' (Eastern Caribbean Central Bank and Central Bank of Barbados tables, including Anguilla and Montserrat, which the World Bank does not report; find ids with search_indicators), or 'dbnomics///' (IMF WEO, OECD, Eurostat and more via DBnomics, dated editions, e.g. 'WEO:2025-04', for vintage-pinned reproducibility). 'fred/' ids are recognized only so the service can return an explanatory disabled response. FRED is permanently disabled here and those ids are never retrievable. Supports year filters and transforms (yoy, pct_change, index). Every response carries a full citation. Prefer get_indicator for common indicators.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | No | Required for worldbank/* series. | |
| end_year | No | ||
| series_id | Yes | e.g. 'worldbank/NY.GDP.MKTP.KD.ZG', 'imf/NGDP_RPCH', 'dbnomics/IMF/WEO:latest/BRB.NGDP_RPCH.pcent_change'. | |
| transform | No | ||
| start_year | No | ||
| latest_only | No | Return only the most recent non-null observation. | |
| strict_source | No | Reproducibility mode for registry-key ids: never substitute the fallback source. No effect on explicit source-prefixed ids (they already pin one source). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| unit | No | ||
| notes | Yes | ||
| country | No | ||
| citation | Yes | ||
| frequency | No | ||
| series_id | Yes | ||
| observations | Yes | ||
| fallback_used | No | ||
| stale_primary | No | ||
| fallback_reason | No | ||
| stale_primary_years | No |