Mostre o spinner durante a API solicite pure html e jQuery
var $loading = $('#loadingDiv').hide();
$(document)
.ajaxStart(function () {
$loading.show();
})
.ajaxStop(function () {
$loading.hide();
});
Embarrassed Echidna