I'm super new to WordPress. Trying to call a Rest API endpoint from WordPress. I can't find an option that runs a piece of code that contacts an external API, in WordPress with a button click.
I have added a button from the widgets pallet but couldn't find an option to call an external piece of code.
I tried finding plugins but had no luck, how do I call an external API hosted on RapidAPI and show the response in a text on button click? and can we call a javascript snippet?
