get http://localhost:3001/rest/json/stats/aggregate/application
Response format is an object with keys '0' for optimized traffic, '1' for passthrough-shaped, '2' for passthrough-unshaped, '3' for all traffic. Each of these categories contains an array of objects like {'app': 'name', 'wtx': number, 'wrx': number, 'ltx': number, 'lrx': number}. w stands for WAN, l stands for LAN, tx stands for transmit and rx stands for receive. The number represents bytes transferred.