Looking to connect to the cgminer API

just looking to pull some data from the cgminer api and display it on my HA.

what’s the best way to grab that data?

The api looks well documented from a quick google. Take a look at the rest, http and commandline sensors.