Using an ESP32 with display to retrieve data from local emonpi

I am excited to have my local emonpi running and receiving data from ESP32 devices.

I would now like to display some of this data using an ESP32 with a display connected to it.

Is there any code examples on how to do this with an ESP32?

Searching I have found stuff like:

wget -qO- "$APIKEY"

But I do not know how to translate that to ESP32 code.
So let’s say I want to get the latest update for power consumption.
How do I do this?