That is not directly possible from a link. You will need to use XHR or fetch to make the call to the api. Then use the result to update the page.
This assumes the api responds to the cross-origin request and allows the request (if not you are kind of stuck).
https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequ...