Get Series
get_seriesTime-series data from the Banco Central de Reserva del Perú (BCRP) statistics API. Pass one or more BCRP series codes joined with "-" (all must share the same frequency). Returns the series names plus aligned period/value rows. Well-known codes (verified live): PD04722MM = monetary policy reference rate (monthly %); PD04638PD = interbank exchange rate S/ per US$, sell (daily); PD04640PD = banking-system (SBS) exchange rate S/ per US$, sell (daily); PN01273PM = Lima CPI, 12-month % change / annual inflation (monthly); PM04863AA = GDP, real % change (annual). Code suffix encodes frequency: ...PD/...PD = daily, ...PM/...MM = monthly, ...AA = annual. Browse more codes at https://estadisticas.bcrp.gob.pe. Optional start/end use the period format for that frequency: daily YYYY-M-D (2026-5-28), monthly YYYY-M (2026-5), annual YYYY (2024). lang is "ing" (English, default) or "esp" (Spanish).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End period, same format as start. Requires start. Omit for latest. | |
| lang | No | Response language: "ing" (English, default) or "esp" (Spanish). | |
| start | No | Start period in the frequency's format: daily YYYY-M-D, monthly YYYY-M, annual YYYY. Omit for full history. | |
| series | Yes | One or more BCRP series codes joined with "-", e.g. "PD04722MM" or "PD04638PD-PD04640PD". All joined codes must share the same frequency. |