On Tue, Jan 28, 2014 at 8:34 AM, Christoffer G. Thomsen <chris@cgt.name> wrote:

The interesting part is line 76 to 86. This is the response item for the
page "VM i bandy 2015". It claims that this page only has one category,
"Kategori:Fremtidige sportsbegivenheder", but it actually has had three
categories ever since the first (and only, as of writing this) revision:
Kategori:Fremtidige sportsbegivenheder, Kategori:VM i bandy, and
Kategori:Sport i 2015.

I have tried to do this several times (with minor modifications) both in
the API Sandbox on dawiki and directly.
[...]
What is going on? Am I doing something wrong or is there a bug?

You're forgetting about continuation.[1] Because you specified cllimit=10 in the query, it's only returning you 10 categories total and expecting you to make a followup query to get the rest.

While in this case you could increase cllimit up to at least 500 (or use cllimit=max), you should still read up on continuation.

 [1]: https://www.mediawiki.org/wiki/API:Query#Continuing_queries


--
Brad Jorsch (Anomie)
Software Engineer
Wikimedia Foundation