JSONP

by Daniel Beff

HTML

<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<div class="result">
	
</div>

JavaScript

$.ajax({
    url: "https://na.api.suggest.search.global.rakuten.com/suggest?cb=?&cl=deumall&h=10&oe=utf-8&rid=3045445021&sid=123&of=default&sl=wop&q=Apple",
 
    // Tell jQuery we're expecting JSONP
    dataType: "jsonp",
  
    // Work with the response
    success: function( response ) {
		 $(".result").text(JSON.stringify(response));
        console.log( response );
    }
});