Metadata examples
Please refer to the Useful tips section for examples using Python or command line tools such as curl or wget with the API.
Datastructure - DSD
Retrieve version 1.0 of the DSD with id ECB_EXR1 maintained by the ECB, as well as the codelists and the Concepts used in the DSD
https://data-api.ecb.europa.eu/service/datastructure/ECB/ECB_EXR1/1.0?references=children |
Retrieve the latest version in production of the DSD with id ECB_EXR1 maintained by the ECB, without the codelists and Concepts of the DSD
https://data-api.ecb.europa.eu/service/datastructure/ECB/ECB_EXR1 |
You can also use the keyword latest:
https://data-api.ecb.europa.eu/service/datastructure/ECB/ECB_EXR1/latest |
Retrieve all DSDs maintained by the ECB, as well as the Dataflows using these DSDs
https://data-api.ecb.europa.eu/service/datastructure/ECB?references=dataflow |
You can also use the keywords all and latest:
https://data-api.ecb.europa.eu/service/datastructure/ECB/all/latest?references=dataflow |
Codelist
Retrieve the latest version in production of all codelists maintained by all maintenance agencies, but without the codes
https://data-api.ecb.europa.eu/service/codelist?detail=allstubs |
You can also use the all and latest keywords:
https://data-api.ecb.europa.eu/service/codelist/all/all/latest?detail=allstubs |
Structure - all type of structures
The structure keyword can be used to retrieve metadata regardless of their type (codelist, Concept scheme, etc.). For example, the following string retrieves the latest version in production of all maintainable artefacts maintained by the ECB as stubs:
https://data-api.ecb.europa.eu/service/structure/ECB?detail=allstubs |
Again, you can also use the all and latest keywords:
https://data-api.ecb.europa.eu/service/structure/ECB/all/latest?detail=allstubs |