[ckan-dev] Is it possible to get all datasets AND metadata in a single RESTful API call ?

Nigel Babu nigel.babu at okfn.org
Sat Mar 29 11:36:41 UTC 2014


Hello Vladimir,

Is this what you want?
http://ckan-gradzagreb.cloudapp.net/api/action/package_show?id=vrtici

Nigel Babu

Developer  |  @nigelbabu <https://twitter.com/nigelbabu>

The Open Knowledge Foundation <http://okfn.org/>

Empowering through Open Knowledge

http://okfn.org/  |  @okfn <http://twitter.com/OKFN>  |  OKF on
Facebook<https://www.facebook.com/OKFNetwork> |
Blog <http://blog.okfn.org/>  |  Newsletter<http://okfn.org/about/newsletter>

 CKAN | http://ckan.org/ | @CKANproject
<http://twitter.com/CKANproject> |the world’s leading open-source data
portal platform


On 29 March 2014 14:08, Vladimir Mašala <vladimirmasala at gmail.com> wrote:

> Hi all, i have API question...
>
> I am trying to get data from one of datasets (
> http://ckan-gradzagreb.cloudapp.net/dataset/vrtici) is it possible to do
> that via API?
> I feel it should be very easy and simple but i can't find way..
>
> What am i missing?
>
> Thnx for help
>
>
>
> On Sat, Mar 29, 2014 at 4:29 AM, Nigel Babu <nigel.babu at okfn.org> wrote:
>
>> There is one API endpoint, but if you use it too much, you'll end up
>> hammering the CKAN server anyway (we only fixed it to use solr recently and
>> it's not yet in a released version):
>> http://master.ckan.org/api/3/action/current_dataset_list_with_resources
>>
>> Nigel Babu
>>
>> Developer  |  @nigelbabu <https://twitter.com/nigelbabu>
>>
>> The Open Knowledge Foundation <http://okfn.org/>
>>
>> Empowering through Open Knowledge
>>
>> http://okfn.org/  |  @okfn <http://twitter.com/OKFN>  |  OKF on Facebook<https://www.facebook.com/OKFNetwork> |
>> Blog <http://blog.okfn.org/>  |  Newsletter<http://okfn.org/about/newsletter>
>>
>>  CKAN | http://ckan.org/ | @CKANproject <http://twitter.com/CKANproject>|the world’s leading open-source data portal platform
>>
>>
>> On 25 March 2014 18:37, Martin Stephenson <stephenson.martin at gmail.com>wrote:
>>
>>> Hi all,
>>> I'm looking at the CKAN APIs and I want to know if there is a RESTful
>>> API call that will give me a list of all datasets including their full
>>> metadata.
>>> Right now I can do this by get the list of datasets, then for each
>>> dataset I can individually get it's full metadata and list of downloadable
>>> files.
>>> Is there a way to do this in a single call ? Otherwise I will really be
>>> hammering the CKAN server with possibly 1000's of calls to get all the
>>> metadata (i.e. a call per dataset) ?
>>> Thanks !
>>>
>>> --
>>>
>>> Martin Stephenson
>>> Email : stephenson.martin at gmail.com
>>>
>>> _______________________________________________
>>> ckan-dev mailing list
>>> ckan-dev at lists.okfn.org
>>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>>
>>>
>>
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>
>>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140329/f519bd9d/attachment-0003.html>


More information about the ckan-dev mailing list