Definition of Requests
In this section, the two types of requests that can be made are defined: latest data and series list.
Definition
This request allows you to obtain the latest published data for one or more series. The result for each series is supplemented with other variables such as frequency, description, or trend.
Request
https://app.bde.es/bierest/resources/srdatosapp/favoritas?idioma={language}&series={series_list}
where:
- language: can take the values es or en, to obtain the result in Spanish or English, respectively
- series_list: list of series codes separated by commas
Result
It is an array or list of objects. The fields of each object are:
- "serie": series code that appears in the CSV files of time series and in BIEST application
- "descripcionCorta": short description of the series
- "codFrecuencia": series frequency. It can take the values:
- D: daily
- M: monthly
- Q: quarterly
- A: annual
- "decimales": maximum number of decimal places in which the data is presented
- "simbolo": symbol representing the data
- "tendencia": trend compared to the previous period. It can take the following values:
- +: if it increases
- -: if it decreases
- =: if it remains the same
- "fechaValor": date and time in the format yyyy-mm-ddThh:mm:ssZ. Note: according to the frequency, each period is associated with the following dates:
- Daily frequency (D): the date is the reference date
- Monthly frequency (M): the date is the 1st of the reference month
- Quarterly frequency (Q): the date is the 1st of the first month of the reference quarter. For example, 2023-04-01 for the 2nd quarter
- Annual frequency (A): the date is January 1st of the reference year
- "valor": latest published data of the series
For example:
- Query of the latest data of a series: https://app.bde.es/bierest/resources/srdatosapp/favoritas?idioma=en&series=D_1NBAF472
- Query of the latest data of two series: https://app.bde.es/bierest/resources/srdatosapp/favoritas?idioma=en&series=D_1NBAF472,D_DNBAD172
Definition
This request allows you to obtain the details of one or several complete series as well as their metadata.
Request
https://app.bde.es/bierest/resources/srdatosapp/listaSeries?idioma={language}&series={series_list}&rango={time_range}
where:
- language: can take the values es or en, to obtain the result in Spanish or English, respectively
- series_list: list of series codes separated by commas
- time_range: it can be an annual range (for example, rango=2024) or a code that determines the number of months to display based on the frequency of the series:
- Daily frequency (D): 3M (last 3 months), 12M, and 36M
- Monthly frequency (M): 30M, 60M, and MAX (entire series)
- Quarterly frequency (Q): 30M, 60M, and MAX
- Annual frequency (A): 60M and MAX
Result
It is an array or list of objects. The fields of each object are:
- "serie": series code that appears in the CSV files of time series and in BIEST application
- "descripcion": series description
- "descripcionCorta": short description of the series
- "codFrecuencia": series frequency. It can take the values:
- D: daily
- M: monthly
- Q: quarterly
- A: annual
- "decimales": maximum number of decimal places in which the data is presented
- "simbolo": symbol representing the data
- "informacion": it is a list of additional metadata in the form of title-description pairs, which is displayed in the Information tab of the APP
- "fechaInicio": it corresponds to the first period available for the series (see the format defined for the "dates" field)
- "fechaFin": it corresponds to the last period available for the series (see the format defined for the "dates" field)
- "fechas": array with the dates obtained according to the request range. They are date and time in the format yyyy-mm-ddThh:mm:ssZ Nota: según la frecuencia, cada periodo se asocia a las siguientes fechas:
- Daily frequency (D): the date is the reference date
- Monthly frequency (M): the date is the 1st of the reference month
- Quarterly frequency (Q): the date is the 1st of the first month of the reference quarter. For example, 2023-04-01 for the 2nd quarter
- Annual frequency (A): the date is January 1st of the reference year
- "valores": array with the published data corresponding to the dates obtained in the "dates" field, and in the same order
For example:
- Query of the last 30 months of a monthly series: https://app.bde.es/bierest/resources/srdatosapp/listaSeries?idioma=en&series=D_1NBAF472&rango=30M
- Query of all periods of two series: https://app.bde.es/bierest/resources/srdatosapp/listaSeries?idioma=en&series=DTNPDE2010_P0000P_PS_APU,DTNSEC2010_S0000P_APU_SUMAMOVIL&rango=MAX
- Query for the year 2024 of a quarterly series: https://app.bde.es/bierest/resources/srdatosapp/listaSeries?idioma=en&series=DEEQ.N.ES.W1.S1.S1.T.B.G._Z._Z._Z.EUR._T._X.N.ALL&rango=2024