The API should support the ability to query grouping functions: groupfunc (grpavg, grpmax, grpmin, grpsum). This would allow better understanding of item values from a grouping perspective for validation before implementing the grp* item key and the ability to look at grouped data values where a grp* item key was not previously set.
There is precedent for the use of group aggregates with the existing API methods, but the implementation is akward and could benefit from optimization(s) rather than multiple queries. For example: