Developer Tools
Overview | Comparison of Version | Deprecation of ws.data.csiro.au
Overview
The Data Access Portal provides RESTful web services APIs for programmatic use of the DAP, as well as an OAI-PMH provider for harvesting metadata.
There are four main groups of web service endpoints that can be used:
Endpoints | Status | Also known as | Access | Description | Documentation |
https://ws.data.csiro.au/collections | Deprecated | /ws/v1 | Public – read only | Use this to search and access DAP collections. |
Documentation no longer available For information see Deprecation of ws.data.csiro.au |
https://data.csiro.au/dap/ws/v2/collections | Stable | /ws/v2 | Public – read only | Use this to search and access DAP collections. | https://data.csiro.au/dap/swagger-ui.html?urls.primaryName=%40DAP-WS-V2 |
https://data.csiro.au/dap/api/v1 | Deprecated | /api/v1 | CSIRO staff only:
|
Use this to programmatically create DAP collections. Not all DAP features implemented. | https://data.csiro.au/dap/swagger-ui.html?urls.primaryName=DAP-API-V1 |
https://data.csiro.au/dap/api/v2 | Stable / In Development | /api/v2 | CSIRO staff only | All deposit features available in the DAP user interface. | https://data.csiro.au/dap/swagger-ui.html?urls.primaryName=DAP-API-V2 |
Comparison of Versions
For searching and accessing DAP collections, we strongly recommend the use of /ws/v2 (https://data.csiro.au/dap/ws/v2/collections).
For most existing uses of the deprecated /ws/v1 it would be sufficient to substitute the text
-
https://ws.data.csiro.au/
with
-
https://data.csiro.au/dap/ws/v2
Feature | /ws/v1 (deprecated) | /ws/v2 (stable) |
---|---|---|
Responses in JSON or XML | Yes | Yes |
Authenticate as CSIRO staff, Partners or OPAL user | No | Yes |
Search collections by keyword | Yes | Yes |
Search by location | No | Yes |
Search by:
|
No | Yes |
Search by publication date range | No | Yes |
Apply search facets to filter results | No | Yes |
Retrieve collection metadata | Yes | Yes |
List a collection’s available versions | Yes | Yes |
List a collection’s files | Partial | Yes |
Retrieve a file from a collection
(for mounted collections < 10GB) |
Yes | Yes |
List a collection’s supporting attachments | Yes | Yes |
Retrieve a supporting file from a collection | Yes | Yes |
Retrieve image thumbnails from a collections | No | Yes |
List accessible download options for a collection | No | Yes |
List the folder tree for a collection | No | Yes |
Retrieve a paginated list of files for a given folder in a collection | No | Yes |
Retrieve a list of files as a zip archive | No | Yes |
Export a collection’s file level metadata to Excel | No | Yes |
Mount a collection | No | Yes |
Retrieve a licence | Yes | Yes |
Retrieve a list of “external system” tags | Yes | Yes |
Retrieve a list of collections for a external system tag | Yes | Yes |
AAHL Virus Image Search endpoints | No | Yes |
ATNF Pulsar Observation Search endpoints | No | Yes |
CASDA Observation Search endpoints | No | Yes |
CASDA Skymap Search endpoints | No | Yes |
Deprecation of ws.data.csiro.au
The original DAP web services interface (ws.data.csiro.au) is now deprecated. We advise all users of this web service to migrate their code to use data.csiro.au/dap/ws/v2. ws.data.csiro.au was decommissioned in February 2024.
/ws/v2 supports all the features of ws.data.csiro.au and adds more capabilities.
For almost all uses of ws.data.csiro.au it is possible to substitute
- https://ws.data.csiro.au/
with
- https://data.csiro.au/dap/ws/v2/
e.g.:# old web services https://ws.data.csiro.au/collections.json?q=water # /ws/v2 web services https://data.csiro.au/dap/ws/v2/collections.json?q=water
A notable exception is when encoding DOIs (Digital Object Identifiers). ws.data.csiro.au encoded slashes – or “/” – as a tilde – or “~’ – character. /ws/v2 uses unencoded slashes.# e.g. for https://doi.org/10.25919/5b6ae6b515850 # old web services encodes the slash as ~ https://ws.data.csiro.au/collections/10.25919~5b6ae6b515850.json # /ws/v2 web service does not use an encoded slash https://data.csiro.au/dap/ws/v2/collections/10.25919/5b6ae6b515850.json
Unlike other identifiers that can be used with /ws/v2, DOIs may only be used to retrieve collection metadata. Use the restful links found in the response to navigate to other endpoints related to the collection, e.g.# e.g. for https://doi.org/10.25919/5b6ae6b515850 # Use the following URL to retrieve the collection metadata. https://data.csiro.au/dap/ws/v2/collections/10.25919/5b6ae6b515850.json # Get the “versions” value from the response to find URLs for all versions. # This uses the Data Collection ID. https://data.csiro.au/dap/ws/v2/collections/36589/versions.json
Read more about DAP identifiers at Understanding DAP Collection Identifiers