# List a view's groups (/reference/api/views/listViewGroups)

Returns each group of the items a view lists, with how many items it holds, in the view's group order. A view with no `group.by` that lists at least one item returns one group whose `key` is `null`; a view that lists nothing returns no group.