Statistics Database API

Documentation

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.

GetSeries

Allows data series retrieving.

Example


URL

https://si3.bcentral.cl/SieteRestWS/SieteRestWS.ashx?user=user@example.com&pass=password&function=GetSeries&timeseries=F022.TPM.TIN.D001.NO.Z.D&firstdate=2021-10-10&lastdate=2021-10-15

Response

{
  "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": []
}
      

SearchSeries

Provides a list of available timeseries per frequency and its metadata.

Example


URL

https://si3.bcentral.cl/SieteRestWS/SieteRestWS.ashx?user=user@example.com&pass=password&function=SearchSeries&frequency=QUARTERLY

Response

{
  "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"
    },
    ...
  ]
}