There are 2 was I can think of, either use the Arbitrary Javascript component, which as you are new you probably do not have, or use a backend service like Xano and a custom action.
Here is a video showing both methods. Neither option is simple or straight forward, even though what you are asking sounds like a simple thing to do.