In my project, I used CKAN to manage my data, now I want to obtain the dataset list under my authorization(both public and private datasets), does anyone know how could I get such a list through CKAN API?
Get public datasets using package_list
or package_search
.
Get datasets that your user has created, including ones that are private and drafts, using user_show
with option include_datasets=True
. Remember to use your user's api key, of course.
However I believe this leaves the private datasets created by other members of your organizations, that are not available afaict via the API. I raised an issue: https://github.com/ckan/ckan/issues/3176 in case you'd like to provide a contribute a fix or bounty for someone else to.