[ckan-discuss] Basic CKAN API question

Ross Jones ross at servercode.co.uk
Mon Apr 22 23:44:59 BST 2013

Hi Tim,

It's expecting a POST with a JSON body, you could probably try the following in a GET request instead.


The parameters don't seem to matter for this type of call.



On 22 Apr 2013, at 23:23, therzog1 at worldbank.org wrote:

> Hi all,
> Quick CKAN API question: how do I get a list of all groups on a CKAN site?  Specifically, I'm trying to fetch the list of groups from datahub.io so I don't have to page through the list manually (it's not in alphabetical order, at least not by group name). But when I follow the docs and go to http://datahub.io/api/3/action/group_list I get the message below.
> "Bad request - JSON Error: No request body data"
> I see something in the API docs about "posting an JSON dictionary in an HTTP POST request to one of CKAN’s API URLs" but I'm not sure what that means in this instance (can't I just send an HTTP GET?) . An example would be helpful.
> Thanks,
> Tim
> <21759961.jpg>	 	Timothy (Tim) Herzog
> Open Data Specialist, Development Data Group
> World Bank, 1818 H St. NW Washington, DC 20433
> Tel: 202-473-1701 | therzog1 at worldbank.org | data.worldbank.org
> Skype: timherzog | Twitter: @tgherzog
> _______________________________________________
> ckan-discuss mailing list
> ckan-discuss at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-discuss
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-discuss/attachments/20130422/bc29491e/attachment-0001.htm>

More information about the ckan-discuss mailing list