How to query energy data from Sonoff elite

Hi

I am using Sonoff Elite and would like to query energy data using cloud or local api. Please suggest how this can work ?

@jiale.liu please help with this request.