Retrieving data from the kobo rest api

587 views
Skip to first unread message

Michael Bukachi

unread,
Sep 12, 2018, 2:15:39 AM9/12/18
to KoBoToolbox Users
How do I retrieve data for a form using the rest API in a different format, say csv or xls. The json format returned is quite difficult parse since each form might have different keys for the data field.
I noticed that on  the toolbox website, one could export as xls and was wondering if similar functionality was available via the API

Punya Sapkota

unread,
Sep 12, 2018, 7:46:47 AM9/12/18
to KoBoToolbox Users
Dear Michael,

If you are interested to use R, here are the functions and working examples that download CSV data from KoBo using API and save it as xlsx.


Best regards,
Punya

ABOUDOU Rachidi

unread,
Sep 12, 2018, 8:24:44 AM9/12/18
to kobo-...@googlegroups.com
Dear all,

I am using stata. It is very difficult for me to have database in stata format with labels and codes. Do we have a simple way to convert database from kobo to stata format with labels and codes?

Thanks in advance


ABOUDOU Rachidi, (Msc) Agricultural Economist, 
 






--
You received this message because you are subscribed to the Google Groups "KoBoToolbox Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kobo-users+...@googlegroups.com.
To post to this group, send email to kobo-...@googlegroups.com.
Visit this group at https://groups.google.com/group/kobo-users.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

Michael Bukachi

unread,
Sep 12, 2018, 8:53:46 AM9/12/18
to KoBoToolbox Users
Figured it out from your code. A call to the following url 'https://kc.kobotoolbox.org/api/v1/data/formid.xls' returns an excel document.
Reply all
Reply to author
Forward
0 new messages