DBnomics — Fetch Time-Series Data
dbnomics.data.fetch_seriesFetch the full time-series history for a specific series from DBnomics. Returns an array of {period, value} observations covering up to decades of data. Periods are formatted as YYYY for annual, YYYY-QN for quarterly, YYYY-MM for monthly. Example: provider=WB, dataset=WDI, series=A-US.NY.GDP.MKTP.CD → US nominal GDP in current USD annually. Example: provider=OECD, dataset=QNA, series=USA.B1GQ.LNBARSA.Q → US real GDP quarterly. Use last_n_periods to limit output to the most recent N observations. Covers data from IMF, World Bank, OECD, Eurostat, ECB, BIS, ILO, and 85+ other agencies. No API key required — open data under CC-BY 4.0.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| series_code | Yes | Series code within the dataset (e.g. A-US.NY.GDP.MKTP.CD for US annual nominal GDP in WB/WDI). Use dbnomics.series to browse available codes. | |
| dataset_code | Yes | Dataset code within the provider (e.g. WDI, QNA). Use dbnomics.datasets to list codes. | |
| provider_code | Yes | DBnomics provider code (e.g. WB, OECD, IMF). Use dbnomics.providers to list codes. | |
| last_n_periods | No | Return only the last N observations (most recent). Omit to return the full history. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |