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.
MediaWiki:Apihelp-query+messagegroups-param-depth
[+/-]
Widgets
Widgets<bs-widget-edit>
From Asterix & Friends - Wiki