Getting request count by path through API

Basically just want to get this data (shown below) through the graphql api but couldn’t quite figure it out. Closest I got was getting “views” by path, but views were always zero. Any datasets that actually returned request counts didn’t allow grouping by path.

Any help greatly appreciated!