Tuya smart plug extract historical data

Is there any way to extract the historical data from a Tuya smart plug?

I’ve had a set of plugs monitoring consumption for the past two years. The data shows in the Tuya app.

How can I extract or port this data out?

Does the data sit in the plug or the app?