MediaWiki:Apihelp-query+messagegroups-param-depth

When using the tree format, limit the depth to this many levels. Value 0 means that no subgroups are shown. If the limit is reached, the output includes a 'groupcount' value, which states the number of direct children.