I have been using robotoolbox package in R from @dickoa to download data via API for a long time. Recently the same R scripts will only download 100 observations, regardless which kobotoolbox project I wish to download. Can anyone assist, has there been an API change?
I hope all is well, and thanks for using robotoolbox. Indeed, the page size was capped at 100 max, I had to change the package default recently. The current robotoolbox should work but it’ll be slightly slower because of the increased number of request.
I do have a question for @Xiphware and/or someone from the core team: Is there a way to know via a request the default page size and max page size? I understand that I might vary from one server to the next, and I want to be able to give more flexibility instead of having 100/1000 by default across different servers.
I also thought so, but someone using the kf server told me that the limit was set at 100. I wonder I could safely set the default limit to 1000 (maximum allowed).
Thanks for the response @dickoa indeed after downloading the latest, I could download all 800 rows as previously, the only difference is the new version renamed my select_multiple variables adding _1 to each, something it never did before, but not an issue.
So is there a limit I will hit at some point, I am currently at 830 observations, are there any surprises awaiting me at some threshold?
In theory, no limit. The package will send multiple request if the size of dataset is greater than the page size (default to 100 and max at 1000; robotoolbox use 1000). For a 830 observation, it’s just one pass, but if you end up with 3,250 observations, robotoolbox will send 3 requests and combine them for you. I’ll investiage the “_1” suffix in the select_multiple.