bcrp_get_series
Fetch time series data from BCRP (Peru's central bank) by supplying 1–10 series codes and an optional date range. Get historical values for indicators like exchange rates, interest rates, or GDP.
Instructions
Fetch time series data from the BCRP (Banco Central de Reserva del Perú) API.
Accepts 1–10 series codes of the SAME frequency. Series codes can be found using
bcrp_search_catalog or the bcrp://series-catalog resource.
Period format by frequency:
Monthly:
YYYY-M(e.g.2024-1= January 2024,2024-12= December 2024)Quarterly:
YYYY-Q(e.g.2024-1= Q1 2024,2024-4= Q4 2024)Daily:
DD-MM-YYYY(e.g.01-01-2025)Annual:
YYYY(e.g.2024)Leave both periods empty to get the most recent available data.
Important: All series in one call must have the same frequency (all daily, all monthly, etc.).
Example codes: PD04637PD (exchange rate), PD12301MD (policy rate), PN00196MM (total liquidity), PN03503MQ (GDP var%)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Language for series names: 'esp' (Spanish) or 'ing' (English) | esp |
| end_period | No | End of date range. Same format as start_period. | |
| series_codes | Yes | List of 1–10 BCRP series codes (same frequency). E.g. ['PD04637PD', 'PD12301MD'] | |
| start_period | No | Start of date range. Format depends on series frequency: - Monthly: YYYY-M (e.g. '2020-1') - Quarterly: YYYY-Q (e.g. '2020-1') - Daily: DD-MM-YYYY (e.g. '01-01-2025') Leave empty for most recent data. |