The Central Bank of Chile provides two types of web services; the first one allows the retrieval of time series data and the second contains a catalogue of available time series.
The API is a mechanism that facilitates access to information from the Statistics Database (BDE) using different programming languages or tools (such as R, Python, among others). However, from the fifteenth significant digit onward, minor differences may be observed compared to the Excel download available in the BDE. These differences are due to the computational representation of numbers and do not constitute errors or revisions to the information published in the Statistics Database.
Allows data series retrieving.
Where:
https://si3.bcentral.cl/SieteRestWS/SieteRestWS.ashx?user=user@example.com&pass=password&function=GetSeries×eries=F022.TPM.TIN.D001.NO.Z.D&firstdate=2021-10-10&lastdate=2021-10-15
{
"Codigo": 0,
"Descripcion": "Success",
"Series": {
"descripEsp": "Tasa de política monetaria (TPM) (porcentaje)",
"descripIng": "Monetary policy rate (MPR) (percentage)",
"seriesId": "F022.TPM.TIN.D001.NO.Z.D",
"Obs": [
{
"indexDateString": "12-10-2021",
"value": "1.5",
"statusCode": "OK"
},
{
"indexDateString": "13-10-2021",
"value": "1.5",
"statusCode": "OK"
},
{
"indexDateString": "14-10-2021",
"value": "2.75",
"statusCode": "OK"
},
{
"indexDateString": "15-10-2021",
"value": "2.75",
"statusCode": "OK"
}
]
},
"SeriesInfos": []
}
Provides a list of available timeseries per frequency and its metadata.
Where:
https://si3.bcentral.cl/SieteRestWS/SieteRestWS.ashx?user=user@example.com&pass=password&function=SearchSeries&frequency=QUARTERLY
{
"Codigo": 0,
"Descripcion": "Success",
"Series": {
"descripEsp": null,
"descripIng": null,
"seriesId": null,
"Obs": null
},
"SeriesInfos": [
{
"seriesId": "F061.1.FLU.S.USD.Z.T",
"frequencyCode": "QUARTERLY",
"spanishTitle": "Cuenta corriente, 1996-2011 (BP)",
"englishTitle": "Current account, 1996-2011 (BP)",
"firstObservation": "01-01-1996",
"lastObservation": "01-07-2011",
"updatedAt": "09-01-2015",
"createdAt": "09-01-2015"
},
{
"seriesId": "F061.1A.FLU.S.USD.Z.T",
"frequencyCode": "QUARTERLY",
"spanishTitle": "Comercio de bienes y servicios, 1996-2011 (BP)",
"englishTitle": "Current account - Goods and services, 1996-2011 (BP)",
"firstObservation": "01-01-1996",
"lastObservation": "01-07-2011",
"updatedAt": "09-01-2015",
"createdAt": "09-01-2015"
},
{
"seriesId": "F061.1AA.FLU.S.USD.Z.T",
"frequencyCode": "QUARTERLY",
"spanishTitle": "Balanza comercial, 1996-2011 (BP)",
"englishTitle": "Trade balance, 1996-2011 (BP)",
"firstObservation": "01-01-1996",
"lastObservation": "01-07-2011",
"updatedAt": "09-01-2015",
"createdAt": "09-01-2015"
},
...
]
}