Browse

Data examples

Please refer to the Useful tips section for examples using Python, R or command line tools such as curl or wget with the API.

To make the below examples simple mainly single parameters are being used to filter data, but they can be combined to narrow down the desired output.

Retrieve the data for the time series M.USD.EUR.SP00.A for the EXR Dataflow
https://data-api.ecb.europa.eu/service/data/EXR/M.USD.EUR.SP00.A
Retrieve the data for the EXR Dataflow, matching the supplied Series keys, using wildcarding for the second Dimension
https://data-api.ecb.europa.eu/service/data/EXR/M..EUR.SP00.A
Retrieve the updates and revisions for the data matching the supplied Series keys, using the OR operator for the second Dimension. As mentioned previously, the ISO 8601 timestamp needs to be percent-encoded.
https://data-api.ecb.europa.eu/service/data/EXR/M.USD+GBP+JPY.EUR.SP00.A?updatedAfter=2009-05-15T14%3A15%3A00%2B01%3A00
Retrieve the data matching the supplied Series key and restricting the start and end dates.
https://data-api.ecb.europa.eu/service/data/EXR/D.USD.EUR.SP00.A?startPeriod=2009-05-01&endPeriod=2009-05-31
Retrieve all the data for the EXR Dataflow. Please note that depending on the Dataflow size, retrieving all its data could take a significant amount of time to process.
https://data-api.ecb.europa.eu/service/data/EXR
Retrieve data in the CSV format
https://data-api.ecb.europa.eu/service/data/EXR/M.USD.EUR.SP00.A?format=csvdata
Retrieve the last 2 most recent observations for 3 exchange rates
https://data-api.ecb.europa.eu/service/data/EXR/M.USD+GBP+JPY.EUR.SP00.A?lastNObservations=2
Retrieve only the dimension codes, observation value and time period, all attributes are excluded
https://data-api.ecb.europa.eu/service/data/EXR/D.USD+GBP+JPY.EUR.SP00.A?detail=dataonly
Retrieve only serieskeys for all daily exchange rates in CSV format
https://data-api.ecb.europa.eu/service/data/EXR/D..EUR.SP00.A?detail=serieskeysonly&format=csvdata