This section documents DATALHUB’s API, for developers who want to write code that interacts with DATALHUB sites and their data. The following are a set of operations you can handle through the API

Get JSON-formatted lists of a site’s datasets:

http://$DOMAIN/api/dataset
            

GET JSON/XML formatted list of a specific dataset

http://$DOMAIN/api/dataset/$datasetID
            

The default response is JSON, but you can easily switch to XML by appending .xml by the end of the call.

http://$DOMAIN/api/dataset.xml
            

GET JSON/XML formatted metadata for a specific digital asset

http://$DOMAIN/api/datum/$datumID
            

The list of the digital assets is provided in the retrieval of a dataset. The get datum call returns the metadata for a digital data. The download path for a specific digital asset is: http://$DOMAIN/download/download?datumId=$datumID&datasetId=$datasetID

API calls for creation, upload, update of Datasets and Digital Assets is not active at this stage. If you would like to use this application and need these calls, drop me a line.