MediaWiki

Apihelp-query+allcategories-param-max

From Gender and Tech Resources

Only return categories with at most this many members.