I'm fairly new to python, but I've been struggling to get anything more than ten results from a package_list request from Data.Gov's CKAN API. Here's what I'm using:
response = urlopen('http://catalog.data.gov/api/3/action/package_list')
assert response.code == 200
response_dict = json.loads(response.read())
assert response_dict['success'] is True
len(response_dict['result']['results'])
The result is only 10 datasets. This is the same when I use package_search, it only returns the first ten results. What am I doing wrong? I can't seem to find the answer in the CKAN documentation.
Any suggestions/help would be appreciated!
- Ben