Example scripts and resources for interacting with open data from the Scottish Health and Social Care Open Data platform via API in R and python.
Open Data functions in the phsopendata package can also be used to download resources and datasets from the open data portal.
Extensive documentation of the CKAN API is available in the CKAN docs.