Use stored values from energy dashboard

I would like to keep track of how much energy I have to pay for, starting from january 1th this year. So where I live that would be Grid consumption minus the Return to grid.

Unfortunately I did not store this in a sensor. I only have a sensor with the total usage from my meter. But I do have this data in the energy dashboard. Can I retrieve this information and use it elsewhere?

I searched this forum and found 1 post with a similair question but this has never been answered.