TY - JOUR A1 - Willekens, Frans T1 - Programmatic access to open statistical data for population studies: The SDMX standard Y1 - 2023/12/13 JF - Demographic Research JO - Demographic Research SN - 1435-9871 SP - 1117 EP - 1162 DO - 10.4054/DemRes.2023.49.40 VL - 49 IS - 40 UR - https://www.demographic-research.org/volumes/vol49/40/ L1 - https://www.demographic-research.org/volumes/vol49/40/49-40.pdf L2 - https://www.demographic-research.org/volumes/vol49/40/49-40.pdf L3 - https://www.demographic-research.org/volumes/vol49/40/files/readme.49-40.txt L3 - https://www.demographic-research.org/volumes/vol49/40/files/demographic-research.49-40.zip N2 - Background: The public sector publishes vast amounts of open data and metadata. APIs (application programming interfaces) are transforming the way data are collected, documented, and disseminated. The transformation is slow, however, due to differences in communication protocol, data definition, and data format. The development is of particular relevance to demography, being a data-intensive science. It paves the way to the automation of data acquisition and the integration of data acquisition and data analysis. Together with the parallel development of literate programming, which allows the integration of text and computer code in a single document, programmatic access to data makes workflows transparent, verifiable, and easy to replicate by others. The Statistical Data and Metadata Exchange (SDMX) standard, which has emerged as a popular option for data and metadata exchange, makes finding and retrieving data and metadata easy and swift. Query strings form URLs with a standardised syntax. Objective: The aim of this paper is to describe the SDMX standard and demonstrate its benefits to our profession by retrieving demographic data and the associated metadata from online databases disseminated by a variety of data providers. The software environment used is R. Contribution: This is the first review of the SDMX standard aimed at the study of population. The paper includes the R code to access databases and download data and metadata. The paper includes several hyperlinks to relevant documents issued by data providers, giving readers immediate access to the referenced material. ER -