bcrp_get_series_long
Fetch up to 50 BCRP economic series at once as a tidy long-format table, even with mixed frequencies. Get series_code, period, date, and value rows, with optional full history.
Instructions
Fetch MANY BCRP series at once as one tidy long-format table.
Unlike bcrp_get_series, the codes do NOT have to share a frequency and the
limit is 50 rather than 10 — each series is fetched separately, so the
code→value mapping is always correct.
Returns rows of {series_code, period, date, value}. date is an
ISO-sortable rendering of BCRP's human period label. Missing observations
are omitted rather than emitted as nulls.
Set all_history=true to pull each series' entire published history (bounded by max_rows).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | 'esp' (Spanish) or 'ing' (English) | esp |
| max_rows | No | Hard ceiling on returned rows. | |
| end_period | No | End of range, same format as start_period. | |
| all_history | No | Fetch each series' full published history. | |
| series_codes | Yes | 1–50 BCRP series codes; frequencies may be mixed. | |
| start_period | No | Start of range (Daily DD-MM-YYYY, Monthly/Quarterly YYYY-M). |