Api connection example

I am just trying to connect my weather station to the Arduino IoT cloud through an API connection (I already got the API Key). Can anybody share an example for dummies?
I have the sketch and dashboard working on the Arduino Cloud through the cable but I would like to do it using the WiFi capability of my nano 33 IoT.
Thank you