Is there a way to call AJAX from a widget on the server side instead of client side?

We would like to call an API from a widget on load, but we do not want the request to be called by the client. We would like it to be called by the server when the widget is loaded. Is this possible? I can't seem to find any documentation on using the server to make GET or POST calls.

Parents Reply Children