Macro Indicator Data
macrodataAccess historical macro-economic indicator data by indicator code, with date range filtering and pagination for actual, previous, and forecast values.
Instructions
Get historical data for a macro-economic indicator by its code (from macrodata_indicators). start_date/end_date accept YYYY-MM-DD. Returns {count, info{indicator_code, country, name, describe, periodicity, importance(1=low/2=mid/3=high)}, data[]{period, release_at, actual_value, previous_value, forecast_value, unit}}. period format varies by periodicity: monthly="YYYY-MM-DD", quarterly="YYYY-Qn" (e.g. "2024-Q1"), annual="YYYY-01-01". Note: empty actual_value = not yet released (only forecast_value available); empty data[] = no records in range. Supports offset/limit pagination (max 100 per page). Returns error if indicator_code does not exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of data points to return (default 100, max 100). | |
| offset | No | Pagination offset for historical data points, default 0. | |
| end_date | No | Latest release date to include (YYYY-MM-DD, e.g. `"2024-12-31"`). | |
| start_date | No | Earliest release date to include (YYYY-MM-DD, e.g. `"2024-01-01"`). | |
| indicator_code | Yes | Indicator code from `macrodata_indicators`, e.g. `"30771718"`. |