Skip to content

We’re working through some technical issues and you may experience variable availability of the site.   

Thanks for your patience. 


Kia ora, support services are closed from 24 December 2025 to 8 January 2026. We will not be actively monitoring emails during this time. We appreciate your patience and look forward to assisting you on our return. 

The Data.govt.nz Team

Export an agencies datasets into sub-folders including any hosted or referenced data files and a json file with metadata.

Requirements

Steps

  1. Make sure you have the CKANAPI CLI tool installed
  2. Make sure you have the jq and tr tools installed
  3. Run the command below replacing the properties in UPPERCASE with your own values.
ckanapi dump datasets $(ckanapi -r CKAN_URL action package_search q=organization:AGENCY_ID | jq .results[].name | tr -d '"') -r CKAN_URL -D PATH_TO_FILES

Top