1

I'm trying to export all data from CKAN instances for a big data project. How can I do this?

5
  • and how can i get all of its data ?
    – Mootaz
    Commented Jun 3, 2016 at 8:23
  • What do you mean all of its data? Do you have access to that CKAN instance? Do you want only the files or you also want the metadata? Commented Jun 6, 2016 at 10:14
  • @AlexPalcuie, the metadata, the csv and xml files as well
    – Mootaz
    Commented Jun 7, 2016 at 14:36
  • all data from every ckan instance, or all from one instance? if its one instance, which is it? @ojdo's answer is pretty informative
    – albert
    Commented Jun 9, 2016 at 18:23
  • also some harvesters are in here: github.com/opendatamonitor
    – Ulrich
    Commented Jun 13, 2016 at 15:56

1 Answer 1

4

Did you have a look at CKAN's extensive API documentation? To get you started, look at the answer to related question How do I get a full list of datasets available on Data.Gov using the CKAN API? and its example of using package_search.

Once you have a list of dataset IDs, you can get their metadata using the package_show API function.

The package url field sometimes contains directly downloadable files, sometimes they seem link to data provider pages which might need some individual handling (i.e. coding). But only restricting batch download to recognised filetypes (e.g. *.csv) should get you pretty far already.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.