Pull bandwidth utilization

Hi, I have the genieACS platform.
And I want to pull bandwidth utilization, show uptime stats and like create KPI’s for for specific IMEI or serial numbers.
Can someone please help me get the filter command for this?
The version I’m running is v1.2.8+20211027200938
I also need to know how to store this data periodically on a server or tftp server of somekind.

Please help me with this.

Thank you,

Hitesh